:root {
  --bg: #f4f7fb; --card: #fff; --ink: #14202e; --mute: #5b6b7d; --line: #dde5ee;
  --pri: #1f6feb; --pri-ink: #fff; --ok: #1a7f37; --warn: #b35900; --bad: #c62828;
  --r: 14px; --nav: 76px;
}
* { box-sizing: border-box; }
/* 14/11 bản 2: KHÔNG khoá height:100% cho body — trước đây phần đệm dưới không được tính vào
   chiều cuộn ⇒ nút «お願いする» nằm khuất dưới thanh tab, không vuốt lên được, không bấm được. */
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; }
body.noscroll { overflow: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font: 19px/1.55 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom));
}
.top { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px calc(8px) ; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 500; }
.brand { font-size: 22px; }
.tag { color: var(--mute); font-size: 14px; }

main { padding: 12px 16px 24px; max-width: 720px; margin: 0 auto; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--card); border-top: 1px solid var(--line); z-index: 600; }
.tabs button { flex: 1; border: 0; background: none; font: inherit; color: var(--mute); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.tabs button span { font-size: 28px; line-height: 1; }
.tabs button i { font-style: normal; font-size: 15px; }
.tabs button.on { color: var(--pri); font-weight: 600; }

.map { height: 46vh; min-height: 260px; border-radius: var(--r); border: 1px solid var(--line); z-index: 1; }
.map.small { height: 220px; min-height: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: none; padding: 8px 18px; font: inherit; font-size: 17px; cursor: pointer; }
.seg button.on { background: var(--pri); color: var(--pri-ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 10px 0; }
.job { display: flex; gap: 12px; cursor: pointer; align-items: center; }
.job img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--line); flex: none; }
.job .k { font-weight: 600; }
.job .m { color: var(--mute); font-size: 16px; }
.pill { display: inline-block; font-size: 15px; padding: 2px 8px; border-radius: 999px; background: #e8f0fe; color: var(--pri); }
.pill.taken { background: #fff4e5; color: var(--warn); }
.pill.done { background: #fff4e5; color: var(--warn); }
.pill.confirmed { background: #e6f4ea; color: var(--ok); }
.pill.cancelled { background: #eee; color: var(--mute); }

h2 { font-size: 18px; margin: 16px 0 8px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.hint { color: var(--mute); font-size: 16px; margin: 4px 0; white-space: pre-line; }
input[type=text], textarea, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--ink); }
textarea { min-height: 72px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chips button.on { border-color: var(--pri); background: #e8f0fe; color: var(--pri); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 12px 16px;
  font: inherit; font-weight: 600; background: var(--pri); color: var(--pri-ink); cursor: pointer; text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.bad { background: var(--card); color: var(--bad); border: 1px solid #f3c7c7; }
.btn:disabled { opacity: .5; cursor: default; }
.preview { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r); margin-top: 8px; }
.notice { background: #fff8e1; border: 1px solid #f5d98b; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }
.free { background: #e6f4ea; border: 1px solid #b7dfc2; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }

.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 900; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--card); z-index: 901;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.sheet .close { float: right; border: 0; background: none; font-size: 24px; cursor: pointer; line-height: 1; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos.one { grid-template-columns: 1fr; }
.photos.one img { aspect-ratio: 4 / 3; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.photos figcaption { font-size: 15px; color: var(--mute); }
.chat { border: 1px solid var(--line); border-radius: 12px; padding: 8px; max-height: 240px; overflow: auto; background: var(--bg); }
.msg { margin: 4px 0; max-width: 80%; padding: 6px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); word-wrap: break-word; }
.msg.me { margin-left: auto; background: #e8f0fe; border-color: #c8dafc; }
.msg small { display: block; color: var(--mute); font-size: 13px; }
.stars button { border: 0; background: none; font-size: 28px; cursor: pointer; padding: 0 2px; filter: grayscale(1); opacity: .5; }
.stars button.on { filter: none; opacity: 1; }
.toast { font-size: 17px !important; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav) + 16px + env(safe-area-inset-bottom));
  background: #14202e; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 1000; max-width: 90vw; font-size: 14px; }
.badge { font-size: 40px; }
.actions { display: grid; gap: 8px; margin-top: 12px; }

/* ---- bản người già (14/11): 3 bước, ô to, ít chữ ---- */
h2.step { font-size: 22px; margin: 22px 0 10px; }
h2.step:first-child { margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles button { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 4px; font: inherit; font-size: 17px;
  font-weight: 600; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; justify-content: center; }
.tiles button span { font-size: 36px; line-height: 1.1; }
.tiles button.on { border-color: var(--pri); background: #e8f0fe; color: var(--pri); box-shadow: 0 0 0 2px var(--pri) inset; }
.safety { color: var(--warn); font-size: 16px; margin: 10px 0 0; }
.btn.big { font-size: 21px; padding: 18px 16px; border-radius: 16px; min-height: 64px; }
#go { margin-top: 22px; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; color: var(--mute); font-size: 17px; padding: 6px 0; }
.more textarea { margin-top: 8px; }
.kpin { background: #fff; border: 2px solid var(--warn); border-radius: 50%; font-size: 22px; line-height: 36px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.motto { text-align: center; color: var(--mute); margin-top: 28px; font-size: 16px; }

/* ================= bản 2 (14/11 tối): 4 bước + ô «どこ？» + quét người gần ================= */
:root { --pri: #e8590c; --pri-soft: #fff1e8; --pri-line: #f6c7a8; --blue: #1f6feb; }
.top { align-items: center; }
.brand b { color: var(--pri); }
h2.step { display: flex; align-items: center; gap: 10px; }
h2.step b { width: 34px; height: 34px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
h2.step small { font-size: 16px; font-weight: 400; color: var(--mute); }
.tiles button.on { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); box-shadow: 0 0 0 2px var(--pri) inset; }
.chips button.on { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); }
.chips.when { margin-top: 10px; }
.chips.when button { font-size: 17px; padding: 10px 16px; }
textarea#note { min-height: 96px; font-size: 19px; }
.pill { background: #e8f0fe; color: var(--blue); }
.seg button.on { background: var(--pri); }

/* ô ② ở đâu: hình vẽ tĩnh + 2 nút to NGAY TRONG Ô */
.placebox { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); background: #eef3ea; }
.placebox .pb-map { height: 240px; cursor: pointer; }
.placebox .pb-map > svg.mapart, .map > svg.mapart, .pk-leaf > svg.mapart { width: 100%; height: 100%; display: block; }
.pb-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.75)); pointer-events: none; }
.pb-btn { pointer-events: auto; border: 0; border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 19px; font-weight: 700;
  background: var(--pri); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.15); cursor: pointer; min-height: 56px; }
.pb-btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.pb-btn:disabled { opacity: .7; }
.placebox.set { border-color: var(--pri); }
.placebox.set .pb-map { height: 190px; }
.pb-line { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.pb-line span { flex: 1; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.pb-line .btn { padding: 8px 14px; font-size: 16px; flex: none; }

/* nút nhờ luôn nổi ngay trên thanh tab */
.gobar { position: sticky; bottom: calc(var(--nav) + env(safe-area-inset-bottom)); margin: 22px -16px 0; padding: 12px 16px;
  background: linear-gradient(180deg, rgba(244,247,251,0), var(--bg) 30%); z-index: 400; }
.gobar #go { margin: 0; box-shadow: 0 6px 18px rgba(232,89,12,.35); }
#go { margin-top: 0; }

/* màn chọn chỗ toàn màn hình */
.picker { position: fixed; inset: 0; z-index: 1200; background: #fff; display: flex; flex-direction: column; }
.pk-top { display: flex; gap: 8px; align-items: center; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.pk-x { border: 0; background: none; font-size: 28px; width: 44px; height: 44px; cursor: pointer; flex: none; }
/* nút ← quay lại: ô xanh đặc, dễ thấy (anh Tường 14/11) */
.picker .pk-x { background: var(--blue); color: #fff; border-radius: 12px; font-size: 26px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(31,111,235,.35); }
.pk-search { display: flex; gap: 6px; flex: 1; min-width: 0; }
.pk-search input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; }
.pk-search input:focus { outline: none; border-color: var(--pri); }
.pk-search .btn { padding: 10px 14px; flex: none; }
.pk-res { max-height: 45vh; overflow: auto; border-bottom: 1px solid var(--line); background: #fff; }
.pk-res button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 18px; padding: 14px 16px; cursor: pointer; }
.pk-head { padding: 10px 16px; color: var(--mute); font-size: 15px; }
.pk-map { position: relative; flex: 1; min-height: 0; }
.pk-leaf { position: absolute; inset: 0; }
.pk-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 46px; z-index: 500; pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.pk-here { position: absolute; right: 12px; bottom: 12px; z-index: 500; border: 2px solid var(--line); background: #fff; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; padding: 10px 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pk-tip { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; background: rgba(20,32,46,.8); color: #fff;
  font-size: 15px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.pk-bot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.pk-addr { font-weight: 600; margin-bottom: 8px; min-height: 1.5em; font-size: 17px; }

/* «phát tín hiệu» — quét người ở gần */
.radar { position: fixed; inset: 0; z-index: 1100; background: linear-gradient(180deg, #fff7f1, #fff); overflow: auto;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.rd-stage { position: relative; width: 220px; height: 220px; margin: 10px auto 6px; transition: all .4s; }
.rd-stage i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--pri); opacity: 0; animation: ping 2.4s ease-out infinite; }
.rd-stage i:nth-child(2) { animation-delay: .8s; } .rd-stage i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ping { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.rd-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%;
  background: var(--pri); color: #fff; font-size: 46px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(232,89,12,.4); }
.radar.found .rd-stage { width: 120px; height: 120px; }
.radar.found .rd-core { width: 64px; height: 64px; font-size: 32px; }
.rd-title { font-size: 23px; margin: 10px 0 4px; }
.rd-list { text-align: left; max-width: 560px; margin: 16px auto; display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.person .pn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person .btn { flex: none; }
.rd-done { max-width: 560px; margin: 8px auto 0; }

/* ảnh mặt */
.face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; display: inline-flex;
  align-items: center; justify-content: center; font-size: 34px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--pri-line); }
.face.big { width: 88px; height: 88px; font-size: 46px; }
.me-card { display: flex; align-items: center; gap: 16px; }
.helper-card { border-color: var(--pri-line); background: #fffaf6; }
.face-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 12px 0 0; cursor: pointer; }
.switch input { width: 26px; height: 26px; accent-color: var(--pri); }
.whois { display: flex; align-items: center; gap: 14px; background: var(--pri-soft); border: 1px solid var(--pri-line); border-radius: 14px; padding: 12px; margin: 12px 0; }
.jicon { width: 76px; height: 76px; border-radius: 10px; background: var(--pri-soft); display: flex; align-items: center; justify-content: center; font-size: 38px; flex: none; }
.btn.big.block + .btn, .actions .btn.big { font-size: 20px; }

/* nút ngôn ngữ góc trên trái (kiểu app K1) */
.langwrap { position: relative; flex: none; }
.langbtn { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font: inherit; color: var(--ink); cursor: pointer; min-height: 38px; }
.langbtn .lf, .langmenu .of { display: inline-flex; line-height: 0; }
.langbtn .lf svg { width: 20px; height: auto; display: block; border-radius: 2px; }
.langbtn .lc { font-size: 14px; font-weight: 700; }
.langbtn .lcr { font-size: 10px; color: var(--mute); }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21,31,56,.18); padding: 6px; min-width: 180px; z-index: 700; }
.langmenu[hidden] { display: none; }
.langmenu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 11px 12px;
  border-radius: 8px; font: inherit; font-size: 17px; color: var(--ink); text-align: left; cursor: pointer; }
.langmenu button .of svg { width: 22px; height: auto; display: block; border-radius: 2px; }
.langmenu button.on { background: var(--pri-soft); color: var(--pri); font-weight: 700; }

/* 14/11 khuya: header 2 dòng (tên + khẩu hiệu) trái · ngôn ngữ phải; icon SVG; Cài đặt */
.top { justify-content: space-between; align-items: center; padding-bottom: 10px; }
.brandbox { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.brand { font-size: 22px; }
.tag { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic { display: block; width: 100%; height: 100%; }
.tiles button .ti { width: 56px; height: 56px; display: block; }
.tiles button.on .ti { transform: scale(1.06); }
.jicon { padding: 8px; }
.kpin { background: none; border: 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.rd-core { padding: 0; overflow: hidden; border: 4px solid #fff; }
.person { flex-direction: column; align-items: stretch; }
.ptop { display: flex; gap: 12px; align-items: center; }
.pn > span { font-size: 16px; }
.about { font-size: 15px; color: var(--mute); }
.nf { display: inline-flex; width: 18px; margin-right: 3px; vertical-align: -2px; } .nf svg { width: 18px; height: auto; border-radius: 2px; }
.bio { margin: 2px 0; font-size: 16px; color: var(--ink); }
.rate { font-weight: 700; color: #b8860b; font-size: 16px; } .rate small { color: var(--mute); font-weight: 400; }
.rate.new { color: var(--ok); font-weight: 600; font-size: 14px; background: #e6f4ea; padding: 1px 8px; border-radius: 999px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid2 select { font-size: 17px; }
#bio { min-height: 80px; }
.chips.bioex { margin-top: 8px; } .chips.bioex button { font-size: 15px; text-align: left; }
.thanks p { margin: 6px 0; }
.jtitle { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; } .jti { width: 44px; height: 44px; flex: none; }

/* ===== 14/11 khuya: icon sắc nét thay emoji ===== */
.ui { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; display: inline-block; }
.btn .ui, .pb-btn .ui, .pk-here .ui { width: 1.2em; height: 1.2em; }
.btn, .pb-btn, .pk-here { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ih { display: flex; align-items: flex-start; gap: 6px; } .ih .ui { margin-top: .2em; }
h2.sec { display: flex; align-items: center; gap: 8px; margin-top: 0; font-size: 19px; } h2.sec .ui { color: var(--pri); width: 24px; height: 24px; }
.safety.ih .ui { color: var(--warn); }
.star { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; }
.stars button .star { width: 34px; height: 34px; }
.rate { display: inline-flex; align-items: center; gap: 3px; }
.spin { animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
/* tab: icon nét, mờ khi không chọn, cam khi chọn */
.tabs button span { width: 28px; height: 28px; font-size: 0; display: block; }
.tabs button span .ui { width: 28px; height: 28px; vertical-align: 0; }
.tabs button.on span .ui { stroke-width: 2.4; }
/* icon việc: không nền, to, rõ */
.tiles button .ti { width: 60px; height: 60px; }
.tiles button { gap: 6px; }
.jicon { background: #fff7f0; padding: 6px; }
.kpin { filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.rd-core { background: #fff; border: 4px solid var(--pri); padding: 10px; }
/* logo + câu bên cạnh tên */
.brand { display: flex; align-items: center; gap: 7px; font-size: 21px; min-width: 0; }
.brand .logo, #logo svg { width: 28px; height: 28px; display: block; flex: none; }
#logo { flex: none; }
.brand .catch { font-size: 12.5px; font-weight: 700; color: var(--pri); background: var(--pri-soft); border-radius: 999px; padding: 2px 9px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tag { margin-top: 3px; padding-left: 35px; }
.noface { color: var(--mute); background: #eef1f5; } .noface .ui { width: 55%; height: 55%; }
.pk-pin { font-size: 0; width: 40px; height: 52px; transform: translate(-50%, -100%); }
.pk-pin svg { width: 40px; height: 52px; display: block; }
.pk-x .ui { width: 26px; height: 26px; }
.pk-search .btn { width: 52px; padding: 0; } .pk-search .btn .ui { width: 24px; height: 24px; }
.pk-res button { display: flex; align-items: center; gap: 10px; } .pk-res button .ui { color: var(--mute); }
.pk-addr { display: flex; align-items: center; gap: 6px; } .pk-addr .ui { color: var(--pri); }
.pb-line .ui { color: var(--pri); }
.placebox.area .pb-line { border-top: 0; }

/* icon 3D Codex (14/11) */
.ic3d { width: 100%; height: 100%; object-fit: contain; display: block; }
.tiles button .ti { width: 64px; height: 64px; }
.kpin .ic3d { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
#logo img.logo, .brand img.logo { width: 30px; height: 30px; border-radius: 8px; display: block; object-fit: cover; }

/* OK OBAACHAN (14/11): logo mặt bà to bên trái, 3 dòng chữ bên phải · tab dưới = ảnh 3D màu */
.brand { align-items: center; gap: 9px; }
#logo img.logo, .brand img.logo { width: 52px; height: 52px; border-radius: 13px; }
.brand .bt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.2; }
.brand .bt b { font-size: 21px; letter-spacing: .3px; white-space: nowrap; }
.brand .catch { margin-top: 2px; max-width: 100%; }
.brand .tag { margin-top: 2px; padding-left: 0; font-size: 12px; max-width: 100%; }
.tabs button span { width: 34px; height: 34px; }
.tabs button span .ic3d { width: 34px; height: 34px; opacity: .7; filter: saturate(.7); transition: .15s; }
.tabs button.on span .ic3d { opacity: 1; filter: none; transform: scale(1.12); }
#go .goimg { width: 30px; height: 30px; vertical-align: -8px; margin-right: 2px; }

/* header 2 dòng + thanh hướng dẫn (14/11) */
.top { flex-wrap: wrap; row-gap: 8px; }
.infobar { max-width: 720px; margin: 0 auto; padding: 0 16px 20px; }
.infobtns { display: flex; gap: 6px; border-top: 1px dashed var(--line); padding-top: 12px; }
.proverb-foot { text-align: center; color: var(--mute); font-size: 14px; margin: 16px 0 0; }
.infobar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 6px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.infobar button span .ui { width: 18px; height: 18px; color: var(--pri); display: block; }
.infobar button i { font-style: normal; white-space: nowrap; }
.infoh { display: flex; align-items: center; gap: 8px; } .infoh .ui { width: 26px; height: 26px; color: var(--pri); }
.proverb { font-size: 17px; font-weight: 700; color: var(--pri); background: var(--pri-soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; }
.infolist { font-size: 17px; line-height: 1.55; padding-left: 24px; margin: 10px 0; } .infolist li { margin: 8px 0; }
.infofree { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: 600; } .infofree .ui { width: 22px; height: 22px; color: #e11d48; flex: none; }

/* hộp xác nhận trước khi nhận việc (14/11 tối) */
.takechk { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.45; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.takechk input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--pri); }

/* hộp chữ thả xuống dưới header — hẹp, bo 4 góc, không che thanh tab (14/11) */
.sheet.drop { top: calc(var(--hdr, 72px) + 8px); bottom: auto; left: 16px; right: 16px; max-width: 560px;
  max-height: calc(100dvh - var(--hdr, 72px) - var(--nav) - env(safe-area-inset-bottom) - 24px);
  border-radius: 18px; padding-bottom: 18px; box-shadow: 0 12px 32px rgba(0,0,0,.18); animation: dropIn .22s ease-out; }
@keyframes dropIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* dòng vận hành / bảo trợ / tài trợ cuối trang (14/11) */
.credits { margin-top: 2px; font-size: 13px; color: var(--mute); display: flex; justify-content: center; align-items: center; gap: 4px; }
.credits p { margin: 0 0 2px; }
.infobar .credits button { display: inline-block; flex: none; min-height: 0; border: 0; border-radius: 0; background: none; font: inherit; font-weight: 400; color: var(--mute); padding: 4px 6px; cursor: pointer; }
.credits button i { font-style: normal; text-decoration: underline; text-underline-offset: 3px; } .credits button b { color: var(--pri); font-weight: 600; }

/* dòng giới thiệu dưới header (14/11) */
.intro { max-width: 720px; margin: 0 auto; padding: 10px 16px 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--mute); }

/* nút «Dịch» (14/11) — chữ nhỏ dưới đoạn người dùng tự gõ */
.trw { display: block; }
.trb { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px 8px; min-height: 32px;
  border: 0; border-radius: 8px; background: transparent; color: #1a5fb4; font-size: 14px; font-weight: 600; cursor: pointer; }
.trb svg { width: 16px; height: 16px; }
.trb:disabled { opacity: .6; }
.msg .trb { padding: 2px 0; min-height: 28px; font-size: 13px; }

/* thông báo (14/11): chấm đỏ tab «Của tôi» · gợi ý bật trong chat · hướng dẫn iPhone */
.tabs button { position: relative; }
.tabs button .dot { position: absolute; top: 4px; left: calc(50% + 10px); min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--bad); color: #fff; font: 700 12px/20px system-ui, sans-serif; text-align: center; }
.notifhint { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 8px; padding: 8px 10px; min-height: 44px;
  border: 1px dashed var(--line); border-radius: 10px; background: #fff8e6; color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; }
.notifhint svg { width: 20px; height: 20px; flex: none; }
.notifhome { background: #fff8e6; border-radius: 10px; padding: 10px 12px; font-size: 16px; line-height: 1.6; }
