/* ABC Events – travel-desk look: navy ink, marigold accents, ticket stubs */
:root {
  --ink: #13213c;
  --ink-2: #1d2f52;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --line: #e2e7ef;
  --muted: #5b6b82;
  --text: #17223a;
  --marigold: #f4a62a;
  --marigold-soft: #fff3dc;
  --teal: #0e7c7b;
  --teal-soft: #dff3f1;
  --rose: #d9455f;
  --rose-soft: #fde7eb;
  --ok: #1f9d63;
  --ok-soft: #e0f5ea;
  --info: #2f6fd6;
  --info-soft: #e6eefc;
  --wa: #1fa855;
  --r-lg: 16px;
  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 1px 2px rgba(19, 33, 60, .06), 0 6px 20px -12px rgba(19, 33, 60, .25);
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--body); color: var(--text); background: var(--paper); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 .6em; }
code { background: #eef1f6; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; color: var(--ink); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; justify-content: center; }
.pad { padding: 18px 20px; }
.pad-b { padding-bottom: 18px; }
.w-160 { width: 160px; flex-shrink: 0; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #c8d2e3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--marigold); color: var(--ink); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transform: rotate(-6deg); }
.brand-name { font-family: var(--head); font-weight: 700; color: #fff; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.brand-sub { font-size: 12px; color: #8fa0bd; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .sidebar-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: #c8d2e3; font-weight: 600; font-size: 14px; position: relative; }
.nav a i, .sidebar-foot a i { font-size: 17px; width: 20px; text-align: center; }
.nav a:hover, .sidebar-foot a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--ink-2); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--marigold); }
.nav a.active i { color: var(--marigold); }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-return { background: rgba(244,166,42,.14); color: var(--marigold) !important; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: var(--paper); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right form { margin: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.user-name { font-weight: 600; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.g-female { background: var(--rose); }
.avatar.g-male { background: var(--teal); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: var(--r); font-size: 20px; cursor: pointer; color: var(--ink); }
.menu-btn { display: none; }
.content { padding: 4px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.imp-bar { margin: 0 28px 10px; padding: 8px 14px; border-radius: var(--r); background: var(--marigold-soft); color: #7a4d00; font-size: 13px; font-weight: 600; }
.backdrop { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-h h3 i { color: var(--teal); }
.card-h form { margin: 0; }
.link { font-weight: 700; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.highlight { border-color: var(--marigold); background: linear-gradient(0deg, var(--marigold-soft), var(--marigold-soft)); }
.big { font-size: 34px; }
.big small { font-size: 15px; color: var(--muted); font-family: var(--body); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat > i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.stat-v { font-family: var(--head); font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-l { font-size: 13px; color: var(--muted); }
.tone-ink > i { background: #e6eaf2; color: var(--ink); }
.tone-teal > i { background: var(--teal-soft); color: var(--teal); }
.tone-sun > i { background: var(--marigold-soft); color: #b06d00; }
.tone-rose > i { background: var(--rose-soft); color: var(--rose); }

/* meter */
.meter { min-width: 0; }
.meter-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; gap: 8px; }
.meter-top b { color: var(--ink); }
.meter-bar { height: 7px; border-radius: 9px; background: #edf0f5; overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 9px; background: var(--teal); }
.meter-bar.warm i { background: var(--marigold); }
.meter-bar.hot i { background: var(--rose); }

/* rings */
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ring-card { padding: 16px 18px; }
.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e8ecf2 0); display: grid; place-items: center; }
.ring-in { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.ring-in b { font-family: var(--head); font-size: 14px; color: var(--ink); }
.ring-label { font-weight: 700; color: var(--ink); }
.ring-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: var(--r); padding: 9px 16px; font: 600 14px/1.2 var(--body); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #c5cedc; background: #fafbfd; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost-danger { background: transparent; color: var(--rose); border-color: transparent; }
.btn-ghost-danger:hover { background: var(--rose-soft); }
.btn-danger { background: var(--rose); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-xs { padding: 5px 9px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ---------- Badges, chips ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: #13744a; }
.b-bad { background: var(--rose-soft); color: #b02c45; }
.b-warn { background: var(--marigold-soft); color: #92590a; }
.b-info { background: var(--info-soft); color: var(--info); }
.b-rose { background: var(--rose-soft); color: var(--rose); }
.b-muted { background: #edf0f5; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 600 13px var(--body); cursor: pointer; }
.chip:hover, .chip.on { border-color: var(--ink); text-decoration: none; }
.chip.on { background: var(--ink); color: #fff; }
.plate { display: inline-block; font: 700 11px/1 var(--body); padding: 4px 6px; border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); background: #fff; vertical-align: middle; letter-spacing: .04em; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.narrow { max-width: 900px; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink); }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input:not([type]), select, textarea {
  width: 100%; border: 1px solid #d3dae5; border-radius: var(--r); padding: 10px 12px; font: 15px var(--body); color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,123,.15); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2.tight { gap: 10px; }
.align-end { align-items: end; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-top: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 70%, transparent); padding: 14px 0 6px; }
.in-cell { padding: 6px 8px !important; font-size: 13px !important; border-radius: var(--r-sm) !important; min-width: 70px; }
.in-cell.num { width: 70px; }
.inline-form { display: flex; gap: 6px; }
.search { max-width: 260px; padding: 8px 12px !important; font-size: 14px !important; }
.pw small { display: block; margin-top: 4px; }
.seg { display: inline-flex; background: #e9edf3; border-radius: var(--r); padding: 3px; gap: 2px; }
.seg label, .seg a { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span, .seg a { display: block; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: none; }
.seg input:checked + span, .seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19,33,60,.12); }
.seg-wide { display: flex; margin-bottom: 22px; }
.seg-wide a { flex: 1; text-align: center; }
.picker { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 0 0 12px; }
.picker select { border: 0; min-width: 220px; max-width: 340px; }
.picker select:focus { box-shadow: none; }

details.form-card > summary, details.inline-edit > summary, details.manual-send > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.form-card > summary { padding: 16px 20px; font: 700 16px var(--head); color: var(--ink); display: flex; gap: 8px; align-items: center; }
details.form-card > summary i { color: var(--teal); }
details.form-card[open] > summary { border-bottom: 1px solid var(--line); }
details.form-card > form { padding: 18px 20px; }
details.inline-edit { border-top: 1px solid var(--line); padding: 10px 20px; }
details.inline-edit > summary { font-weight: 700; font-size: 13px; color: var(--teal); }
details.inline-edit[open] > form { margin-top: 12px; margin-bottom: 10px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--info-soft); color: #234b8f; border-radius: var(--r); font-size: 14px; margin: 14px 20px 0; }
.content > .note { margin: 0; }
.warn-note { background: var(--marigold-soft); color: #7a4d00; font-weight: 600; text-decoration: none !important; }

/* uploads */
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.upload { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 2px dashed #c8d1df; border-radius: var(--r-lg); padding: 14px; cursor: pointer; background: #fafbfd; transition: border-color .15s; }
.upload:hover { border-color: var(--teal); }
.upload.has { border-style: solid; border-color: #b8e2cf; background: #f5fbf8; }
.upload.wide { margin-bottom: 4px; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { width: 100%; aspect-ratio: 1.58; border-radius: var(--r); background: #eef1f6; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.upload.wide .upload-preview { aspect-ratio: auto; height: 90px; }
.upload-preview i { font-size: 30px; color: #8c9ab0; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload b { color: var(--ink); font-size: 14px; }
.upload span { font-size: 12px; color: var(--muted); }
.doc-links { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }

/* copy box */
.copy-box { display: flex; gap: 6px; min-width: 0; }
.copy-box input { font-size: 13px !important; padding: 8px 10px !important; background: #f6f8fb !important; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 10px 14px; background: #f8f9fc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfe; }
.table .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.row-actions form { margin: 0; }
.person { display: flex; align-items: center; gap: 10px; }
.toolbar { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.toolbar .search { max-width: 340px; }
.toolbar-filters { display: flex; gap: 8px; margin: 0; }
.toolbar-filters select { padding: 8px 10px; font-size: 14px; width: auto; }
.seat-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--ink); border-color: var(--marigold); }

/* flash */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-weight: 600; font-size: 14px; animation: drop .25s ease-out; }
.flash span { flex: 1; }
.flash-success { background: var(--ok-soft); color: #11613e; }
.flash-error { background: var(--rose-soft); color: #9c2238; }
.flash-info { background: var(--info-soft); color: #234b8f; }
.flash-warning { background: var(--marigold-soft); color: #7a4d00; }
.flash-x { border: 0; background: none; font-size: 20px; cursor: pointer; color: inherit; opacity: .6; }
.auth-card .flash { margin-bottom: 16px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* empty */
.empty { text-align: center; padding: 44px 20px; }
.empty > i { font-size: 36px; color: #b0bccd; }
.empty h3 { margin: 10px 0 4px; font-size: 18px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 14px; }

/* mini list */
.mini-list { list-style: none; margin: 0; padding: 6px 0; }
.mini-list li { display: flex; gap: 12px; align-items: center; padding: 9px 20px; }
.mini-list li > i { width: 34px; height: 34px; border-radius: 10px; background: #eef2f7; display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.mini-list b { display: block; color: var(--ink); font-size: 14px; }
.mini-list span { font-size: 12.5px; color: var(--muted); }
.mini-list.pad { padding: 10px 0; }

/* ---------- Company cards / link hero ---------- */
.company-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.company-card.is-off { opacity: .65; }
.cc-head { display: flex; gap: 12px; align-items: flex-start; }
.cc-head > div:nth-child(2) { flex: 1; min-width: 0; }
.cc-head h3 { font-size: 17px; }
.cc-head h3 a { color: var(--ink); }
.cc-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--marigold-soft); color: #94590a; display: grid; place-items: center; font: 800 15px var(--head); flex-shrink: 0; }
.cc-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.cc-foot { display: flex; justify-content: space-between; padding-top: 4px; }
.link-hero { background: var(--ink); color: #c8d2e3; border-radius: var(--r-lg); padding: 22px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px 24px; align-items: center; position: relative; overflow: hidden; }
.link-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(244,166,42,.18); }
.link-hero h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.link-hero p { margin: 0; font-size: 14px; }
.lh-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.link-hero .copy-box { position: relative; z-index: 1; }
.danger-zone { border-color: #f3c3cc; }
.danger-zone h3 { color: var(--rose); }

/* welcome (HR) */
.welcome { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 20px; align-items: center; background: var(--ink); color: #c8d2e3; border-radius: var(--r-lg); padding: 24px; }
.welcome h2 { color: #fff; font-size: 26px; }
.welcome p { margin: 4px 0 0; }
.welcome-link .small { display: block; margin-bottom: 6px; color: #8fa0bd; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.q-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.q-tile:hover { border-color: var(--marigold); }
.q-tile i { font-size: 22px; color: var(--teal); margin-bottom: 6px; }
.q-tile span { font-size: 13px; color: var(--muted); }
.bus-row { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none !important; }
.bus-row:hover { border-color: #c5cedc; }
.bus-row > i { font-size: 20px; color: var(--ink); }
.bus-row b { display: block; color: var(--ink); }

/* ---------- Tickets (signature element) ---------- */
.ticket { --notch: 11px; display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; position: relative; min-width: 0; transition: border-color .15s; }
a.ticket:hover { border-color: var(--marigold); }
.ticket.is-mine { border-color: #9fd9bd; }
.ticket-main { flex: 1; padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ticket-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ticket-kind { font-weight: 700; font-size: 13px; color: var(--teal); display: flex; gap: 6px; align-items: center; }
.ticket-route { font: 700 19px/1.25 var(--head); color: var(--ink); }
.ticket-route.muted { color: #9aa7ba; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.ticket-stub { width: 112px; flex-shrink: 0; border-left: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 8px; position: relative; background: #fcfcfd; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ticket-stub::before { top: calc(var(--notch) * -1 - 1px); clip-path: inset(50% 0 0 0); }
.ticket-stub::after { bottom: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 50% 0); }
.ticket-stub b { font: 800 30px/1.1 var(--head); color: var(--ink); }
.ticket-stub span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ticket-stub small { font-size: 11px; color: var(--muted); }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.trip-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ink); color: #c8d2e3; padding: 22px 24px; border-radius: var(--r-lg); }
.trip-head h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.trip-head p { margin: 0; font-size: 14px; }
.checklist { display: flex; gap: 8px; flex-wrap: wrap; }
.checklist span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.checklist span.done { background: var(--marigold); color: var(--ink); }

/* ---------- Buses ---------- */
.bus-card-h { display: flex; gap: 14px; align-items: center; padding: 16px 20px; flex-wrap: wrap; }
.bus-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--marigold); display: grid; place-items: center; font-size: 20px; }
.bus-card h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bus-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.bus-facts > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.bus-facts span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.bus-facts b { color: var(--ink); font-size: 14px; }
.bus-shell { max-width: 300px; margin: 0 auto; border: 2px solid #d3dae5; border-radius: 34px 34px 14px 14px; padding: 14px 16px 18px; background: #fbfcfd; }
.bus-front { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 4px 12px; margin-bottom: 12px; border-bottom: 2px dashed #e1e6ee; }
.seat-grid { display: grid; grid-template-columns: repeat(2, 1fr) 18px repeat(2, 1fr); gap: 8px; }
.seat { position: relative; aspect-ratio: 1; border-radius: 9px 9px 5px 5px; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1.5px solid #cdd5e1; background: #fff; color: var(--ink); }
.seat::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 3px; height: 3px; border-radius: 2px; background: currentColor; opacity: .18; }
.seat.taken { background: #e8ecf2; border-color: #e8ecf2; color: #9aa6b8; }
.seat.mine { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
label.seat { cursor: pointer; }
label.seat:hover { border-color: var(--teal); }
label.seat input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
label.seat:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
label.seat.checked { background: var(--teal); border-color: var(--teal); color: #fff; }
.seat-legend { display: flex; gap: 14px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.seat-legend span { display: flex; gap: 6px; align-items: center; }
.seat-dot { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #cdd5e1; background: #fff; display: inline-block; }
.seat-dot.taken { background: #e8ecf2; border-color: #e8ecf2; }
.seat-dot.mine { background: var(--marigold); border-color: var(--marigold); }
.seat-dot.pick { background: var(--teal); border-color: var(--teal); }
.seat-card { max-width: 520px; width: 100%; margin: 0 auto; }

/* ---------- Rooms ---------- */
.assign-bar { padding: 12px 16px; }
.assign-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.assign-form > i { font-size: 20px; color: var(--teal); }
.assign-form select { flex: 1; min-width: 200px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid #cfd7e3; }
.room.part { border-top-color: var(--marigold); }
.room.full { border-top-color: var(--teal); }
.room.mine { border-color: var(--marigold); border-top-color: var(--marigold); background: #fffdf8; }
.room-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.room-no { font: 800 22px/1 var(--head); color: var(--ink); }
.beds { display: flex; gap: 4px; font-size: 18px; color: #c3ccd9; }
.beds i.on { color: var(--teal); }
.guests { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.guests li { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; gap: 6px; }
.guests li small { color: var(--muted); font-weight: 500; }
.guests form { margin: 0; }
.guests .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 2px; border-radius: 5px; }
.guests .x:hover { color: var(--rose); background: var(--rose-soft); }
.room-names { min-height: 18px; }
.full-tag { text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); padding: 6px; background: #f1f4f8; border-radius: var(--r-sm); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 22px; }
.tl-day { display: grid; grid-template-columns: 170px 1fr; gap: 18px; }
.tl-date { position: sticky; top: 90px; align-self: start; }
.tl-date b { display: block; font: 800 22px var(--head); color: var(--ink); }
.tl-date span { color: var(--muted); font-size: 13.5px; }
.tl-items { display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--line); padding-left: 18px; }
.tl-item { display: grid; grid-template-columns: 82px 1fr; gap: 12px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--teal); }
.tl-item.now::before { background: var(--marigold); border-color: var(--marigold); box-shadow: 0 0 0 5px rgba(244,166,42,.25); }
.tl-item.past { opacity: .55; }
.tl-time { font-weight: 800; color: var(--ink); font-size: 14px; padding-top: 14px; }
.tl-time small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.tl-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.tl-card h4 { font-size: 16px; }
.tl-loc { font-size: 13px; color: var(--teal); font-weight: 600; margin: 2px 0 4px; }
.tl-card p { font-size: 14px; color: #3b4a62; margin: 4px 0 0; }
.tl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Alerts ---------- */
.alert-list { display: flex; flex-direction: column; }
.alert-item { display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #eef1f5; }
.alert-item:last-child { border-bottom: 0; }
.alert-main { flex: 1; min-width: 0; }
.alert-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.alert-top h4 { font-size: 15.5px; }
.alert-main p { font-size: 14px; color: #3b4a62; white-space: normal; }
.alert-meta { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.alert-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.alert-actions form { margin: 0; }
.manual-send { margin-top: 10px; }
.manual-send > summary { font-weight: 700; font-size: 13px; color: var(--wa); }
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.wa-person { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #cdeedb; background: #f3fbf6; border-radius: var(--r); color: var(--ink); text-decoration: none !important; font-weight: 600; font-size: 13.5px; }
.wa-person i { color: var(--wa); font-size: 18px; }
.wa-person small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.wa-person.done { opacity: .5; }
.wa-person.done i::before { content: "\f26a"; }
.update h3 { font-size: 16px; }
.update p { margin-top: 6px; color: #3b4a62; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--muted); font-weight: 600; }
dl.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Auth pages ---------- */
.auth-body { background: var(--ink); }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; padding: 40px 48px; color: #c8d2e3; display: flex; flex-direction: column; overflow: hidden; }
.auth-brand { display: flex; align-items: center; gap: 12px; font: 700 18px var(--head); color: #fff; }
.auth-copy { margin: auto 0; max-width: 460px; position: relative; z-index: 1; }
.auth-copy h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 14px; }
.auth-copy p { font-size: 16px; color: #a9b6cc; }
.auth-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.auth-facts li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: #dfe6f1; }
.auth-facts i { width: 34px; height: 34px; border-radius: 10px; background: rgba(244,166,42,.15); color: var(--marigold); display: grid; place-items: center; }
.auth-ticket { position: absolute; right: -60px; bottom: 60px; width: 320px; background: var(--marigold); color: var(--ink); border-radius: 18px; padding: 18px 22px; transform: rotate(-12deg); opacity: .95; }
.auth-ticket .t-row { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 12px; font-weight: 700; opacity: .7; }
.auth-ticket .t-row.big { font: 800 30px var(--head); opacity: 1; margin-top: 4px; }
.auth-panel { background: var(--paper); display: grid; place-items: center; padding: 32px 20px; border-radius: 28px 0 0 28px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-size: 28px; margin-bottom: 4px; }
.auth-card .muted { margin-bottom: 20px; }
.center-msg { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; color: #c8d2e3; }
.center-msg i { font-size: 48px; color: var(--marigold); }
.center-msg h1 { color: #fff; font-size: 32px; margin: 12px 0 8px; }
.center-msg p { max-width: 440px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats, .rings, .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .split, .split.even, .split.wide-left { grid-template-columns: 1fr; }
  .welcome, .link-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease-out; }
  .sidebar.open { transform: none; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(10,18,34,.5); z-index: 40; }
  .menu-btn { display: inline-grid; place-items: center; }
  .topbar { padding: 12px 16px; }
  .topbar-title h1 { font-size: 20px; }
  .content { padding: 4px 16px 32px; }
  .imp-bar { margin: 0 16px 10px; }
  .user-chip { display: none; }
  .hide-sm { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .tl-day { grid-template-columns: 1fr; gap: 10px; }
  .tl-date { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px 36px; }
  .auth-copy { margin: 28px 0 0; }
  .auth-ticket { display: none; }
  .auth-panel { border-radius: 24px 24px 0 0; padding: 32px 20px 48px; place-items: start center; }
  .alert-item { flex-direction: column; }
  .alert-actions { flex-direction: row; }
}
@media (max-width: 560px) {
  .stats, .rings, .quick, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .uploads { grid-template-columns: 1fr 1fr; }
  .pass-grid, .cards-grid { grid-template-columns: 1fr; }
  .ticket-stub { width: 92px; }
  .search { max-width: none; }
  .picker select { min-width: 0; max-width: 180px; }
  .w-160 { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Print (reports & manifests) ---------- */
@media print {
  .sidebar, .topbar-right, .menu-btn, .no-print, .tabs, .toolbar, .flash, .imp-bar { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
  .content { padding: 0; }
  .split { display: block; }
  .table th { background: #eee; }
}

/* refinements */
.mini-list .avatar { color: #fff; font-size: 11px; }
.welcome .copy-box .btn, .link-hero .copy-box .btn { background: var(--marigold); color: var(--ink); }
.form-actions.center { margin-top: 16px; }

/* transport types */
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.grid-4 { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); gap: 14px; }
.vtype-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.vtype-pick label { position: relative; cursor: pointer; }
.vtype-pick input { position: absolute; opacity: 0; }
.vtype-pick span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; min-width: 190px; }
.vtype-pick i { grid-row: span 2; font-size: 22px; color: var(--muted); }
.vtype-pick b { color: var(--ink); font-size: 14px; }
.vtype-pick small { color: var(--muted); font-size: 12px; }
.vtype-pick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f7f9fc; }
.vtype-pick input:checked + span i { color: var(--marigold); }
.vtype-pick input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.veh-wrap { border: 1px solid var(--line); border-radius: var(--r); }
.veh-table td { padding: 6px 8px; }
.veh-table input { padding: 8px 10px; font-size: 14px; min-width: 110px; }
.veh-table input[type=number] { min-width: 70px; width: 80px; }
.veh-n { font-weight: 800; color: var(--muted); width: 36px; text-align: center; }
.card-h.plain { border: 0; padding: 4px 2px 0; }
.pad-x { padding: 0 20px 14px; }
.bus-icon.vt-traveller { color: #7fd1cf; }
.bus-icon.vt-car { color: #ffd08a; background: var(--teal); }
.vtag { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; color: var(--teal); }
.bus-shell.car { max-width: 210px; border-radius: 40px 40px 22px 22px; padding-top: 26px; }
.seat.driver { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 18px; }
.owncar-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 20px; }
.owncar-card > i { font-size: 26px; color: var(--teal); }
.owncar-card form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; flex: 1; }
.owncar-card input[type=text] { max-width: 200px; }
@media (max-width: 860px) { .grid-4 { grid-template-columns: 1fr 1fr; } .vtype-pick span { min-width: 0; } }
.ticket-stub b.small-b { font-size: 15px; word-break: break-all; }

/* bulk import */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.step h3 { font-size: 17px; }
.step p { margin: 0; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--marigold); color: var(--ink); font: 800 16px var(--head); display: grid; place-items: center; }
.col-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.col-list li { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-weight: 600; }
.col-list li.req { background: var(--ink); color: #fff; }
.col-list li small { opacity: .7; font-weight: 500; }
.pw-code { font-size: 15px; font-weight: 700; color: var(--ink); background: var(--marigold-soft); }
.import-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.import-stats > div { padding: 16px 20px; border-right: 1px solid var(--line); }
.import-stats b { display: block; font: 800 28px var(--head); }
.import-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }
.is-ok b { color: var(--ok); } .is-info b { color: var(--info); } .is-bad b { color: var(--rose); }
.bulk-hint { text-decoration: none !important; font-weight: 600; }
.empty .form-actions.center { justify-content: center; margin-top: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: 1fr; } }

.doc-gate { border-color: var(--marigold); }
.doc-gate .card-h { background: var(--marigold-soft); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.upload.need { border-color: #f0b8c3; background: #fff8f9; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* ---------- Support ---------- */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--rose); color: #fff; font: 700 11px/20px var(--body); text-align: center; font-style: normal; }
.help-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--teal); text-decoration: none !important; white-space: nowrap; }
.help-link:hover { border-color: var(--teal); }
.section-title { font-size: 18px; margin: 4px 0 -4px; }
.contact-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.cc-cat { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.cat-accommodation .cc-cat { background: var(--marigold-soft); color: #94590a; }
.cat-transport .cc-cat { background: var(--teal-soft); color: var(--teal); }
.cat-activities .cc-cat { background: var(--info-soft); color: var(--info); }
.cat-medical .cc-cat { background: var(--rose-soft); color: var(--rose); }
.cc-name { font: 700 18px var(--head); color: var(--ink); margin-top: 8px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sos { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--rose-soft); border: 1px solid #f4c2cc; flex-wrap: wrap; }
.sos > i { font-size: 28px; color: var(--rose); }
.sos b { display: block; color: #8e1f35; font-size: 16px; }
.sos span { font-size: 13px; color: #9c4558; }
.help-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.help-main b { display: block; color: var(--ink); }
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat-pick label { position: relative; cursor: pointer; }
.cat-pick input { position: absolute; opacity: 0; }
.cat-pick span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.cat-pick i { font-size: 18px; color: var(--muted); }
.cat-pick b { font-size: 13.5px; color: var(--ink); }
.cat-pick small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.cat-pick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cat-pick input:checked + span i { color: var(--marigold); }
.cat-pick input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.toolbar.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); justify-content: space-between; }
.toolbar-filters.wrap { flex-wrap: wrap; }
.tickets tr.unread td { background: #fffaf0; }
.tickets .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: middle; }
.tickets tr[data-href] { cursor: pointer; }
b.urgent { color: var(--rose); }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.thread-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thread-head h2 { font-size: 20px; }
.th-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #eef1f6; color: var(--muted); flex-shrink: 0; }
.th-icon.cat-accommodation { background: var(--marigold-soft); color: #94590a; }
.th-icon.cat-transport { background: var(--teal-soft); color: var(--teal); }
.th-icon.cat-activities { background: var(--info-soft); color: var(--info); }
.th-icon.cat-medical { background: var(--rose-soft); color: var(--rose); }
.th-badges { display: flex; gap: 6px; }
.thread { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fafbfd; max-height: 60vh; overflow-y: auto; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--ink); color: #fff; border-color: var(--ink); border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.msg-sys { text-align: center; }
.msg-sys span { display: inline-block; font-size: 12px; color: var(--muted); background: #eef1f6; padding: 3px 10px; border-radius: 999px; }
.reply-box { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reply-actions select { width: auto; padding: 6px 8px; font-size: 13px; margin-left: 6px; }
.status-row { display: flex; gap: 6px; flex-wrap: wrap; }
.status-row form { margin: 0; }
@media (max-width: 1100px) { .ticket-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .help-link { padding: 7px 9px; } .help-link { font-size: 0; gap: 0; } .help-link i { font-size: 18px; } .msg { max-width: 92%; } }
@media (max-width: 560px) { .tickets.emp th:nth-child(2), .tickets.emp td:nth-child(2), .tickets.emp th:nth-child(4), .tickets.emp td:nth-child(4) { display: none; } }

/* ---------- Coordinator directory ---------- */
.duty-row { display: flex; gap: 8px; align-items: center; }
.duty-row input { min-width: 0; }
.duty-row span { color: var(--muted); font-size: 13px; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.duty { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.duty i { width: 8px; height: 8px; border-radius: 50%; }
.duty.on { color: var(--ok); } .duty.on i { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,99,.2); }
.duty.off { color: var(--muted); } .duty.off i { background: #b3bdcc; }
.dir { display: flex; flex-direction: column; gap: 22px; }
.dir-tools { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.dir-search { position: relative; }
.dir-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dir-search input { padding-left: 40px; font-size: 15px; }
.chip b { margin-left: 4px; font-size: 11.5px; opacity: .65; }
.chip i { margin-right: 2px; }
.dot-now { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.chip-now.on { background: var(--ok); border-color: var(--ok); }
.chip-now.on .dot-now { background: #fff; }
.dir-h { display: flex; align-items: baseline; gap: 8px; font-size: 17px; margin-bottom: 12px; flex-wrap: wrap; }
.dir-h i { color: var(--muted); }
.dir-h small { font: 500 13px var(--body); color: var(--muted); }
.dir-h.cat-medical i { color: var(--rose); } .dir-h.cat-accommodation i { color: #b06d00; } .dir-h.cat-transport i { color: var(--teal); } .dir-h.cat-activities i { color: var(--info); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dir-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); border-left: 4px solid #cfd7e3; }
.dir-item.cat-medical { border-left-color: var(--rose); }
.dir-item.cat-accommodation { border-left-color: var(--marigold); }
.dir-item.cat-transport { border-left-color: var(--teal); }
.dir-item.cat-activities { border-left-color: var(--info); }
.dir-item.cat-general { border-left-color: var(--ink); }
.dir-top { display: flex; gap: 12px; align-items: flex-start; }
.dir-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 800 16px var(--head); background: #e6eaf2; color: var(--ink); flex-shrink: 0; }
.cat-medical .dir-avatar { background: var(--rose-soft); color: var(--rose); }
.cat-accommodation .dir-avatar { background: var(--marigold-soft); color: #94590a; }
.cat-transport .dir-avatar { background: var(--teal-soft); color: var(--teal); }
.cat-activities .dir-avatar { background: var(--info-soft); color: var(--info); }
.dir-item h4 { font-size: 17px; }
.dir-role { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.dir-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.dir-info li { display: flex; gap: 10px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.dir-info i { color: var(--muted); width: 16px; flex-shrink: 0; }
.dir-info a { color: var(--text); font-weight: 600; }
.dir-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.print-only { display: none; }
@media print {
  .dir-tools, .dir-actions, .dir-empty { display: none !important; }
  .print-only { display: block; }
  .dir-item { box-shadow: none; break-inside: avoid; }
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .duty { display: none; }
}
[hidden] { display: none !important; }
.dir-board { display: flex; flex-wrap: wrap; gap: 22px 18px; align-items: flex-start; }
.dir-group { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .dir-group { flex-basis: 100% !important; } }

/* ---------- Notification bell ---------- */
.bell { position: relative; }
.bell > summary { list-style: none; display: grid; place-items: center; position: relative; cursor: pointer; }
.bell > summary em { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--rose); color: #fff; font: 700 10.5px/18px var(--body); font-style: normal; text-align: center; padding: 0 4px; }
.bell-pop { position: absolute; right: 0; top: 48px; width: 340px; max-width: 86vw; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 14px 40px -12px rgba(19,33,60,.35); z-index: 60; max-height: 70vh; overflow-y: auto; }
.bell-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.bell-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-bottom: 1px solid #eef1f5; color: var(--text); text-decoration: none !important; font-size: 13px; }
.bell-item:hover { background: #fafbfd; }
.bell-item.unread { background: #fffaf0; }
.bell-item b { color: var(--ink); }
.bell-item span { color: var(--muted); }
.bell-item small { color: var(--muted); font-size: 11.5px; }

/* ---------- Tasks ---------- */
.task-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; }
.ts b { display: block; font: 800 26px var(--head); color: var(--ink); }
.ts span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ts.late b { color: var(--rose); } .ts.ok b { color: var(--ok); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.board-col { background: #e9edf3; border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.board-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; }
.board-h b { font: 700 15px var(--head); color: var(--ink); }
.board-h span { font-size: 12px; font-weight: 700; background: #fff; border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.col-done { background: #e3f1ea; }
.board-empty { padding: 8px 4px; margin: 0; }
.task-card { background: var(--surface); border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: 0 1px 2px rgba(19,33,60,.05); }
.task-card.overdue { border-color: #f1b5c1; box-shadow: inset 3px 0 0 var(--rose); }
.task-card.done .tc-title { text-decoration: line-through; color: var(--muted); }
.tc-top { display: flex; justify-content: space-between; align-items: center; }
.tc-cat { font-size: 11.5px; font-weight: 700; color: var(--teal); display: flex; gap: 5px; align-items: center; }
.tc-high { font-size: 11px; font-weight: 800; color: var(--rose); text-transform: uppercase; letter-spacing: .04em; }
.tc-title { font: 700 15px/1.3 var(--head); color: var(--ink); text-decoration: none !important; }
.tc-progress { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.tc-progress .meter-bar { flex: 1; }
.tc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.tc-who { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
.tc-due.late { color: var(--rose); font-weight: 700; } .tc-due.ok { color: var(--ok); font-weight: 700; }
.tc-done { margin: 0; align-self: flex-start; }
.tpl { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.tpl input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.tpl b { display: block; font-size: 14px; color: var(--ink); }
.tpl small { color: var(--muted); font-size: 12px; }
.checklist-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.checklist-items li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; }
.checklist-items li:hover { background: #fafbfd; }
.checklist-items form { margin: 0; }
.checklist-items .tick, .tick-row { border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--teal); padding: 0; display: flex; gap: 10px; align-items: center; text-align: left; font-family: inherit; }
.checklist-items li span small { display: block; color: var(--muted); font-size: 11.5px; }
.checklist-items li.is-done span { color: var(--muted); text-decoration: line-through; }
.checklist-items li.is-done span small { text-decoration: none; }
.checklist-items .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; opacity: 0; }
.checklist-items li:hover .x { opacity: 1; }
.checklist-items.big li { padding: 10px 6px; border-bottom: 1px solid #eef1f5; }
.tick-row span { font-size: 15px; color: var(--text); }
.add-item { display: flex; gap: 8px; margin-top: 10px; }
.add-item input { flex: 1; padding: 8px 10px; font-size: 14px; }
.done-banner { margin: 0 20px 20px; padding: 12px 16px; background: var(--ok-soft); color: #11613e; border-radius: var(--r); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.late-text { color: var(--rose) !important; }

/* ---------- Places ---------- */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.place-top { display: flex; gap: 12px; align-items: flex-start; }
.place-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--rose-soft); color: var(--rose); flex-shrink: 0; }
.type-pharmacy .place-icon { background: var(--teal-soft); color: var(--teal); }
.type-clinic .place-icon { background: #fdeee4; color: #c2560e; }
.type-attraction .place-icon, .type-sightseeing .place-icon { background: var(--info-soft); color: var(--info); }
.type-restaurant .place-icon { background: var(--marigold-soft); color: #b06d00; }
.type-shopping .place-icon { background: #eee8fb; color: #6741c4; }
.place h4 { font-size: 16.5px; }
.verified { font-size: 12px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.unverified { font-size: 11.5px; font-weight: 700; color: #92590a; background: var(--marigold-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.open24 { color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.place-notes { font-size: 13.5px; color: #3b4a62; margin: 0; background: #fafbfd; border-radius: var(--r-sm); padding: 8px 10px; }
.helplines { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.helpline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; text-decoration: none !important; color: var(--text); display: flex; flex-direction: column; }
.helpline b { font: 800 24px var(--head); color: var(--rose); }
.helpline span { font-weight: 700; color: var(--ink); font-size: 14px; }
.helpline small { color: var(--muted); font-size: 11.5px; }
.quick-emp { margin-top: -4px; }

/* ---------- Pass ---------- */
.pass-card { max-width: 340px; width: 100%; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 22px; padding: 20px; text-align: center; box-shadow: 0 20px 40px -20px rgba(19,33,60,.6); position: relative; }
.pass-top { display: flex; justify-content: space-between; font-size: 12px; color: #a9b6cc; font-weight: 700; gap: 10px; }
.pass-qr { background: #fff; border-radius: 16px; padding: 14px; margin: 16px auto 14px; width: 248px; height: 248px; display: grid; place-items: center; }
.pass-qr img, .pass-qr canvas { display: block; }
.qr-fallback { color: var(--ink); font: 800 26px var(--head); letter-spacing: .1em; }
.pass-code { font: 800 26px var(--head); letter-spacing: .14em; color: var(--marigold); }
.pass-name { font: 700 18px var(--head); margin-top: 6px; }
.pass-meta { font-size: 13px; color: #a9b6cc; margin-top: 2px; }

/* ---------- Attendance ---------- */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); }
.cp-card:hover { border-color: var(--marigold); }
.cp-card.closed { opacity: .7; }
.cp-card h4 { font-size: 16px; }
.cp-top { display: flex; justify-content: space-between; align-items: center; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #b3bdcc; }
.live-dot.on { color: var(--ok); }
.live-dot.on i { background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,99,.5); } 70% { box-shadow: 0 0 0 8px rgba(31,157,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,99,0); } }
.live { display: flex; flex-direction: column; gap: 18px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.lh-left { display: flex; gap: 14px; align-items: center; }
.lh-left h2 { font-size: 20px; }
.live-count { display: flex; align-items: center; gap: 16px; }
.ring.big { width: 96px; height: 96px; }
.ring.big .ring-in { width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring.big b { font-size: 26px; line-height: 1; }
.ring.big small { font-size: 11px; color: var(--muted); }
.live-stats { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.live-stats b { color: var(--ink); }
.scan-card { padding: 18px 20px; }
.scan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.qr-box { border-radius: var(--r-lg); overflow: hidden; background: #0f1a30; min-height: 220px; display: grid; place-items: center; }
.qr-box video { width: 100% !important; border-radius: var(--r-lg); }
.qr-placeholder { color: #a9b6cc; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px; font-size: 13px; }
.qr-placeholder i { font-size: 44px; color: var(--marigold); }
.code-form input { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
.scan-feedback { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 15px; animation: drop .2s ease-out; }
.scan-feedback > i { font-size: 26px; }
.scan-feedback.ok { background: var(--ok-soft); color: #11613e; }
.scan-feedback.warn { background: var(--marigold-soft); color: #7a4d00; }
.scan-feedback.bad { background: var(--rose-soft); color: #9c2238; }
.scan-feedback .btn { margin-top: 8px; }
.count-pill { font: 700 12px var(--body); background: var(--rose-soft); color: var(--rose); border-radius: 999px; padding: 1px 9px; }
.count-pill.ok { background: var(--ok-soft); color: var(--ok); }
.att-list { list-style: none; margin: 0; padding: 4px 0; max-height: 60vh; overflow-y: auto; }
.att-list li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #f0f2f6; }
.att-list li b { display: block; font-size: 14px; color: var(--ink); }
.att-list li small { color: var(--muted); font-size: 12px; }
.att-list li.extra { background: #fffaf0; }
.att-list .avatar.ok { background: var(--ok); }
.att-empty { justify-content: center; padding: 20px !important; }
.cp-bar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.cp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-actions form { margin: 0; }

/* ---------- Link pages (no login) ---------- */
.link-page { background: var(--paper); }
.link-wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 14px; }
.link-wrap.wide { max-width: 1100px; }
.link-brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--head); color: var(--ink); }
.link-brand .brand-mark { width: 32px; height: 32px; font-size: 16px; }

@media (max-width: 1100px) { .board { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .scan-grid { grid-template-columns: 1fr; } .task-summary { grid-template-columns: repeat(2, 1fr); } .live-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Employee photos ---------- */
.avatar.photo { object-fit: cover; background: #e6eaf2; padding: 0; display: inline-block; }
.avatar.md { width: 40px; height: 40px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; border: 3px solid rgba(255,255,255,.9); }
.avatar.xl { width: 92px; height: 92px; font-size: 28px; border: 4px solid var(--marigold); }
.avatar.chip { width: 32px; height: 32px; font-size: 12px; }
.photo-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.photo-up { width: 150px; flex-shrink: 0; padding: 12px; }
.upload-preview.round { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 6px; }
.upload.need { border-color: #f0b8c3; }
.att-av { position: relative; flex-shrink: 0; }
.att-av.is-ok > i { position: absolute; right: -3px; bottom: -3px; color: var(--ok); background: #fff; border-radius: 50%; font-size: 14px; line-height: 1; }
.fb-photo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.scan-feedback.ok .fb-photo { border-color: var(--ok); }
.pass-photo { margin-top: 14px; }
.pass-photo .avatar.xl { width: 96px; height: 96px; }
.pass-qr { margin-top: 12px; }
.trip-who { display: flex; gap: 16px; align-items: center; }
.trip-who a { text-decoration: none !important; }
.card-h h3 .avatar { margin-right: 4px; }
@media (max-width: 560px) { .photo-row { flex-direction: column; align-items: stretch; } .photo-up { width: 100%; } }

/* ---------- Welcome hero (company branding) ---------- */
.welcome-hero { --brand: #13213c; position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.14), transparent 55%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); }
.welcome-hero::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 26px solid rgba(255,255,255,.08); }
.wh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.wh-logo { height: 40px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px 8px; }
.wh-logo.text { display: grid; place-items: center; width: 44px; height: 44px; font: 800 15px var(--head); color: var(--brand); padding: 0; }
.wh-count { background: rgba(255,255,255,.16); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.wh-main { display: flex; gap: 16px; align-items: center; position: relative; z-index: 1; }
.wh-main h2 { color: #fff; font-size: 26px; }
.wh-msg { margin: 4px 0 0; color: rgba(255,255,255,.86); font-size: 15px; max-width: 720px; }
.wh-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.wh-facts span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.trip-head.slim { padding: 14px 20px; }
.th-label { color: #fff; font-size: 14px; }
.welcome-preview { border-left: 4px solid var(--brand); background: #f6f8fb; padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; }
.brand-grid { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.logo-up .upload-preview { aspect-ratio: 2; background: repeating-conic-gradient(#f1f4f8 0 25%, #fff 0 50%) 0 0/16px 16px; }
.color-in { width: 90px !important; height: 44px; padding: 4px !important; }
.auth-logo { max-height: 56px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px 10px; margin-top: 28px; align-self: flex-start; }
.auth-art[style*="--brand"] { background: linear-gradient(160deg, var(--brand), var(--ink)); }

/* ---------- Meals & transport notifications ---------- */
.meal-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.meal-pick label { position: relative; cursor: pointer; }
.meal-pick input { position: absolute; opacity: 0; }
.meal-pick span { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 700; color: var(--ink); background: #fff; }
.meal-pick em { font-style: normal; font-size: 20px; }
.meal-pick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--marigold-soft); }
.meal-row { display: grid; grid-template-columns: 1.2fr 110px 1.6fr; gap: 8px; align-items: center; }
.meal-row input { padding: 7px 9px; font-size: 14px; }
.tn-panel { display: flex; flex-direction: column; gap: 8px; }
.tn-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.tn-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tn-actions form { margin: 0; }
.tn-more { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.tn-more > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--teal); list-style: none; }
.tn-more[open] > form { margin-top: 10px; }
.tl-ico { color: var(--teal); font-size: .9em; }
.tl-type { font-size: 11.5px; font-weight: 700; color: var(--muted); background: #eef1f6; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tl-item.type-meal::before { border-color: #d9455f; }
.tl-item.type-team::before, .tl-item.type-game::before { border-color: var(--marigold); }
.tl-item.type-sightseeing::before { border-color: var(--info); }
.tl-badges { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- Property map ---------- */
.pmap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.pmap-stage { position: relative; overflow: hidden; padding: 0; }
.pmap-toolbar { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pmap-toolbar .seg a.disabled { opacity: .4; cursor: not-allowed; }
.pm-hint { margin-left: auto; }
.pmap-3d { position: relative; height: 520px; background: linear-gradient(#f6f9fd, #e6ecf4); cursor: grab; }
.pmap-3d:active { cursor: grabbing; }
.pmap-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.pmap-2d { padding: 12px; background: #f6f9fd; }
.pm-svg { width: 100%; height: auto; max-height: 600px; display: block; border-radius: var(--r); }
.pm-svg text { font: 700 2.3px var(--body); fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: .25px; }
.pm-b { cursor: pointer; }
.pm-b:hover rect, .pm-b.sel rect { fill-opacity: 1; stroke: #13213c; stroke-width: .7; }
.pm-b.mine rect { stroke: #f4a62a; stroke-width: 1; animation: pmpulse 1.4s infinite; }
@keyframes pmpulse { 50% { stroke-width: .3; } }
.pm-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pm-label { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 8px; box-shadow: 0 2px 6px rgba(19,33,60,.18); }
.pm-label.mine { background: var(--marigold); }
.pmap-info { position: absolute; left: 12px; bottom: 12px; width: min(320px, calc(100% - 24px)); padding: 14px 16px; z-index: 5; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.pmap-info p { margin: 0; color: #3b4a62; }
.pm-info-h { display: flex; gap: 10px; align-items: center; }
.pm-info-h i { font-size: 22px; }
.pm-info-h b { display: block; font: 700 16px var(--head); color: var(--ink); }
.pm-info-h small { color: var(--muted); }
.pm-mine { background: var(--marigold-soft); color: #7a4d00; border-radius: var(--r-sm); padding: 6px 10px; font-weight: 700; font-size: 13px; }
.pm-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.pmap-list { max-height: 600px; overflow-y: auto; }
.pad-sm { padding: 10px 12px; }
.pmap-list .search { max-width: none; width: 100%; }
.pm-group { padding: 4px 0 8px; }
.pm-gh { padding: 6px 14px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pm-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px 14px; cursor: pointer; font-family: inherit; }
.pm-item:hover, .pm-item.on { background: #f3f6fa; }
.pm-item > i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.pm-item span { flex: 1; min-width: 0; }
.pm-item b { display: block; font-size: 14px; color: var(--ink); }
.pm-item small { color: var(--muted); font-size: 12px; }
.pm-item em { font-style: normal; font-size: 11px; font-weight: 800; color: #7a4d00; background: var(--marigold-soft); padding: 2px 7px; border-radius: 999px; }
.pm-item.mine { background: #fffaf0; }
.my-room-note { align-items: center; }
.my-room-note span { flex: 1; }
.pm-editor { border: 1px solid var(--line); border-radius: var(--r); cursor: crosshair; background: #f6f9fd; padding: 6px; }
.fac-list { display: flex; flex-direction: column; }
.fac-row { border-bottom: 1px solid var(--line); padding: 10px 20px; }
.fac-row > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; }
.fac-row[open] > form { margin-top: 12px; }
.fac-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Itinerary library ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.lib-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lib-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--marigold), var(--teal)); }
.lib-card:hover { border-color: var(--marigold); }
.lib-card h3 { font-size: 17px; }
.lib-card p { margin: 0; font-size: 13.5px; color: #3b4a62; }
.lib-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lib-price { font: 800 17px var(--head); color: var(--ink); }
.lib-price small { font: 600 11px var(--body); color: var(--muted); }
.lib-locked { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.lib-preview { position: relative; max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.lib-cta { text-align: center; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 20px; }
.lib-cta > i { font-size: 30px; color: var(--marigold); }
@media (max-width: 1100px) { .pmap, .lib-locked { grid-template-columns: 1fr; } .pmap-list { max-height: 320px; } .brand-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pmap-3d { height: 400px; } .meal-row { grid-template-columns: 1fr 1fr; } .meal-row input[name^=venue] { grid-column: 1 / -1; } .wh-main h2 { font-size: 21px; } .pm-hint { display: none; } }

.sample-card { display: flex; gap: 16px; align-items: center; padding: 14px 18px; flex-wrap: wrap; border-color: var(--marigold); }
.sample-thumb { width: 88px; height: 88px; border-radius: 12px; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid var(--line); }

/* live help desk */
.th-badges { align-items: center; flex-wrap: wrap; }
.thread-card { position: relative; }
.msg-new { animation: msgIn .35s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.new-msg-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 16px rgba(19,33,60,.3); z-index: 3; }
.status-row.stale::after { content: "Status changed – refresh to update these buttons"; display: block; width: 100%; font-size: 12px; color: var(--muted); margin-top: 4px; }
.flash-update { animation: listFlash 1.2s ease-out; }
@keyframes listFlash { 0% { box-shadow: 0 0 0 3px var(--marigold); } 100% { box-shadow: var(--shadow); } }

/* ---------- Memories ---------- */
.btn-sun { background: var(--marigold); color: var(--ink); }
.mem { display: flex; flex-direction: column; gap: 16px; }
.mem-hero { --brand: #13213c; border-radius: var(--r-lg); padding: 20px 24px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: radial-gradient(90% 160% at 100% 0%, rgba(244,166,42,.28), transparent 60%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #000)); }
.mem-hero h2 { color: #fff; font-size: 22px; }
.mem-hero p { margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: 14px; }
.mem-tabs a { position: relative; }
.tab-n { font-style: normal; background: var(--rose); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; margin-left: 2px; }
.mem-filters { display: flex; flex-direction: column; gap: 10px; }
.mem-day-h { font-size: 18px; margin: 4px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.mem-day-h small { font: 600 13px var(--body); color: var(--muted); }
.mem-grid { columns: 4 220px; column-gap: 10px; }
.mem-tile { break-inside: avoid; margin-bottom: 10px; position: relative; border-radius: 12px; overflow: hidden; background: #e6ebf2; }
.mem-tile.is-pending { outline: 2px dashed var(--marigold); outline-offset: -2px; }
.mem-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.mem-open img { display: block; width: 100%; height: auto; transition: transform .3s; }
.mem-open:hover img { transform: scale(1.03); }
.mem-noprev { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 36px; color: #94a3b8; }
.mem-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.mem-play i { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 30px; }
.mem-ov { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; pointer-events: none; }
.mem-star { color: var(--marigold); font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.mem-likes, .mem-pend { margin-left: auto; background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; color: var(--ink); }
.mem-pend { background: var(--marigold); }
.mem-check { position: absolute; top: 8px; left: 8px; z-index: 2; }
.mem-check input { width: 22px; height: 22px; accent-color: var(--teal); }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bulk-bar select { width: auto; }
.mem-suggest .mem-grid { padding: 14px; columns: 5 160px; }
.sug-actions { display: flex; gap: 4px; padding: 6px; background: #fff; flex-wrap: wrap; }
.mem-tile.done { opacity: .75; }
.section-title small { font: 600 14px var(--body); }
/* upload */
.mem-upload { display: flex; flex-direction: column; gap: 14px; }
.drop { position: relative; border: 2px dashed #c8d1df; border-radius: var(--r-lg); padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; background: #fafbfd; }
.drop.over { border-color: var(--teal); background: var(--teal-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop i { font-size: 34px; color: var(--teal); }
.drop b { font-size: 16px; color: var(--ink); }
.drop span { font-size: 13px; color: var(--muted); }
.up-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.up-item { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.up-item.ok { border-color: #a8dcc2; background: #f4fbf7; } .up-item.bad { border-color: #f1b5c1; background: #fff6f8; }
.up-thumb { width: 52px; height: 52px; border-radius: 8px; background: #e6ebf2 center/cover; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.up-item b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.up-item small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.up-item .x { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--info-soft); color: var(--info); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 2px; }
.tag-sugg { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; }
.tag-sugg button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 8px 10px; cursor: pointer; font: 600 14px var(--body); color: var(--ink); }
.tag-sugg button:hover { background: #f3f6fa; }
.tag-sugg small { color: var(--muted); font-weight: 500; }
.consent { background: #f6f8fb; border-radius: var(--r); padding: 10px 12px; margin: 0; font-weight: 600; font-size: 14px; }
/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,13,24,.94); display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.lb-media { position: relative; display: grid; place-items: center; padding: 20px; min-height: 0; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 40px); border-radius: 8px; object-fit: contain; }
.lb-nav, .lb-x { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; cursor: pointer; line-height: 1; }
.lb-nav:hover, .lb-x:hover { background: rgba(255,255,255,.25); }
.lb-nav.prev { left: 16px; top: 50%; } .lb-nav.next { right: 16px; top: 50%; } .lb-x { right: 16px; top: 16px; font-size: 26px; }
.lb-side { background: var(--surface); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.lb-cap { font: 700 17px/1.35 var(--head); color: var(--ink); margin: 8px 0 4px; }
.lb-shared { margin-top: 8px; font-size: 13px; background: var(--info-soft); color: #234b8f; border-radius: var(--r-sm); padding: 6px 10px; }
.lb-react { display: flex; gap: 6px; flex-wrap: wrap; }
.rx { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 18px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.rx b { font: 700 12px var(--body); color: var(--muted); }
.rx.on { border-color: var(--marigold); background: var(--marigold-soft); }
.lb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-tags b, .lb-share b, .lb-staff b { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.lb-tag-in { margin-top: 8px; padding: 8px 10px !important; font-size: 14px !important; }
.lb-share { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.share-list { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.share-list label { display: flex; gap: 8px; align-items: center; padding: 4px; border-radius: 6px; cursor: pointer; }
.share-list small { color: var(--muted); }
.lb-staff { border-top: 1px solid var(--line); padding-top: 12px; }
.lb-edit summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--teal); }
.lb-edit[open] { display: flex; flex-direction: column; gap: 6px; }
.lb-edit input, .lb-edit select { padding: 7px 9px; font-size: 14px; }
.lb-count { margin-top: auto; }
.mem-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .4s; }
.mem-toast.bad { background: var(--rose); } .mem-toast.out { opacity: 0; }
/* face */
.privacy-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.privacy-list li { display: flex; gap: 10px; font-size: 14px; color: #3b4a62; }
.privacy-list i { color: var(--teal); font-size: 18px; flex-shrink: 0; }
.face-run { display: flex; flex-direction: column; gap: 10px; }
.selfie { width: 200px; align-self: center; }
.face-progress { display: flex; flex-direction: column; gap: 6px; }
.face-info h3, .reel-opts h3, [data-face-scan] h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
/* reel */
.reel-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.reel-opts { display: flex; flex-direction: column; gap: 12px; }
.reel-stage { padding: 12px; background: #0b1427; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.reel-stage canvas { max-width: 100%; max-height: 70vh; border-radius: 10px; background: #000; }
/* download */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); }
.dl-card:hover { border-color: var(--marigold); }
.dl-card i { font-size: 24px; color: var(--teal); }
.dl-card b { color: var(--ink); }
.dl-card span { font-size: 13px; color: var(--muted); }
.dl-card.day i { color: var(--marigold); }
@media (max-width: 1100px) { .reel-wrap { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: 60vh auto; overflow-y: auto; }
  .lb-media { padding: 10px; } .lb-media img, .lb-media video { max-height: 56vh; }
  .lb-nav { width: 40px; height: 40px; font-size: 24px; } .lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
  .mem-grid { columns: 2 140px; }
}

.reg-form .uploads { margin: 6px 0 4px; }
.reg-form .photo-up { width: 100%; }
.auth-card:has(.reg-form) { max-width: 560px; }

/* =====================================================================
   GENTELELLA THEME — admin skin based on Gentelella by Colorlib (MIT)
   https://github.com/ColorlibHQ/gentelella
   ===================================================================== */
:root {
  --g-side: #2A3F54; --g-side-2: #172D44; --g-green: #1ABB9C; --g-green-btn: #26B99A; --g-green-dk: #169F85;
  --g-blue: #3498DB; --g-purple: #9B59B6; --g-orange: #F39C12; --g-red: #E74C3C; --g-dark: #34495E;
  --g-text: #73879C; --g-head: #5A738E; --g-line: #E6E9ED; --g-bg: #F7F7F7;
  --paper: var(--g-bg); --surface: #fff; --line: var(--g-line); --muted: #8a9aac; --text: #5A738E; --ink: #2A3F54;
  --teal: var(--g-green); --teal-soft: #e3f6f2; --marigold: var(--g-orange); --marigold-soft: #fdf1dc;
  --rose: var(--g-red); --rose-soft: #fbe5e2; --ok: var(--g-green-btn); --ok-soft: #e1f5f0; --info: var(--g-blue); --info-soft: #e3f0fa;
  --r-lg: 4px; --r: 3px; --r-sm: 3px;
  --shadow: none;
  --head: "Roboto", "Helvetica Neue", Arial, "Droid Sans", sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, "Droid Sans", sans-serif;
}
body { background: var(--g-bg); color: var(--g-text); font-size: 13.5px; line-height: 1.471; }
h1, h2, h3, h4 { color: var(--g-head); font-weight: 500; letter-spacing: 0; }
a { color: var(--g-blue); }
.strong { color: var(--g-head); }
.app { grid-template-columns: 230px minmax(0, 1fr); }

/* ---------- sidebar (left_col) ---------- */
.sidebar { background: var(--g-side); padding: 0 0 60px; color: #E7E7E7; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3d5268 transparent; }
.sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-thumb { background: #3d5268; border: 0; }
.brand { display: flex; align-items: center; gap: 10px; height: 57px; padding: 0 12px; text-decoration: none !important; border-bottom: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1px solid #EAEAEA; color: #ECF0F1; font-size: 17px; transform: none; box-shadow: none; }
.brand-name { font: 400 20px/1.1 var(--head); color: #ECF0F1; -webkit-line-clamp: 1; }
.brand-sub { display: none; }
.profile { display: flex; align-items: center; gap: 12px; padding: 18px 14px 22px; }
.profile-pic .avatar { width: 56px; height: 56px; font-size: 18px; border-radius: 50%; padding: 0; border: 4px solid #fff; box-shadow: 0 0 0 1px rgba(52,73,94,.44); background: var(--g-blue); color: #fff; }
.profile-pic img.avatar { object-fit: cover; background: #fff; }
.profile-info { display: flex; flex-direction: column; min-width: 0; }
.profile-info span { font-size: 13px; color: #BAB8B8; }
.profile-info b { font-size: 14px; font-weight: 500; color: #ECF0F1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info small { font-size: 11.5px; color: #8fa4b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-section { margin: 14px 0 6px; padding-left: 15px; color: #fff; font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .5px; text-shadow: 1px 1px #000; }
.nav { gap: 0; }
.nav a { color: #E7E7E7; font-weight: 500; font-size: 13.5px; padding: 12px 15px 11px; border-radius: 0; gap: 10px; text-shadow: rgba(0,0,0,.25) 0 -1px 0; transition: background .15s; }
.nav a i { width: 26px; height: auto; background: none; font-size: 17px; opacity: .99; border-radius: 0; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; transform: none; text-decoration: none; }
.nav a.active { background: linear-gradient(#334556, #2C4257); box-shadow: rgba(0,0,0,.25) 0 1px 0, inset rgba(255,255,255,.16) 0 1px 0; border-right: 5px solid var(--g-green); color: #fff; }
.nav a.active::before { display: none; }
.nav a.active i { color: #fff; background: none; }
.nav-badge { background: var(--g-red); box-shadow: none; border-radius: 10px; font-weight: 700; }
.nav-return { display: flex; align-items: center; gap: 8px; margin: 12px 12px 0; padding: 9px 12px; border-radius: 3px; background: rgba(243,156,18,.15) !important; color: var(--g-orange) !important; font-weight: 600; font-size: 13px; text-decoration: none !important; }
.sidebar-foot { position: fixed; bottom: 0; left: 0; width: 230px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--g-side-2); border-top: 0; padding: 0; margin: 0; z-index: 30; }
.sidebar-foot a { display: grid; place-items: center; padding: 10px 0; color: #5A738E; border-radius: 0; font-size: 16px; }
.sidebar-foot a span { display: none; }
.sidebar-foot a:hover { background: #425567; color: #fff; }

/* icon-only sidebar (nav-sm) */
body.nav-sm .app { grid-template-columns: 70px minmax(0, 1fr); }
body.nav-sm .brand { justify-content: center; padding: 0; }
body.nav-sm .brand-text, body.nav-sm .profile, body.nav-sm .menu-section, body.nav-sm .nav-return span { display: none; }
body.nav-sm .nav a { flex-direction: column; gap: 4px; text-align: center; font-size: 10px; padding: 10px 2px 8px; border-right-width: 0; }
body.nav-sm .nav a.active { border-right: 0; box-shadow: inset 4px 0 0 var(--g-green); }
body.nav-sm .nav a i { font-size: 22px; width: auto; }
body.nav-sm .nav a span { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.nav-sm .nav-badge { position: absolute; top: 4px; right: 10px; margin: 0; }
body.nav-sm .nav a { position: relative; }
body.nav-sm .sidebar-foot { width: 70px; grid-template-columns: 1fr; }
body.nav-sm .sidebar-foot a:not(:last-child) { display: none; }
body.nav-sm .nav-return { justify-content: center; margin: 8px 6px 0; padding: 8px 0; }

/* ---------- top nav ---------- */
.topbar { background: #EDEDED; border-bottom: 1px solid #D9DEE4; padding: 0 20px; height: 57px; backdrop-filter: none; box-shadow: none; position: sticky; top: 0; z-index: 25; }
.nav-toggle { border: 0; background: none; color: var(--g-head); font-size: 27px; cursor: pointer; padding: 4px 6px; line-height: 1; }
.nav-toggle:hover { color: var(--g-side); }
.topbar-right { margin-left: auto; gap: 14px; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--g-head); font-weight: 500; padding: 6px 4px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary .avatar { width: 30px; height: 30px; font-size: 11px; border-radius: 50%; box-shadow: none; }
.user-menu > summary i { font-size: 11px; }
.user-pop { position: absolute; right: 0; top: 44px; min-width: 210px; background: #fff; border: 1px solid #D9DEE4; box-shadow: 0 6px 12px rgba(0,0,0,.175); z-index: 60; padding: 5px 0; }
.user-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--g-head); font-size: 13.5px; text-decoration: none !important; }
.user-pop a:hover { background: #f3f5f7; }
.bell > summary { width: 38px; height: 38px; border: 0; background: none; box-shadow: none; color: var(--g-head); font-size: 19px; }
.bell > summary em { background: var(--g-green); top: 0; right: 0; }
.bell-pop { border-radius: 0; border: 1px solid #D9DEE4; box-shadow: 0 6px 12px rgba(0,0,0,.175); }
.icon-btn { border-radius: 3px; box-shadow: none; }
.menu-btn { display: none !important; }

/* ---------- page title & content (right_col) ---------- */
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 20px 8px; }
.page-title h1 { font: 400 24px/1.25 var(--head); color: var(--g-text); margin: 0; }
.page-title .crumb { font-size: 12.5px; color: #9aa8b6; margin-bottom: 2px; }
.page-title .crumb a { color: #9aa8b6; }
.title-right { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.title-right form { margin: 0; }
.content { padding: 8px 20px 30px; gap: 14px; }
.content > * { animation: none; }
.imp-bar { margin: 6px 20px 0; border-radius: 3px; background: rgba(243,156,18,.88); color: #fff; }
.g-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-top: 1px solid #E6E9ED; padding: 14px 20px; font-size: 12.5px; color: #8a9aac; margin-top: auto; }
.g-footer a { color: var(--g-head); font-weight: 500; }
.main { min-height: 100vh; }

/* ---------- x_panel ---------- */
.card, .company-card, .stat, .q-tile, .dl-card, .lib-card, .cp-card, .dir-item, .place, .room, .task-card, .ticket, .contact-card, .tl-card, .ts, .helpline, .bus-row, .alert-item { border-radius: 4px; box-shadow: none; }
.card { background: #fff; border: 1px solid var(--g-line); position: relative; }
.card-h { border-bottom: 2px solid var(--g-line); padding: 10px 17px 9px; margin: 0; background: none; min-height: 47px; }
.card-h h3 { font: 400 17px/1.3 var(--head); color: var(--g-text); }
.card-h h3 i { color: var(--g-head); }
.card-h .link { color: var(--g-blue); font-weight: 500; }
.panel-tool { border: 0; background: none; color: #C5C7CB; font-size: 14px; padding: 4px 6px; cursor: pointer; margin-left: 4px; line-height: 1; }
.panel-tool:hover { color: var(--g-head); }
.card.collapsed > *:not(.card-h) { display: none !important; }
.card.collapsed > .card-h { border-bottom: 0; }
.pad { padding: 14px 17px; }
details.form-card > summary { font: 400 17px var(--head); color: var(--g-text); border-bottom: 0; padding: 13px 17px; }
details.form-card[open] > summary { border-bottom: 2px solid var(--g-line); }
details.form-card > summary i, .card-h h3 i { color: var(--g-green); }

/* ---------- tile_count (stats) ---------- */
.stats { background: #fff; border: 1px solid var(--g-line); border-radius: 4px; gap: 0; padding: 14px 0; }
.stat { border: 0; border-left: 2px solid #ADB2B5; border-radius: 0; padding: 4px 18px 2px 20px; background: none; position: relative; align-items: flex-start; }
.stats .stat:first-child { border-left: 0; }
.stat::after { display: none; }
.stat > i { position: absolute; left: 20px; top: 4px; width: auto; height: auto; background: none !important; color: #8a9aac !important; font-size: 13px; box-shadow: none; }
.stat > div { display: flex; flex-direction: column; }
.stat-l { order: -1; padding-left: 20px; font-size: 13px; color: var(--g-text); }
.stat-v { font: 600 34px/1.2 var(--head); color: var(--g-head); margin-top: 2px; }
.stat:hover { transform: none; box-shadow: none; }
.tone-teal .stat-v { color: var(--g-green); }
.tone-rose .stat-v { color: var(--g-red); }
.tone-sun .stat-v { color: var(--g-orange); }

/* ---------- buttons ---------- */
.btn { border-radius: 3px; font-weight: 500; padding: 7px 14px; font-size: 13.5px; box-shadow: none; transform: none !important; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; } .btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-primary { background: var(--g-green-btn); border: 1px solid var(--g-green-dk); color: #fff; }
.btn-primary:hover { background: var(--g-green-dk); }
.btn-dark { background: var(--g-dark); border: 1px solid #2c3e50; color: #fff; }
.btn-dark:hover { background: #2c3e50; }
.btn-light { background: #fff; border: 1px solid #ccc; color: #333; }
.btn-light:hover { background: #e6e6e6; border-color: #adadad; }
.btn-sun { background: var(--g-orange); border: 1px solid #e08e0b; color: #fff; }
.btn-sun:hover { background: #e08e0b; }
.btn-wa { background: #25b25a; border: 1px solid #1f9e4f; color: #fff; }
.btn-wa:hover { background: #1f9e4f; }
.btn-danger { background: #d9534f; border: 1px solid #d43f3a; color: #fff; }
.btn-ghost-danger { color: #d9534f; }
.btn:active { box-shadow: inset 0 3px 5px rgba(0,0,0,.125); }

/* ---------- forms ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input:not([type]), select, textarea {
  border-radius: 0; border: 1px solid #ccc; background: #fff; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); padding: 8px 12px; font-size: 13.5px; color: #555; }
input:focus, select:focus, textarea:focus { border-color: #66afe9; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); background: #fff; }
.field > span { font-weight: 700; color: var(--g-text); font-size: 13px; }
.field small { color: #9aa8b6; }
.check input { accent-color: var(--g-green); }
.upload { border-radius: 3px; border-color: #ccc; }
.upload.has { border-color: var(--g-green); background: #f2fbf9; }

/* ---------- tables (jambo_table) ---------- */
.table { font-size: 13px; color: #73879C; }
.table th { background: rgba(52,73,94,.94); color: #ECF0F1; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13px; border-bottom: 0; padding: 10px 14px; border-radius: 0 !important; }
.table td { padding: 9px 14px; border-top: 1px solid #ddd; border-bottom: 0; }
.table tbody tr:nth-child(odd) td { background: #f9f9f9; }
.table tbody tr:nth-child(even) td { background: #fff; }
.table tbody tr:hover td { background: rgba(38,185,154,.07); }
.table td.strong, .table .strong { color: var(--g-head); font-weight: 600; }

/* ---------- labels / badges ---------- */
.badge { border-radius: .25em; font-weight: 700; font-size: 11px; padding: 3px 7px; box-shadow: none; color: #fff; }
.b-ok { background: var(--g-green-btn); color: #fff; }
.b-bad { background: var(--g-red); color: #fff; }
.b-warn { background: var(--g-orange); color: #fff; }
.b-info { background: var(--g-blue); color: #fff; }
.b-rose { background: var(--g-purple); color: #fff; }
.b-muted { background: #ABB1B6; color: #fff; }

/* ---------- nav tabs (bar_tabs) ---------- */
.tabs { background: #F5F7FA; border: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); padding: 8px 10px 0; gap: 4px; border-radius: 3px 3px 0 0; }
.tabs a { background: #F5F7FA; border: 1px solid var(--g-line); border-bottom: 0; color: var(--g-text); padding: 9px 14px; border-radius: 3px 3px 0 0; margin-bottom: -1px; font-weight: 500; }
.tabs a:hover { background: #fff; }
.tabs a.active { background: #fff; color: #555; border-color: var(--g-line); border-bottom: 1px solid #fff; border-image: none; }

/* ---------- alerts (flash) ---------- */
.flash { border-radius: 3px; box-shadow: none; border: 1px solid transparent; border-left-width: 1px; color: #E9EDEF !important; font-weight: 500; }
.flash-success { background: rgba(38,185,154,.88); border-color: rgba(38,185,154,.88); }
.flash-error { background: rgba(231,76,60,.88); border-color: rgba(231,76,60,.88); }
.flash-info { background: rgba(52,152,219,.88); border-color: rgba(52,152,219,.88); }
.flash-warning { background: rgba(243,156,18,.88); border-color: rgba(243,156,18,.88); }
.flash-x { color: #fff; opacity: .8; }
.note { border-radius: 3px; background: #e8f3fb; color: #31708f; border: 1px solid #bce8f1; }
.warn-note { background: #fcf8e3; color: #8a6d3b; border-color: #faebcc; }

/* ---------- progress / rings / chips ---------- */
.meter-bar { height: 10px; border-radius: 0; background: #f5f5f5; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); }
.meter-bar i { border-radius: 0; background: var(--g-green); box-shadow: none; }
.meter-bar.warm i { background: var(--g-orange); }
.meter-bar.hot i { background: var(--g-red); }
.ring { background: conic-gradient(var(--g-green) calc(var(--p) * 1%), #ececec 0); }
.ring-in b { color: var(--g-head); }
.chip { border-radius: 3px; border-color: #ccc; color: var(--g-head); }
.chip:hover { transform: none; box-shadow: none; background: #f3f5f7; }
.chip.on { background: var(--g-dark); border-color: var(--g-dark); color: #fff; }
.seg { background: #e9edf1; border-radius: 3px; }
.seg input:checked + span, .seg a.on { border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* ---------- hero blocks ---------- */
.welcome, .link-hero, .trip-head, .mem-hero { background: var(--g-side); background-image: none; border-radius: 4px; box-shadow: none; border-left: 5px solid var(--g-green); }
.welcome-hero { border-radius: 4px; box-shadow: none; }
.link-hero::after, .welcome-hero::after { opacity: .5; }
.checklist span.done { background: var(--g-green); color: #fff; }
.copy-box .btn { background: var(--g-green-btn) !important; border-color: var(--g-green-dk) !important; color: #fff !important; }
.wh-count { background: rgba(255,255,255,.16); }

/* ---------- misc components ---------- */
.q-tile { border: 1px solid var(--g-line); }
.q-tile i { background: var(--teal-soft); color: var(--g-green); border-radius: 3px; }
.q-tile:hover, .company-card:hover, .dl-card:hover, .lib-card:hover, .cp-card:hover, a.ticket:hover, .room:hover, .task-card:hover { border-color: var(--g-green); transform: none; box-shadow: none; }
.ticket-stub b { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--g-head); }
.ticket-kind, .tc-cat { color: var(--g-green); }
.avatar { background: var(--g-blue); box-shadow: none; }
.avatar.g-female { background: var(--g-purple); } .avatar.g-male { background: var(--g-blue); }
.user-chip { display: none; }
.empty > i { background: none; -webkit-background-clip: initial; background-clip: initial; color: #c3cbd4; }
.empty h3 { color: var(--g-head); font-weight: 500; }
.board-col { background: #eef1f4; border-radius: 4px; }
.col-done { background: #e6f5f1; }
.cc-logo { background: var(--g-side); color: #fff; border-radius: 50%; }
.dir-item, .place { border-left-width: 4px; }
.tl-item::before { border-color: var(--g-green); }
.seat.mine { background: var(--g-orange); border-color: var(--g-orange); color: #fff; }
label.seat:has(input:checked), label.seat.checked { background: var(--g-green); border-color: var(--g-green); color: #fff; }
.thread { background: #f9fafb; }
.msg.mine .bubble { background: var(--g-side); border-color: var(--g-side); }
.lb-side { font-size: 13.5px; }
.rx.on { border-color: var(--g-green); background: var(--teal-soft); }
.mem-likes { color: var(--g-head); }
.mem-pend { background: var(--g-orange); color: #fff; }
.dl-card i, .drop i { color: var(--g-green); }
.lib-card::before { background: var(--g-green); }
.lib-price { color: var(--g-head); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4ccd5; border-radius: 0; border: 2px solid var(--g-bg); }

/* ---------- login / register (login_content) ---------- */
.auth-body { background: var(--g-bg); }
.auth-art { background: var(--g-side); }
.auth-art::after { display: none; }
.auth-art[style*="--brand"] { background: linear-gradient(160deg, var(--brand), var(--g-side)); }
.auth-brand .brand-mark { border: 1px solid #EAEAEA; background: transparent; color: #ECF0F1; border-radius: 50%; }
.auth-copy h2 { font-weight: 300; font-size: clamp(30px, 4vw, 44px); }
.auth-facts i { background: rgba(26,187,156,.15); color: var(--g-green); border-radius: 50%; }
.auth-ticket { background: var(--g-green); color: #fff; animation: none; transform: rotate(-12deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.auth-panel { background: var(--g-bg); border-radius: 0; }
.auth-card { background: #fff; border: 1px solid var(--g-line); border-radius: 4px; padding: 30px; box-shadow: none; }
.auth-title { font: 400 26px var(--head); color: var(--g-text); text-align: left; letter-spacing: 0; }
.center-msg h1 { font-weight: 400; }

@media (max-width: 860px) {
  .app, body.nav-sm .app { grid-template-columns: 1fr; }
  .sidebar { width: 250px; }
  .sidebar-foot { width: 250px; }
  .page-title { padding: 16px 14px 4px; }
  .page-title h1 { font-size: 20px; }
  .content { padding: 6px 14px 24px; }
  .stats { padding: 6px 0; }
  .stat { border-left: 0; border-top: 1px solid var(--g-line); padding: 10px 16px; }
  .stats .stat:first-child { border-top: 0; }
  .stat > i { left: 16px; top: 10px; }
  .user-menu .user-name { display: none; }
  .g-footer { flex-direction: column; }
}
/* compact data tables inside dashboard panels */
.grid-main .table th, .grid-main .table td { padding-left: 10px; padding-right: 10px; }
.grid-main .table td:last-child { white-space: nowrap; }
.card-h > h3 { margin-right: auto; }
.card-h { justify-content: flex-start; }
.brand { height: auto; min-height: 57px; padding: 8px 12px; }
.brand-name { font-size: 18px; line-height: 1.15; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-tile i { width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px; margin-bottom: 8px; }
td.row-actions { display: table-cell; text-align: right; white-space: nowrap; }
td.row-actions > * { display: inline-block; vertical-align: middle; margin-left: 4px; }
@media (max-width: 560px) { .quick, .quick-emp { grid-template-columns: 1fr 1fr; gap: 10px; } .q-tile { padding: 12px; } .q-tile span { font-size: 12px; } }

/* ---------- dashboard charts ---------- */
.chart-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ctile { background: #fff; border: 1px solid var(--g-line, #E6E9ED); border-radius: 4px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-top { font-size: 13px; color: #73879C; display: flex; gap: 6px; align-items: center; }
.ct-top i { color: #8a9aac; }
.ct-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ct-num { font: 600 34px/1.1 var(--head); color: #5A738E; }
.ct-num small { font-size: 18px; color: #9aa8b6; font-weight: 500; }
.ct-num.teal { color: #1ABB9C; } .ct-num.orange { color: #F39C12; } .ct-num.red { color: #E74C3C; }
.ct-foot { font-size: 12.5px; color: #8a9aac; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ct-foot .up { color: #1ABB9C; }
.ct-foot .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.ct-foot .dot.g { background: #1ABB9C; margin-left: 0; } .ct-foot .dot.m { background: #ABB1B6; }
.ct-split { height: 8px; background: #ABB1B6; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.ct-split i { display: block; height: 100%; background: #1ABB9C; }
.ct-spark { flex: 1; min-width: 0; height: 46px; }
.ct-spark svg { width: 100%; height: 46px; display: block; }
.ct-gauge { width: 84px; flex-shrink: 0; }
.ch-donut { width: 84px; height: 84px; display: block; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ch-hbars, .ch-cols { width: 100%; height: auto; display: block; font-family: var(--body); }
.ch-hbars g:hover rect:last-of-type, .ch-cols g:hover rect { opacity: .82; }
.ch-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #73879C; margin-left: auto; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
@media (max-width: 1100px) { .chart-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chart-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .chart-tiles { grid-template-columns: 1fr; } .ch-legend { margin-left: 0; width: 100%; order: 3; } }
/* HTML bar charts */
.hb { display: flex; flex-direction: column; }
.hb-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #E6E9ED; }
.hb-row:last-child { border-bottom: 0; }
.hb-label { font-weight: 600; color: #5A738E; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-bars { display: flex; flex-direction: column; gap: 5px; }
.hb-line { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; align-items: center; }
.hb-track { height: 10px; background: #F2F4F6; border-radius: 2px; overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 2px; min-width: 2px; animation: hbGrow .7s ease-out; transform-origin: left; }
@keyframes hbGrow { from { transform: scaleX(0); } }
.hb-val { font-size: 12px; color: #8a9aac; white-space: nowrap; }
.hb-val b { color: #5A738E; }
.cols { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; }
.cols-y { display: flex; flex-direction: column; justify-content: space-between; height: 190px; font-size: 11px; color: #8a9aac; text-align: right; transform: translateY(-6px); }
.cols-plot { display: flex; align-items: stretch; gap: 4px; height: 214px; background: repeating-linear-gradient(to bottom, #E6E9ED 0 1px, transparent 1px 47.5px); background-size: 100% 190px; background-repeat: no-repeat; }
.col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.col-bar { height: 190px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.col-bar i { width: 62%; max-width: 30px; border-radius: 3px 3px 0 0; animation: colGrow .7s ease-out; transform-origin: bottom; }
@keyframes colGrow { from { transform: scaleY(0); } }
.col-v { font-size: 11px; font-weight: 700; color: #5A738E; margin-bottom: 3px; }
.col-x { font-size: 10.5px; color: #8a9aac; text-align: center; white-space: nowrap; margin-top: 6px; }
.col-x.hide { visibility: hidden; }
.col:hover .col-bar i { opacity: .8; }
@media (max-width: 560px) { .hb-row { grid-template-columns: 1fr; gap: 6px; } .hb-line { grid-template-columns: minmax(0, 1fr) 84px; } .col-x { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .hb-track i, .col-bar i { animation: none; } }
/* room editing */
.bulk-edit { display: none; padding: 12px 17px; background: #f2fbf9; border-bottom: 2px solid #1ABB9C; gap: 10px; flex-direction: column; }
.bulk-edit.on { display: flex; position: sticky; top: 57px; z-index: 5; }
.be-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: #5A738E; }
.be-fields { display: grid; grid-template-columns: 1.4fr 1fr .6fr .8fr; gap: 10px; }
.be-fields .field > span { font-size: 12px; }
.room-edit .cb { width: 34px; text-align: center; }
.room-edit .cb input { width: 16px; height: 16px; accent-color: #1ABB9C; }
.room-edit .in-cell.wide { min-width: 150px; }
.room-edit .in-cell.room-no { width: 90px; min-width: 70px; font-weight: 600; }
.room-edit tr.row-picked td { background: #e8f7f3 !important; }
@media (max-width: 860px) { .be-fields { grid-template-columns: 1fr 1fr; } }
.room-edit input[name=room_type] { min-width: 120px; }
.pass-qr .qr-svg { width: 100%; height: 100%; display: block; }
.pass-qr { padding: 8px; }
.lb-delete { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
.mem-mine-tag { position: absolute; top: 8px; right: 8px; background: rgba(42,63,84,.85); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; pointer-events: none; }
.mem-pend.rej { background: #E74C3C; color: #fff; } .mem-tile.is-rejected { outline: 2px dashed #E74C3C; outline-offset: -2px; } .mem-tile.is-rejected img { opacity: .6; }
