/* VEGOtravel Back Office - same colours and style as the theme's control panel. */
:root {
	--vg-navy: #1e497e;
	--vg-deep: #12335f;
	--vg-teal: #3fb5b5;
	--vg-amber: #f8ae0a;
	--vg-line: #dfe5ec;
	--vg-bg: #f0f2f5;
	--vg-text: #1d2b3a;
	--vg-muted: #5a6878;
	--vg-soft: #f3f6fa;
	--vg-red: #c0392b;
	--vg-green: #2e9d57;
	--vg-wa: #1f9d55;
	--radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bo { margin: 0; background: var(--vg-bg); color: var(--vg-text); font: 14px/1.55 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[dir="rtl"] body.bo, body.bo[dir="rtl"], html[dir="rtl"] body.bo { font-family: Cairo, Poppins, system-ui, sans-serif; }
a { color: var(--vg-navy); }
a:hover { color: var(--vg-deep); }
h1, h2 { color: var(--vg-deep); line-height: 1.3; }
img { max-width: 100%; height: auto; }
small { color: var(--vg-muted); }
.vi { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--vg-amber); outline-offset: 2px; }

/* Top bar */
.bo-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--vg-line); padding: 0 20px 0 10px; height: 60px; }
[dir="rtl"] .bo-top { padding: 0 10px 0 20px; }
.bo-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--vg-muted); font-weight: 500; flex: none; }
.bo-brand img { height: 32px; width: auto; }
.bo-brand span { border-inline-start: 1px solid var(--vg-line); padding-inline-start: 12px; font-size: 13px; }
.bo-search { flex: 1; max-width: 480px; display: flex; align-items: center; gap: 8px; background: var(--vg-soft); border: 1px solid var(--vg-line); border-radius: 22px; padding: 0 14px; color: var(--vg-muted); }
.bo-search input { flex: 1; border: 0; background: transparent; padding: 9px 0; font: inherit; color: var(--vg-text); min-width: 0; }
.bo-search input:focus { outline: none; }
.bo-search:focus-within { border-color: var(--vg-teal); background: #fff; }
.bo-tools { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; font-size: 13px; }
.bo-tools > a, .bo-tools .bo-link { color: var(--vg-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bo-tools > a:hover, .bo-tools .bo-link:hover { color: var(--vg-deep); }
.bo-lang { font-weight: 600; }
.bo-me span { display: grid; line-height: 1.2; }
.bo-me small { font-size: 11px; }
.bo-me .vi { width: 26px; height: 26px; color: var(--vg-teal); }
.bo-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.bo-burger { display: inline-flex; background: none; border: 0; padding: 8px; border-radius: 6px; color: var(--vg-deep); cursor: pointer; }
.bo-burger:hover { background: var(--vg-soft); }
.bo-burger .vi { width: 24px; height: 24px; }

/* Layout */
.bo-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; padding: 0; align-items: start; }
.bo-nav-off .bo-body { grid-template-columns: minmax(0, 1fr); }
.bo-nav-off .bo-nav { display: none; }
.bo-nav { background: var(--vg-deep); border-radius: 0; padding: 10px 8px; display: grid; gap: 2px; align-content: start; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.bo-nav a { display: flex; gap: 10px; align-items: center; color: #d4deea; text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500; font-size: 13.5px; }
.bo-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.bo-nav a.is-active { background: var(--vg-teal); color: #fff; }
.bo-nav a span { flex: 1; }
.bo-badge { background: #e74c3c; color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; line-height: 1.5; font-weight: 600; }
.bo-nav-foot { margin: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 6px; }
.bo-nav-foot a { font-size: 12.5px; color: #a9b8cb; }
.bo-main { min-width: 0; padding: 20px 24px; max-width: 1480px; width: 100%; margin: 0 auto; }
.bo-ver { color: #8a96a6; font-size: 11.5px; text-align: center; margin: 30px 0 10px; }

/* Title */
.bo-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.bo-title h1 { margin: 0; font-size: 22px; font-weight: 600; }
.bo-title p { margin: 4px 0 0; color: var(--vg-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Buttons */
.bo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--vg-navy); background: #fff; color: var(--vg-navy); font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bo-btn:hover { background: #eef3f9; color: var(--vg-deep); }
.bo-btn .vi { width: 16px; height: 16px; }
.bo-primary { background: var(--vg-navy); color: #fff; }
.bo-primary:hover { background: var(--vg-deep); color: #fff; }
.bo-danger { background: var(--vg-red); border-color: var(--vg-red); color: #fff; }
.bo-danger:hover { background: #a93226; color: #fff; }
.bo-wa { border-color: var(--vg-wa); color: var(--vg-wa); }
.bo-wa:hover { background: #e8f7ee; color: #157a40; }
.bo-sm { min-height: 28px; padding: 3px 10px; font-size: 12.5px; }
.bo-wide { width: 100%; }
.bo-link-danger { background: none; border: 0; color: var(--vg-red); padding: 0; min-height: 0; }
.bo-link-danger:hover { background: none; text-decoration: underline; color: #a93226; }
.bo-inline { display: inline; margin: 0; }
.bo-btn.is-done { border-color: var(--vg-green); color: var(--vg-green); }

/* Stats */
.bo-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.bo-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bo-stat { display: grid; gap: 2px; background: #fff; border: 1px solid var(--vg-line); border-top: 4px solid #c3cbd5; border-radius: 6px; padding: 14px 16px; text-decoration: none; color: var(--vg-text); }
a.bo-stat:hover { box-shadow: 0 2px 10px rgba(18, 51, 95, .08); color: var(--vg-text); }
.bo-stat b { font-size: 24px; font-weight: 700; line-height: 1.25; word-break: break-word; }
.bo-stats-2 .bo-stat b { font-size: 20px; }
.bo-stat span { color: var(--vg-muted); font-size: 13px; }
.bo-stat-amber { border-top-color: var(--vg-amber); } .bo-stat-blue { border-top-color: #2b84c6; } .bo-stat-red { border-top-color: #d64545; } .bo-stat-green { border-top-color: var(--vg-green); } .bo-stat-navy { border-top-color: var(--vg-deep); } .bo-stat-teal { border-top-color: var(--vg-teal); }

/* Cards */
.bo-card { background: #fff; border: 1px solid var(--vg-line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0 0 16px; min-width: 0; }
.bo-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.bo-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.bo-card-head h2 { margin: 0; }
.bo-card-head a { font-size: 13px; }
.bo-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bo-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bo-split-main, .bo-split-side { min-width: 0; }
.bo-sticky { position: sticky; top: 80px; }
.bo-narrow { max-width: 760px; }
.bo-alert { border-inline-start: 4px solid var(--vg-amber); }
.bo-alert blockquote { margin: 10px 0; padding: 10px 14px; background: var(--vg-soft); border-radius: 6px; }
.bo-danger-zone { text-align: end; margin: 0 0 16px; }

/* Tables */
.bo-scroll { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; }
.bo-table th, .bo-table td { text-align: start; padding: 10px 10px; border-bottom: 1px solid #edf0f4; vertical-align: top; }
.bo-table thead th { font-weight: 500; color: var(--vg-muted); font-size: 12.5px; background: #f8fafc; border-bottom: 1px solid var(--vg-line); white-space: nowrap; }
.bo-table tbody tr:hover td { background: #fbfcfe; }
.bo-table tr:last-child td { border-bottom: 0; }
.bo-table .num { text-align: end; white-space: nowrap; }
.bo-list { background: #fff; border: 1px solid var(--vg-line); border-radius: var(--radius); overflow: hidden; }
.bo-card .bo-list { border: 0; }
.bo-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--vg-amber); }
[dir="rtl"] .bo-table tr.is-new td:first-child { box-shadow: inset -3px 0 0 var(--vg-amber); }
.bo-table tr.is-diff td:last-child { background: #fff8e5; font-weight: 600; }
.bo-kv th { width: 34%; color: var(--vg-muted); font-weight: 500; }
.bo-thumb { width: 64px; }
.bo-thumb img { border-radius: 4px; object-fit: cover; display: block; }
.bo-prices input { width: 92px; text-align: end; }
.bo-prices th { min-width: 110px; }
.bo-prices tbody th { min-width: 220px; font-weight: 400; }
.bo-save { margin: 14px 0 0; position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 35%); padding-top: 14px; }

/* Pills */
.bo-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eceff3; color: #4a5563; }
.bo-pill .vi { width: 14px; height: 14px; }
.bo-green { background: #e2f5e9; color: #1e6b3a; } .bo-amber { background: #fff3d6; color: #8a5a00; } .bo-blue { background: #e3f1fb; color: #155a8a; } .bo-red { background: #fde8e8; color: #9b1c1c; } .bo-teal { background: #ddf3f3; color: #1f7070; } .bo-soft { background: var(--vg-soft); color: var(--vg-deep); font-weight: 500; }
.bo-svc { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vg-soft); color: var(--vg-deep); margin-inline-end: 3px; }
.bo-svc .vi { width: 16px; height: 16px; }

/* Filters and chips */
.bo-chips, .bo-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.bo-chips a { text-decoration: none; border: 1px solid var(--vg-line); border-radius: 20px; padding: 5px 14px; color: var(--vg-deep); font-weight: 500; background: #fff; font-size: 13px; }
.bo-chips a.on { background: var(--vg-deep); border-color: var(--vg-deep); color: #fff; }
.bo-tabs { border-bottom: 1px solid var(--vg-line); gap: 0; }
.bo-tabs a { text-decoration: none; padding: 10px 16px; color: var(--vg-muted); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.bo-tabs a.on { color: var(--vg-deep); border-bottom-color: var(--vg-teal); }
.bo-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.bo-filter input[type="search"] { flex: 1; min-width: 200px; max-width: 380px; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], input[type="search"], select, textarea { font: inherit; color: var(--vg-text); background: #fff; border: 1px solid #c8d1db; border-radius: 6px; padding: 7px 10px; min-height: 36px; width: 100%; max-width: 100%; }
.bo-filter input, .bo-filter select { width: auto; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--vg-teal); outline: none; box-shadow: 0 0 0 2px rgba(63, 181, 181, .25); }
input:disabled, select:disabled, textarea:disabled { background: #f6f8fa; color: #58626e; }
.bo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.bo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bo-f { min-width: 0; display: grid; gap: 5px; align-content: start; }
.bo-f.is-wide { grid-column: 1 / -1; }
.bo-f > label, .bo-lbl { font-weight: 500; font-size: 13px; color: var(--vg-text); }
.bo-f small { font-size: 12px; }
.bo-f p { margin: 0; }
.bo-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; cursor: pointer; }
.bo-check input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--vg-teal); }
.bo-form-stack { display: grid; gap: 12px; margin-bottom: 14px; }
.bo-stack { display: grid; gap: 8px; }
.bo-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bo-details summary { cursor: pointer; font-weight: 600; color: var(--vg-deep); margin: 10px 0; }
.bo-card form h2 { margin-top: 18px; }

/* Service icon picker */
.bo-svc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-svc-pick label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--vg-line); border-radius: 6px; cursor: pointer; background: #fff; }
.bo-svc-pick label:has(input:checked) { border-color: var(--vg-deep); background: #eef3f9; color: var(--vg-deep); font-weight: 600; }
.bo-svc-pick label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.bo-svc-pick input { margin: 0; accent-color: var(--vg-deep); }
.bo-card-preview { display: grid; gap: 8px; border: 1px solid var(--vg-line); border-radius: 8px; padding: 10px; }
.bo-card-preview img { border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Lists */
.bo-plist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.bo-plist li { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #e8ecf1; border-radius: 6px; }
.bo-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bo-docs li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #e3e8ef; border-radius: 6px; }
.bo-docs li > div { flex: 1; display: grid; }
.bo-docs .vi { color: var(--vg-teal); width: 22px; height: 22px; }
.bo-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.bo-log li { display: grid; gap: 2px; padding-inline-start: 12px; border-inline-start: 2px solid var(--vg-line); font-size: 13px; }
.bo-log span { font-size: 11.5px; color: var(--vg-muted); }
.bo-roles { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }

/* Messages */
.bo-flash { padding: 11px 16px; border-radius: 6px; margin: 0 0 14px; background: #e2f5e9; color: #1e6b3a; border: 1px solid #bfe5cd; }
.bo-flash-err { background: #fde8e8; color: #9b1c1c; border-color: #f5c2c2; }
.bo-flash-warn { background: #fff3d6; color: #8a5a00; border-color: #f3dc9f; }
.bo-empty { background: var(--vg-soft); border-radius: 6px; padding: 16px; color: var(--vg-muted); margin: 0; }
.bo-muted { color: var(--vg-muted); }
.bo-small { font-size: 12.5px; }

/* Pager */
.bo-pager { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0; }
.bo-pager a, .bo-pager b, .bo-pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--vg-line); background: #fff; text-decoration: none; font-weight: 500; }
.bo-pager b { background: var(--vg-deep); color: #fff; border-color: var(--vg-deep); }
.bo-pager span { border: 0; background: none; }

/* Log-in */
body.bo-bare { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--vg-deep), var(--vg-navy) 55%, #2b6ca8); padding: 20px; }
.bo-auth { width: 100%; display: grid; place-items: center; }
.bo-auth-box { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 32px 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.bo-auth-box h1 { margin: 16px 0 6px; font-size: 22px; }
.bo-auth-logo { height: 40px; width: auto; }
.bo-auth-lang { text-align: center; margin: 16px 0 0; font-size: 13px; }

/* Responsive */
@media (max-width: 1200px) {
	.bo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bo-split { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 980px) {
	.bo-body, .bo-nav-off .bo-body { grid-template-columns: 1fr; }
	.bo-main { padding: 14px; }
	.bo-nav, .bo-nav-off .bo-nav { display: none; position: fixed; inset: 60px auto 0 0; width: min(280px, 85vw); height: auto; z-index: 25; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
	[dir="rtl"] .bo-nav { inset: 60px 0 0 auto; }
	.bo-nav.is-open, .bo-nav-off .bo-nav.is-open { display: grid; }
	.bo-split, .bo-cols { grid-template-columns: 1fr; }
	.bo-sticky { position: static; }
	.bo-search { display: none; }
	.bo-tools > a:not(.bo-lang):not(.bo-me) { display: none; }
	.bo-me span, .bo-tools .bo-link span { display: none; }
}
@media (max-width: 640px) {
	.bo-top, [dir="rtl"] .bo-top { padding: 0 12px; gap: 10px; }
	.bo-brand span { display: none; }
	.bo-stats, .bo-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bo-grid, .bo-grid-3 { grid-template-columns: 1fr; }
	.bo-card { padding: 14px; }
	.bo-title h1 { font-size: 19px; }
	.bo-filter input[type="search"], .bo-filter select { width: 100%; max-width: none; }
}
@media print {
	.bo-top, .bo-nav, .bo-actions, .bo-filter, .bo-chips { display: none !important; }
	.bo-body { display: block; padding: 0; }
}
.bo-table a { text-decoration: none; }
.bo-table a:hover { text-decoration: underline; }

/* WhatsApp inbox */
.wa-app { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.wa-app:not(.has-thread) { grid-template-columns: 320px minmax(0, 1fr); }
.wa-list { padding: 12px; position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; gap: 10px; }
.wa-search input { width: 100%; }
.wa-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.wa-filters a { text-decoration: none; font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--vg-line); color: var(--vg-deep); font-weight: 500; }
.wa-filters a.on { background: var(--vg-deep); color: #fff; border-color: var(--vg-deep); }
.wa-filters .bo-badge { font-size: 10px; padding: 0 5px; }
.wa-items { overflow: auto; flex: 1; margin: 0 -12px; border-top: 1px solid var(--vg-line); }
.wa-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; text-decoration: none; color: var(--vg-text); border-bottom: 1px solid #eef1f5; }
.wa-item:hover { background: var(--vg-soft); color: var(--vg-text); }
.wa-item.is-active { background: #e7f5f5; box-shadow: inset 3px 0 0 var(--vg-teal); }
[dir="rtl"] .wa-item.is-active { box-shadow: inset -3px 0 0 var(--vg-teal); }
.wa-item.is-unread b { color: var(--vg-deep); }
.wa-item.is-unread small { color: var(--vg-text); font-weight: 500; }
.wa-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #d9efe2; color: #157a40; font-weight: 600; }
.wa-item-main { flex: 1; min-width: 0; display: grid; }
.wa-item-main b, .wa-item-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-main b { font-weight: 600; font-size: 13.5px; }
.wa-item-side { display: grid; justify-items: end; gap: 3px; font-size: 11px; color: var(--vg-muted); }
.wa-item-side i { font-style: normal; }
.wa-due { color: var(--vg-amber); }
.wa-due .vi { width: 15px; height: 15px; }
.wa-who { font-size: 10.5px; background: var(--vg-soft); border-radius: 8px; padding: 0 6px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-new summary { cursor: pointer; font-weight: 600; color: var(--vg-deep); display: flex; gap: 6px; align-items: center; }
.wa-new form { margin-top: 10px; }
.wa-thread { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 160px); min-height: 480px; overflow: hidden; }
.wa-blank { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--vg-muted); }
.wa-blank > .vi { width: 56px; height: 56px; color: var(--vg-wa); }
.wa-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--vg-line); }
.wa-head > div { flex: 1; min-width: 0; }
.wa-head h2 { margin: 0; font-size: 15px; }
.wa-head p { margin: 0; font-size: 12.5px; color: var(--vg-muted); }
.wa-back { display: none; color: var(--vg-deep); }
.wa-msgs { flex: 1; overflow-y: auto; padding: 16px; background: #efeae2; display: flex; flex-direction: column; gap: 6px; }
.wa-msgs .bo-empty { background: rgba(255, 255, 255, .7); align-self: center; }
.wa-day { align-self: center; margin: 8px 0; }
.wa-day span { background: #fff; color: var(--vg-muted); font-size: 11.5px; border-radius: 8px; padding: 3px 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.wa-msg { max-width: min(78%, 560px); background: #fff; border-radius: 10px; padding: 7px 10px 5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); align-self: flex-start; overflow-wrap: anywhere; }
.wa-msg.wa-out { align-self: flex-end; background: #d9fdd3; }
.wa-msg.wa-failed { background: #fde8e8; }
.wa-text { white-space: normal; font-size: 13.5px; }
.wa-meta { display: flex; gap: 6px; justify-content: flex-end; align-items: center; font-size: 10.5px; color: #667781; margin-top: 2px; }
.wa-tick { font-weight: 600; letter-spacing: -2px; }
.wa-tick.is-read { color: #34b7f1; }
.wa-tick.is-fail { color: var(--vg-red); letter-spacing: 0; }
.wa-err { margin: 4px 0 0; font-size: 11.5px; color: var(--vg-red); }
.wa-img img { display: block; border-radius: 6px; max-height: 280px; width: auto; }
.wa-sticker img { max-height: 120px; }
.wa-msg audio, .wa-msg video { max-width: 100%; display: block; }
.wa-doc { display: flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .04); border-radius: 6px; padding: 8px 10px; text-decoration: none; }
.wa-tag { display: inline-block; font-size: 10.5px; background: #fff3d6; color: #8a5a00; border-radius: 6px; padding: 0 6px; margin-bottom: 3px; }
.wa-note { margin: 0; font-style: italic; color: var(--vg-muted); }
.wa-compose { border-top: 1px solid var(--vg-line); padding: 10px 12px; display: grid; gap: 8px; background: #fff; }
.wa-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.wa-send .wa-quick { grid-column: 1 / -1; width: auto; max-width: 100%; min-height: 30px; padding: 3px 8px; font-size: 12.5px; justify-self: start; }
.wa-send textarea { min-height: 44px; max-height: 180px; }
.wa-more summary { cursor: pointer; font-size: 12.5px; color: var(--vg-navy); display: flex; gap: 6px; align-items: center; }
.wa-more .vi { width: 15px; height: 15px; }
.wa-file { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.wa-file input[type="text"] { flex: 1; min-width: 160px; width: auto; }
.wa-tpl { margin-top: 8px; }
.wa-tpl-body { margin: 0; background: var(--vg-soft); border-radius: 6px; padding: 8px 10px; white-space: pre-line; font-size: 13px; }
.wa-closed { margin: 0; background: #fff3d6; color: #8a5a00; border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.wa-side .bo-card { padding: 14px 16px; }
.wa-bk { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.wa-code { display: block; background: var(--vg-soft); border: 1px solid var(--vg-line); border-radius: 6px; padding: 7px 10px; font-size: 12px; word-break: break-all; }
@media (max-width: 1280px) {
	.wa-app, .wa-app:not(.has-thread) { grid-template-columns: 280px minmax(0, 1fr); }
	.wa-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 980px) {
	.wa-app, .wa-app:not(.has-thread) { grid-template-columns: 1fr; }
	.wa-app.has-thread .wa-list { display: none; }
	.wa-app:not(.has-thread) .wa-blank { display: none; }
	.wa-list { position: static; max-height: none; }
	.wa-back { display: inline-flex; }
	.wa-thread { height: calc(100vh - 120px); }
	.wa-side { grid-template-columns: 1fr; }
}
