/* Web App ທ່ຽວທົ່ວທີບ — ຈຳລອງໜ້າຕາ Flutter Material 3 ຂອງແອັບ (theme.dart + ColorScheme.fromSeed(teal)) */

@font-face { font-family: "NotoSansLaoLooped"; src: url("../fonts/NotoSansLaoLooped-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NotoSansLaoLooped"; src: url("../fonts/NotoSansLaoLooped-Bold.ttf"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Bold.ttf"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "MaterialIcons"; src: url("../fonts/MaterialIcons-Regular.otf"); font-display: block; }

:root {
  /* AppColors */
  --ink: #15313B; --muted: #5B7078; --ground: #EEF3F2; --surface2: #F5F8F7; --line: #D6E1DF;
  --teal: #2B6C84; --teal-soft: #DCEBEF; --palm: #3E8740; --palm-soft: #E1F0DF;
  --gold: #B8901C; --gold-soft: #F6EDCF; --bad: #B8453A; --bad-soft: #F7E1DE;
  --csr: #2F7D6B; --csr-soft: #DDEFE8;
  /* ColorScheme.fromSeed(teal) */
  --primary: #2B6C84; --on-primary: #fff; --sec-container: #CFE6F2; --on-sec-container: #354A53;
  --outline: #70787D; --outline-variant: #C0C8CC; --surface-low: #F0F4F8; --surface-container: #EAEEF2;
  --surface-high: #DEE3E6; --on-surface-variant: #40484C; --primary-container: #BCE9FF;
  --on-primary-container: #004D63; --inverse-surface: #2C3134; --on-inverse-surface: #EDF1F5;
  --error: #BA1A1A;
  --font: "NotoSansLaoLooped", "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.43;
  letter-spacing: .25px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; font-weight: inherit; font-size: inherit; }

.mi { font-family: "MaterialIcons"; font-style: normal; font-weight: normal; line-height: 1; letter-spacing: 0;
  display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga";
  flex: none; user-select: none; }

/* ---------- ກອບໂທລະສັບ (ຄືກັບ WebPhoneFrame ໃນ Flutter web) ---------- */
.device { height: 100%; }
.screen { position: relative; height: 100vh; height: 100dvh; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
/* ກອບໂທລະສັບ (ໂໝດນຳສະເໜີ — ເປີດ/ປິດ ດ້ວຍປຸ່ມມຸມຊ້າຍລຸ່ມ ເທິງຈໍຄອມ) */
@media (min-width: 600px) {
  .framed .device { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
  .framed .screen { width: 430px; height: clamp(560px, calc(100vh - 48px), 932px); border: 10px solid #000;
    border-radius: 36px; box-shadow: 0 16px 40px rgba(0,0,0,.54); }
  .framed .screen-clip { border-radius: 26px; }
}
.screen-clip { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff;
  container: app / inline-size; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.page { view-transition-name: page; }

/* ---------- AppBar (M3: 64px, titleLarge 22) ---------- */
.appbar { flex: none; height: 64px; display: flex; align-items: center; background: #fff; padding-right: 4px;
  transition: box-shadow .2s; z-index: 2; }
.appbar.scrolled { box-shadow: 0 .5px 0 rgba(0,0,0,.18); }
.appbar .lead { width: 56px; height: 56px; display: grid; place-items: center; flex: none; }
.appbar .title { flex: 1; min-width: 0; font-size: 22px; line-height: 28px; letter-spacing: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.appbar .title.no-lead { padding-left: 16px; }
.icon-btn { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: grid;
  place-items: center; cursor: pointer; color: var(--on-surface-variant); flex: none; }
.icon-btn:hover { background: rgba(64,72,76,.08); }
.icon-btn.tonal { width: 40px; height: 40px; background: var(--sec-container); color: var(--on-sec-container); margin: 4px; }
.appbar .icon-btn { color: var(--ink); }

/* ---------- NavigationBar (M3, height 68) ---------- */
.navbar { flex: none; height: 68px; background: #fff; display: flex; z-index: 3;
  padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.navbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--on-surface-variant); font-size: 11px; line-height: 16px; letter-spacing: .5px; min-width: 0; }
.navbar .ind { position: relative; width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center;
  transition: background .2s; }
.navbar a.on .ind { background: var(--teal-soft); }
.navbar a.on { color: var(--teal); font-weight: 700; }
.navbar .lbl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.badge { position: absolute; left: 34px; top: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--error); color: #fff; font-size: 11px; line-height: 16px; font-weight: 500; text-align: center;
  letter-spacing: 0; }

/* ---------- ປຸ່ມ (M3) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 24px;
  border-radius: 20px; border: 0; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: .1px;
  white-space: nowrap; text-align: center; }
.btn .mi { font-size: 18px; }
.btn.block { display: flex; width: 100%; }
.btn.tall { height: 48px; } .btn.taller { height: 50px; }
.btn-filled { background: var(--primary); color: var(--on-primary); }
.btn-tonal { background: var(--sec-container); color: var(--on-sec-container); }
.btn-outlined { background: none; color: var(--primary); border: 1px solid var(--outline); }
.btn-outlined.teal { border-color: var(--teal); color: var(--teal); }
.btn-outlined.palm { color: var(--palm); }
.btn-text { background: none; color: var(--primary); padding: 0 12px; }
.btn[disabled], .btn.disabled { background: rgba(23,28,31,.12); color: rgba(23,28,31,.38); border-color: rgba(23,28,31,.12);
  pointer-events: none; }
.btn-outlined[disabled], .btn-outlined.disabled { background: none; }
.btn:active { filter: brightness(.94); }
.row-btns { display: flex; gap: 8px; } .row-btns > * { flex: 1; min-width: 0; }

.lang-btn { height: 32px; padding: 0 12px 0 8px; border: 1px solid var(--outline); border-radius: 16px; background: none;
  color: var(--primary); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
  cursor: pointer; letter-spacing: .1px; }

/* ---------- ຊ່ອງຄົ້ນຫາ (SearchBox) ---------- */
.search { position: relative; display: flex; align-items: center; height: 48px; background: var(--surface2);
  border: 1px solid var(--line); border-radius: 16px; }
.search:focus-within { border: 2px solid var(--primary); }
.search .mi { color: var(--on-surface-variant); margin: 0 12px 0 12px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; letter-spacing: .5px;
  height: 100%; color: var(--ink); }
.search input::placeholder { color: var(--on-surface-variant); }
.search .clear { display: none; }
.search.has-text .clear { display: grid; }

/* ---------- Pill / ປ້າຍ ---------- */
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 16px;
  font-weight: 700; white-space: nowrap; letter-spacing: .25px; }
.pill.open { color: var(--palm); background: var(--palm-soft); }
.pill.closed { color: var(--bad); background: var(--bad-soft); }
.pill.teal { color: var(--teal); background: var(--teal-soft); }
.pill.gold { color: var(--gold); background: var(--gold-soft); }
.pill.csr { color: var(--csr); background: var(--csr-soft); }
.pill.hot { color: #fff; background: var(--bad); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Gradient ແທນຮູບ (kCategoryGradients) ---------- */
.g-temple { background: linear-gradient(135deg, #B8901C, #8A5A12); }
.g-museum { background: linear-gradient(135deg, #6B5B8C, #3F3561); }
.g-heritage { background: linear-gradient(135deg, #B06A4B, #6E3A2A); }
.g-nature { background: linear-gradient(135deg, #3E8740, #1F5A3A); }
.g-market { background: linear-gradient(135deg, #C9603A, #8E2F2A); }
.g-landmark { background: linear-gradient(135deg, #2B6C84, #1B4352); }
.g-hotel { background: linear-gradient(135deg, #2B6C84, #4E97A8); }
.g-food { background: linear-gradient(135deg, #C9603A, #E3A34A); }
.g-cafe { background: linear-gradient(135deg, #6E4B33, #A67B55); }
.g-barber { background: linear-gradient(135deg, #3F5E7A, #6E8CA8); }
.g-beauty { background: linear-gradient(135deg, #B5577A, #E08FA8); }
.g-pharmacy { background: linear-gradient(135deg, #2E8B6E, #5DB894); }
.g-clinic { background: linear-gradient(135deg, #C0433F, #E07A6E); }
.g-social { background: linear-gradient(135deg, #2F7D6B, #7CB8A0); }
.g-clothing { background: linear-gradient(135deg, #7A5A9E, #A888C8); }
.g-massage { background: linear-gradient(135deg, #8A6D3B, #BC9A62); }
.g-gift { background: linear-gradient(135deg, #D35D6E, #F09AA3); }
.g-media { background: linear-gradient(135deg, #4A5FC1, #8393E0); }
.g-phone_repair { background: linear-gradient(135deg, #37474F, #6B7F8A); }
.g-auto_parts { background: linear-gradient(135deg, #5D6B2F, #94A35A); }
.cover { background-size: cover; background-position: center; }

/* ---------- ໜ້າຫຼັກ ---------- */
.pad { padding-left: 16px; padding-right: 16px; }
/* ຫົວໜ້າຫຼັກ: ແຖວ 1 = ໂລໂກ້ + ຊື່ແອັບ + ປຸ່ມພາສາ · ແຖວ 2 = ແຖບຄົ້ນຫາເຕັມຄວາມກວ້າງ */
.home-head { display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 14px; }
.home-head .head-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-head .logo-link { display: flex; align-items: center; flex: none; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,49,59,.12); }
.home-head .logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: block; }
.home-head .names { flex: 1; min-width: 0; }
.home-head .app-name { font-size: 18px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.home-head .tagline { font-size: 12px; color: var(--muted); line-height: 1.3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.home-head .lang-btn { flex: none; }
.unified-search { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 6px 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 4px 12px rgba(21,49,59,.06); transition: border-color .2s, box-shadow .2s; }
.unified-search:focus-within { border: 1px solid var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.unified-search > .mi { color: var(--muted); flex: none; margin: 0 4px 0 0; }
.unified-search input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; letter-spacing: .25px; color: var(--ink); }
.unified-search input::placeholder { color: var(--muted); font-size: 14px; }
.unified-search input::-webkit-search-cancel-button { display: none; }
.unified-search .clear { width: 32px; height: 32px; color: var(--muted); }
.search-action-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; color: var(--ink); background: var(--surface2); transition: filter .15s, transform .1s; }
.search-action-btn:hover { filter: brightness(.96); }
.search-action-btn:active { transform: scale(.92); }
.search-action-btn.ai-action { background: var(--teal); color: #fff; }
.hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; color: #fff; }
.hero .t { font-size: 18px; font-weight: 800; }
.hero .s { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 3px; }
.home-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-widget { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 88px; padding: 14px;
  border-radius: 18px; }
.home-widget > .mi { flex: 0 0 auto; }
.home-widget > div { min-width: 0; }
.near-widget { color: #fff; }
.home-shortcuts .t { overflow: hidden; font-size: 14px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-shortcuts .s { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 11px; line-height: 1.4; margin-top: 3px; }
.near-widget .s { color: rgba(255,255,255,.72); }
.home-shortcuts .csr-banner { color: var(--csr); }
.home-shortcuts .csr-banner .s { color: color-mix(in srgb, var(--csr) 70%, transparent); }
.weather { padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(90deg, var(--teal), #3F8FA0); }
.weather .cap { color: rgba(255,255,255,.7); font-size: 12px; }
.weather .rowx { display: flex; align-items: center; margin-top: 6px; }
.weather .temp { font-size: 36px; font-weight: 800; margin: 0 12px; line-height: 1.43; }
.weather .lab { font-weight: 700; }
.weather .sub { color: rgba(255,255,255,.7); font-size: 11px; }
.csr-banner { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--csr-soft);
  color: var(--csr); }
.csr-banner .txt { flex: 1; line-height: 1.4; }
.sec-row { display: flex; align-items: baseline; padding: 0 16px 10px; }
.sec-row .h { flex: 1; font-size: 18px; font-weight: 800; }
.sec-row .c { color: var(--muted); }

/* Card ແຂວງ / ເມືອງ */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; aspect-ratio: .96; border-radius: 18px; overflow: hidden; color: #fff; display: block;
  background: #ccc; }
.tile > img, .tile > .fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.8) 100%); }
.tile .in { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; z-index: 1; }
.tile .top { display: flex; justify-content: space-between; align-items: center; }
.num { padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.38); font-weight: 700; font-size: 12px; line-height: 1.2; }
.tile .nm { margin-top: auto; font-size: 15px; font-weight: 800; text-shadow: 0 0 6px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .ln { display: flex; align-items: center; gap: 2px; font-size: 11px; }
.tile .ln span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ln .mi { color: rgba(255,255,255,.7); }
.tile:active { filter: brightness(.92); }

/* Widget Cards (ແບບແຂວງ ແຕ່ Card ນ້ອຍກວ່າ) */
/* ການ໌ດທາງລັດ CSR / Near: ສູງຄົງທີ່ 100px (ນ້ອຍກວ່າ ການ໌ດແຂວງ) */
.tile.tile-sm { aspect-ratio: auto; height: 100px; min-height: 0; border-radius: 16px; }
.tile.tile-sm .in { padding: 9px 10px; }
.tile.tile-sm .top { margin-bottom: 2px; }
.tile.tile-sm .top .num { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 11px; font-weight: 800; line-height: 1.2; }
.tile.tile-sm .top .num.num-csr { background: rgba(33, 94, 78, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.24); }
.tile.tile-sm .top .num.num-near { background: rgba(26, 75, 48, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.24); }
.tile.tile-sm .top .mi { filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.tile.tile-sm .nm { font-size: 14px; font-weight: 800; line-height: 1.25; margin-top: auto; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.tile.tile-sm .ln { font-size: 10.5px; margin-top: 2px; gap: 3px; color: rgba(255,255,255,.9); }
.tile.tile-sm .ln span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.tile.tile-sm::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.08) 38%, rgba(0,0,0,.85) 100%); }

/* ໝວດໝູ່ (_MenuCard large) */
.menu-card { aspect-ratio: 1; border-radius: 18px; border: 1px solid; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 14px; text-align: center; }
.menu-card .av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.menu-card .tt { margin-top: 12px; font-weight: 800; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.menu-card .ss { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; }

.district-hero { position: relative; aspect-ratio: 2; border-radius: 18px; overflow: hidden; color: #fff; }
.district-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.district-hero { background: linear-gradient(135deg, #3E8740, #1F5A3A); }
.district-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.79)); }
.district-hero .in { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.district-hero .a { font-size: 20px; font-weight: 800; }
.district-hero .b { color: rgba(255,255,255,.7); }

/* ---------- ລາຍການແບບ App Store (business_showcase.dart) ---------- */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 0;
  scrollbar-width: none; scroll-padding-left: 16px; }
.carousel::-webkit-scrollbar, .shelf::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.feat { flex: 0 0 calc(90% - 12px); scroll-snap-align: start; display: flex; flex-direction: column; color: var(--ink); }
.feat .eb { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.feat .n { font-size: 20px; font-weight: 700; }
.feat .tg { font-size: 16px; color: var(--muted); }
.feat .eb, .feat .n, .feat .tg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat .card { position: relative; margin-top: 8px; aspect-ratio: 1.6; border-radius: 18px; overflow: hidden; }
.feat .card .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.54); }
.feat .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 12px; display: flex; align-items: center;
  gap: 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); color: #fff; }
.feat .logo { width: 44px; height: 44px; border-radius: 10.5px; background: #fff; overflow: hidden; flex: none;
  display: grid; place-items: center; color: #fff; }
.feat .logo img { width: 100%; height: 100%; object-fit: cover; }
.feat .bar .x { flex: 1; min-width: 0; }
.feat .bar .x b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat .bar .x span { display: block; font-size: 12px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.view-pill { padding: 7px 18px; border-radius: 99px; background: rgba(255,255,255,.28); font-weight: 800; font-size: 15px; }
.shelf-title { padding: 22px 16px 10px; }
.shelf-title .a { font-size: 20px; font-weight: 800; }
.shelf-title .b { color: var(--muted); font-size: 12px; }
.shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 0 16px; align-items: start; }
.small { display: block; min-width: 0; }
.small .sq { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; color: rgba(255,255,255,.7); }
.small .t { margin-top: 6px; font-weight: 700; font-size: 12px; line-height: 1.25; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.small .s { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-sets { padding: 2px 16px 8px; color: var(--muted); font-size: 11px; }

/* ---------- ໜ້າລາຍລະອຽດ ---------- */
.body { padding: 4px 16px 24px; }
.hero-head { position: relative; height: 180px; border-radius: 18px; overflow: hidden; color: #fff; }
.hero-head.photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 100%); }
.hero-head .in { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; }
.hero-head .a { font-size: 22px; font-weight: 700; text-shadow: 0 0 8px rgba(0,0,0,.35); }
.hero-head .b { font-size: 13px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { padding: 8px 10px; background: var(--surface2); border-radius: 12px; }
.fact .l { font-size: 11px; color: var(--muted); }
.fact .v { font-size: 13px; white-space: pre-line; }
.sec-h { padding: 18px 0 8px; font-size: 16px; font-weight: 700; }
.note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface2); font-size: 12px; color: var(--muted); }
.promo { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--palm-soft); display: flex;
  align-items: center; gap: 10px; }
.promo .x { flex: 1; } .promo .x b { color: var(--palm); font-weight: 700; display: block; }
.promo .x span { font-size: 12px; color: var(--muted); } .promo .v { color: var(--palm); font-weight: 700; font-size: 16px; }
.alert { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad);
  display: flex; gap: 8px; align-items: center; font-size: 13px; }
.menu-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.menu-row img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.menu-row .x { flex: 1; min-width: 0; }
.menu-row .nm { font-size: 14.5px; font-weight: 600; }
.menu-row .nm.off { color: var(--muted); text-decoration: line-through; }
.menu-row .ds { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.menu-row .pr { font-weight: 700; margin-top: 2px; }
.media { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.media a { flex: 0 0 150px; }
.media .sq { width: 150px; height: 150px; border-radius: 14px; object-fit: cover; background: var(--surface2); }
.media .vid { width: 150px; height: 150px; border-radius: 14px; background: var(--ink); color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; }
.media .cap { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-box { height: 220px; border-radius: 16px; overflow: hidden; background: var(--surface2); }
.map-none { display: flex; gap: 10px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface2);
  border: 1px solid var(--line); color: var(--muted); }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review .top { display: flex; gap: 8px; align-items: center; }
.review .st { color: var(--gold); } .review .au { flex: 1; font-weight: 600; font-size: 13px; }
.review .ag { color: var(--muted); font-size: 11.5px; }
.review .tx { font-size: 13.5px; margin-top: 2px; }
.review .rp { margin-top: 6px; padding: 6px 10px; background: var(--surface2); border-radius: 8px;
  border-left: 3px solid var(--teal); font-size: 12.5px; }
.csr-card { padding: 14px; border-radius: 16px; background: var(--csr-soft); }
.csr-card .h { display: flex; align-items: center; gap: 8px; color: var(--csr); }
.csr-card .h b { flex: 1; font-size: 16px; font-weight: 700; } .csr-card .h span { font-weight: 600; }
.csr-card .sv { display: flex; gap: 8px; margin-top: 4px; line-height: 1.4; }
.csr-card .sv .mi { color: var(--csr); margin-top: 3px; }
.csr-card .lnk { display: inline-block; margin-top: 6px; color: var(--csr); font-size: 12px; font-weight: 600;
  text-decoration: underline; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.photo-strip img { width: 112px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; cursor: zoom-in; }

/* ListRowCard / BusinessRow */
.row-card { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; }
.row-card .gb { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.row-card .x { flex: 1; min-width: 0; }
.row-card .x b { display: block; font-weight: 700; font-size: 14.5px; }
.row-card .x span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted); font-size: 12px; }
.row-card .r { text-align: right; } .row-card .r b { display: block; font-weight: 700; font-size: 13.5px; }
.row-card .r span { color: var(--muted); font-size: 11px; }

/* ---------- ງານ Event ---------- */
.seg { display: inline-flex; height: 32px; border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; }
.seg a { padding: 0 12px; display: grid; place-items: center; font-weight: 500; font-size: 14px; letter-spacing: .1px; }
.seg a + a { border-left: 1px solid var(--outline); }
.seg a.on { background: var(--sec-container); color: var(--on-sec-container); }
.hscroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); display: inline-flex;
  align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .1px; color: var(--on-surface-variant);
  white-space: nowrap; background: #fff; cursor: pointer; }
.chip.on { background: var(--sec-container); border-color: transparent; color: var(--on-sec-container); padding-left: 8px; }
.chip .mi { font-size: 18px; }
.ev-feat { flex: 0 0 290px; height: 230px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.ev-cover { position: relative; display: grid; place-items: center; background-size: cover; background-position: center; }
.date-badge { position: absolute; width: 52px; padding: 6px 0; background: #fff; border-radius: 12px; text-align: center;
  box-shadow: 0 0 6px rgba(0,0,0,.13); color: var(--ink); }
.date-badge b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.date-badge span { display: block; font-size: 10.5px; color: var(--bad); white-space: nowrap; overflow: hidden; }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 10px; background: #fff; }
.ev-row .cv { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; font-size: 30px; }
.ev-row .cv .d { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(0,0,0,.67); color: #fff;
  text-align: center; font-size: 11px; font-weight: 700; }
.ev-row .x { flex: 1; min-width: 0; }
.ev-row .t, .ev-row .m { display: block; }
.ev-row .t { font-weight: 700; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 2px; }
.ev-row .m { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-h { padding: 14px 16px 6px; font-size: 15px; font-weight: 800; color: var(--teal); }
.bottom-bar { flex: none; padding: 8px 16px; display: flex; gap: 8px; background: #fff; border-top: 1px solid var(--surface-container); }
.bottom-bar > * { flex: 1; }

/* ---------- ແຊັດ ---------- */
.chat-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.chat-row .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background-size: cover; background-position: center; }
.chat-row .x { flex: 1; min-width: 0; } .chat-row .x b { display: block; font-weight: 700; }
.chat-row .x span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .r { text-align: right; font-size: 11px; color: var(--muted); }
.chat-row .r .n { display: inline-block; margin-top: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--bad); color: #fff; font-weight: 700; line-height: 20px; text-align: center; }
.bubbles { padding: 12px 12px 8px; display: flex; flex-direction: column; }
.bubble { max-width: 75%; padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: var(--surface2);
  border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; line-height: 1.4;
  margin: 3px 0; }
.bubble.mine { align-self: flex-end; background: var(--teal); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; }
.bubble.sys { align-self: center; background: var(--gold-soft); color: var(--gold); font-size: 12px; border: 0; border-radius: 16px; }
.bubble .w { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.bubble.mine .w { color: rgba(255,255,255,.7); text-align: right; }
.composer { flex: none; display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; }
.composer input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface2); outline: 0; font-size: 15px; }
.fab { position: absolute; right: 16px; bottom: 84px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px; border: 0;
  background: var(--primary-container); color: var(--on-primary-container); display: flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 14px; letter-spacing: .1px; box-shadow: 0 3px 6px rgba(0,0,0,.2); z-index: 4; }

/* ---------- ການເດີນທາງ ---------- */
.tr-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tr-row .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid;
  place-items: center; flex: none; }
.tr-row .x b { display: block; font-weight: 700; font-size: 15px; }
.tr-row .x .d { color: var(--muted); font-size: 13px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 500; height: 32px; }

/* ---------- ຟອມ / ໂປຣໄຟລ໌ ---------- */
.field { position: relative; margin-bottom: 12px; }
.field input, .field select { width: 100%; height: 56px; padding: 16px; border: 1px solid var(--outline); border-radius: 4px;
  background: #fff; font-size: 16px; letter-spacing: .5px; outline: 0; appearance: none; }
.field input:focus, .field select:focus { border: 2px solid var(--primary); padding: 15px; }
.field label { position: absolute; left: 12px; top: -8px; padding: 0 4px; background: #fff; font-size: 12px;
  color: var(--on-surface-variant); line-height: 16px; }
.field.filled input { background: var(--surface2); border-radius: 12px; }
.field .sel-arrow { position: absolute; right: 12px; top: 16px; pointer-events: none; color: var(--on-surface-variant); }
.segm { display: flex; height: 40px; border: 1px solid var(--outline); border-radius: 20px; overflow: hidden; }
.segm a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 14px; }
.segm a + a { border-left: 1px solid var(--outline); }
.segm a.on { background: var(--sec-container); color: var(--on-sec-container); }
.segm .mi { font-size: 18px; }
.divider-or { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 10px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--outline-variant); }
.tile-list a, .tile-list button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 8px 16px 8px 16px;
  font-size: 16px; letter-spacing: .5px; background: none; border: 0; text-align: left; cursor: pointer; }
.tile-list .mi { color: var(--on-surface-variant); }
.tile-list .grow { flex: 1; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--palm-soft); color: var(--teal); display: grid;
  place-items: center; margin: 0 auto; background-size: cover; }
.err { color: var(--bad); margin-top: 8px; }
.debug { color: var(--gold); font-size: 12px; }

/* ---------- Bottom sheet / Dialog / Snackbar / ຮູບເຕັມຈໍ ---------- */
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); opacity: 0; pointer-events: none; transition: opacity .2s;
  z-index: 20; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85%; overflow-y: auto; background: var(--surface-low);
  border-radius: 28px 28px 0 0; transform: translateY(100%); transition: transform .25s cubic-bezier(.2,0,0,1); z-index: 21;
  padding-bottom: 16px; }
.sheet.open { transform: none; }
.sheet .handle { width: 32px; height: 4px; border-radius: 2px; background: rgba(64,72,76,.4); margin: 22px auto 22px; }
.sheet h3 { font-size: 18px; font-weight: 800; }
.lang-tile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; }
.lang-tile.on { background: var(--teal-soft); border: 1.5px solid var(--teal); }
.lang-tile .cd { width: 40px; height: 40px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--teal); }
.lang-tile .x { flex: 1; } .lang-tile .x b { display: block; font-size: 17px; font-weight: 700; }
.lang-tile .x span { font-size: 12px; color: var(--muted); }
.dialog { position: absolute; left: 50%; top: 50%; width: calc(100% - 80px); max-width: 360px; transform: translate(-50%, -50%) scale(.95);
  opacity: 0; pointer-events: none; transition: .2s; background: #fff; border-radius: 20px; overflow: hidden; z-index: 21; }
.dialog.open { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.snackbar { position: absolute; left: 16px; right: 16px; bottom: 84px; padding: 14px 16px; border-radius: 4px;
  background: var(--inverse-surface); color: var(--on-inverse-surface); box-shadow: 0 3px 6px rgba(0,0,0,.25);
  transform: translateY(20px); opacity: 0; transition: .2s; z-index: 30; pointer-events: none; }
.snackbar.show { transform: none; opacity: 1; }
.viewer { position: absolute; inset: 0; background: #000; z-index: 25; display: none; flex-direction: column; color: #fff; }
.viewer.open { display: flex; }
.viewer .vbar { height: 64px; display: flex; align-items: center; font-size: 22px; }
.viewer .vbar .icon-btn { color: #fff; margin: 0 4px; }
.viewer .track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer .track::-webkit-scrollbar { display: none; }
.viewer .track div { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.viewer .track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .vcap { padding: 12px 16px 16px; text-align: center; font-size: 15px; line-height: 1.5; min-height: 24px; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px; color: var(--muted); }
.empty .mi { margin-bottom: 10px; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); } .center { text-align: center; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mb10 { margin-bottom: 10px; }
.mb14 { margin-bottom: 14px; }
.hidden { display: none !important; }

/* ການປ່ຽນໜ້າ (ຄືກັບ MaterialPageRoute) */
@view-transition { navigation: auto; }
::view-transition-old(page) { animation: .18s ease-out both fade-out; }
::view-transition-new(page) { animation: .22s cubic-bezier(.2,0,0,1) both slide-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(page), ::view-transition-new(page) { animation: none; } }


/* =====================================================================
   ຮອງຮັບທຸກຂະໜາດຈໍ — ອີງຕາມຄວາມກວ້າງຂອງແອັບ (container query),
   ສະນັ້ນໃນກອບໂທລະສັບ ກໍຍັງເປັນແບບໂທລະສັບ
   ===================================================================== */

/* ໂມງ / ຈໍນ້ອຍຫຼາຍ */
@container app (max-width: 320px) {
  .navbar { height: 52px; }
  .navbar .lbl { display: none; }
  .navbar .ind { width: 44px; }
  .badge { left: 26px; }
  .appbar { height: 48px; }
  .appbar .lead { width: 44px; height: 44px; }
  .appbar .title { font-size: 16px; line-height: 22px; }
  .home-head { padding: 8px; gap: 10px; }
  .home-head .app-name { font-size: 16px; }
  .home-head .tagline { display: none; }
  .pad, .body { padding-left: 8px; padding-right: 8px; }
  .grid2, .facts { grid-template-columns: 1fr; }
  .row-btns { flex-direction: column; }
  .hero { padding: 12px; gap: 10px; } .hero .t { font-size: 15px; }
  .weather .temp { font-size: 26px; }
  .shelf-page { grid-template-columns: repeat(2, 1fr); padding: 0 8px; }
  .feat { flex-basis: calc(100% - 4px); }
  .fab { bottom: 64px; height: 44px; padding: 0 12px; }
  .snackbar { bottom: 60px; left: 8px; right: 8px; }
  .home-head .logo { width: 32px; height: 32px; border-radius: 8px; }
  .search-action-btn { width: 36px; height: 36px; }
  .lang-btn { padding: 0 8px; }
  .pill, .link-btn, .chip { white-space: normal; height: auto; min-height: 32px; }
  .pill { min-height: 0; }
  .ev-feat { flex-basis: 85%; height: auto; padding-bottom: 8px; }
  .seg a { padding: 0 8px; font-size: 12px; }
  .bubble { max-width: 90%; }
}

/* ແທັບເລັດ */
@container app (min-width: 600px) {
  .grid2 { grid-template-columns: repeat(3, 1fr); }
  .grid2.types { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 16px 12px;
    padding: 0 16px 8px; overflow: visible; }
  .shelf-page { display: contents; }
  .more-sets { display: none !important; }
  .feat { flex-basis: min(560px, calc(90% - 12px)); }
  .hero-head { height: 260px; }
  .district-hero { aspect-ratio: 3; }
  .bubble { max-width: min(75%, 560px); }
  .sheet { left: 50%; right: auto; width: min(100%, 640px); transform: translate(-50%, 100%); }
  .sheet.open { transform: translate(-50%, 0); }
  .snackbar { left: 50%; right: auto; width: min(calc(100% - 32px), 560px); transform: translate(-50%, 20px); }
  .snackbar.show { transform: translate(-50%, 0); }
  .ev-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
}

/* ຄອມ / ແທັບເລັດແນວນອນ: ແຖບນຳທາງຢູ່ຊ້າຍ (NavigationRail) + ເນື້ອໃນຢູ່ກາງ */
@container app (min-width: 840px) {
  .screen-clip > :not(.navbar, .scrim, .sheet, .dialog, .viewer, .snackbar, .fab) {
    margin-left: calc(80px + max(0px, (100cqw - 80px - 1080px) / 2));
    margin-right: max(0px, (100cqw - 80px - 1080px) / 2);
  }
  .navbar { position: absolute; left: 0; top: 0; bottom: 0; width: 80px; height: auto; flex-direction: column;
    justify-content: flex-start; gap: 12px; padding: 24px 0 env(safe-area-inset-bottom); border-right: 1px solid var(--surface-container); }
  .navbar a { flex: none; height: 64px; }
  .navbar .lbl { font-size: 12px; }
  .grid2 { grid-template-columns: repeat(4, 1fr); }
  .grid2.types { grid-template-columns: repeat(6, 1fr); }
  .fab { bottom: 24px; right: max(24px, calc((100cqw - 80px - 1080px) / 2 + 24px)); }
  .snackbar { bottom: 24px; left: calc(50% + 40px); }
  .scroll { overscroll-behavior: auto; }
}
@container app (min-width: 1200px) {
  .grid2 { grid-template-columns: repeat(5, 1fr); }
}

/* ປຸ່ມສະຫຼັບ ກອບໂທລະສັບ ↔ ເຕັມຈໍ (ສະເພາະຈໍຄອມ) */
.frame-toggle { display: none; }
@media (min-width: 1024px) and (pointer: fine) {
  .frame-toggle { display: grid; place-items: center; position: fixed; left: 16px; bottom: 16px; z-index: 50; width: 48px;
    height: 48px; border-radius: 16px; background: var(--sec-container); color: var(--on-sec-container);
    box-shadow: 0 2px 6px rgba(0,0,0,.25); }
}

/* ປ້າຍນ້ອຍເທິງຮູບເມືອງ (CoverTag) */
.cover-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 3px; max-width: 70%;
  padding: 3px 7px; border-radius: 20px; background: rgba(0,0,0,.54); color: #fff; font-size: 10px; line-height: 1.3; }
.cover-tag .mi { color: rgba(255,255,255,.7); }
.cover-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile { background: linear-gradient(135deg, #2B6C84, #1B4352); }

/* ---------- AI ຄົ້ນຫາ ---------- */
.ai-entry { display: flex; align-items: center; padding: 4px 4px 4px 14px; border-radius: 18px;
  border: 1.4px solid rgba(43,108,132,.45); background: linear-gradient(90deg, var(--teal-soft), #fff); }
.ai-entry > a:first-child { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 10px 0; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ai-chips.scroll-x::-webkit-scrollbar { display: none; }
.chip.small-chip { height: 30px; font-size: 12px; gap: 6px; padding: 0 10px 0 8px; border-radius: 8px; }
.chip.input { background: var(--teal-soft); border-color: transparent; color: var(--ink); font-size: 12px; height: 30px;
  border-radius: 8px; gap: 4px; padding-right: 6px; }
.ai-ask { padding: 8px 16px 8px; }
.ai-ask .search .icon-btn { width: 40px; height: 40px; }
.ai-body { padding: 4px 16px 28px; }
.ai-bubble { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.ai-bubble .av { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid;
  place-items: center; flex: none; }
.ai-bubble .b { flex: 1; min-width: 0; padding: 12px; background: var(--teal-soft); border-radius: 0 16px 16px 16px;
  line-height: 1.35; }
.ai-weather { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.ai-scan { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin-bottom: 6px; border: 1px solid var(--line);
  border-radius: 14px; }
.ai-scan img, .ai-scan .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface2);
  display: grid; place-items: center; flex: none; }
.ai-result { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 10px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; }
.ai-result.sponsored { border-color: rgba(184,144,28,.5); }
.ai-result .gb { width: 74px; height: 74px; border-radius: 12px; flex: none; }
.ai-result .x { flex: 1; min-width: 0; display: block; }
.ai-result b { flex: 1; font-weight: 800; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.ai-result .sub { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-result .why { display: flex; gap: 4px; margin-top: 6px; font-size: 12px; }
.ai-feedback { display: flex; align-items: center; gap: 6px; }
.weather { cursor: pointer; }
/* ແທ່ງໂອກາດຝົນ (RainBars) */
.rain-bars { display: flex; align-items: flex-end; gap: 2px; }
.rain-bars .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.rain-bars .bar i { display: block; background: var(--teal); opacity: .35; border-radius: 3px; }
.rain-bars .bar small { height: 14px; font-size: 9px; color: var(--muted); text-align: center; line-height: 14px; }
@container app (min-width: 840px) { .ai-results { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; } }

/* ປຸ່ມສະແກນລວມ (QR + ✨ AI) */
.scan-btn { position: relative; }
.scan-btn .spark { position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; }


