/* aiyoo! app (v023: welcome; v022: accounts, team screens, desktop layout). Opens from the home screen. Two looks: Night (default) and Paper. */

@font-face { font-family: "Gemunu"; src: url(../fonts/gemunu-sinhala-app.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0964-0965, U+0D81-0DF4, U+1CF2, U+200C-200D, U+25CC, U+111E1-111F4; }
@font-face { font-family: "Gemunu"; src: url(../fonts/gemunu-libre-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gemunu"; src: url(../fonts/gemunu-libre-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anek"; src: url(../fonts/anek-latin-trim.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100% 105%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek"; src: url(../fonts/anek-latin-ext-trim.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100% 105%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anek Tamil"; src: url(../fonts/anek-tamil-app.woff2) format("woff2"); font-weight: 400 800; font-stretch: 80% 100%; font-display: swap;
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

/* ---------- looks ---------- */
:root, [data-theme="night"] {
  color-scheme: dark;
  --bg: #141012; --surface: #1f191b; --surface-2: #2a2224; --line: #2e2628; --line-2: #3a3133; --dash: #4a3f41;
  --text: #F3EBDD; --muted: #b9ac98; --faint: #8a7d6c;
  --accent: #FFAE2B; --accent-ink: #141012; --accent-text: #FFAE2B; --accent-glow: rgba(255, 174, 43, .32);
  --card: #F3EBDD; --card-ink: #141012; --card-tile: #e9dfcd; --card-muted: #5f5448; --card-line: #d9ccb4;
  --red: #ff7a7f; --red-bg: rgba(200, 51, 58, .16); --green: #3FB950; --green-bg: rgba(63, 185, 80, .14);
  --tab: #1b1617; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
[data-theme="paper"] {
  color-scheme: light;
  --bg: #F6F0E4; --surface: #FFFFFF; --surface-2: #efe7d8; --line: #e8dfcf; --line-2: #ddd2bf; --dash: #c9bba3;
  --text: #141012; --muted: #5f5448; --faint: #7a6e60;
  --accent: #FFAE2B; --accent-ink: #141012; --accent-text: #8a5300; --accent-glow: rgba(199, 122, 0, .22);
  --card: #141012; --card-ink: #F3EBDD; --card-tile: #2a2224; --card-muted: #cdbfaa; --card-line: #3a3133;
  --red: #B0262D; --red-bg: #FDEBEC; --green: #1E7B35; --green-bg: #E3F2E6;
  --tab: #FFFFFF; --shadow: 0 10px 30px rgba(60, 40, 10, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 500 16px/1.45 "Anek", "Gemunu", "Anek Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
html[lang="si"] body { font-family: "Anek", "Noto Sans Sinhala", "Iskoola Pota", "Gemunu", system-ui, sans-serif; }
html[lang="ta"] body { font-family: "Anek", "Anek Tamil", "Noto Sans Tamil", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.h { font-family: "Gemunu", "Anek Tamil", system-ui, sans-serif; font-weight: 800; line-height: 1.02; letter-spacing: -.005em; margin: 0; }
html[lang="ta"] .h { font-family: "Anek Tamil", system-ui, sans-serif; font-stretch: 85%; line-height: 1.15; }
.muted { color: var(--muted); }
svg { flex: none; }

/* ---------- frame ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; }
.view {
  display: flex; flex-direction: column; gap: 20px;
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(118px + env(safe-area-inset-bottom));
}
.view.no-tabs { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.view.enter { animation: rise .26s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.word { font-family: "Gemunu", sans-serif; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.word b { color: var(--accent); }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; text-decoration: none;
}
.icon-btn:active { transform: scale(.95); }
.bar { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.bar-title { flex: 1; font-weight: 700; font-size: 16px; }
.bar-note { font-size: 14px; color: var(--muted); }
.page-title { font-size: 32px; }
.lede { margin: -10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--tab); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs-in { max-width: 560px; margin: 0 auto; height: 76px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0;
  color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; line-height: 1.1; text-align: center;
}
.tab[aria-current="page"] { color: var(--accent-text); font-weight: 800; }
.fab {
  justify-self: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 32px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px var(--accent-glow); text-decoration: none;
  border: 4px solid var(--tab);
}
.fab:active { transform: scale(.95); }
.bang { width: 30px; height: 30px; }

/* ---------- cards ---------- */
.hero { background: var(--card); color: var(--card-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hero .h { font-size: 29px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  min-height: 76px; border-radius: 14px; border: 0; background: var(--card-tile); color: var(--card-ink);
  font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px;
  text-align: center; line-height: 1.1;
}
.tile.is-other { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tile:active { transform: scale(.97); }

.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head .h { font-size: 23px; }
.sec-head a, .linkish { font-size: 14px; font-weight: 700; color: var(--accent-text); text-decoration: none; background: none; border: 0; padding: 0 6px;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }  /* v024: big enough to tap */

.row {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; width: 100%; text-align: left;
}
.row-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--accent-text); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.row-sub { font-size: 13px; color: var(--muted); }
.chev { color: var(--faint); }

.stamp {
  display: inline-block; padding: 5px 9px; border-radius: 9px; border: 2px solid currentColor; color: var(--accent-text);
  font: 800 13px/1 "Gemunu", sans-serif; letter-spacing: .05em; text-transform: uppercase; transform: rotate(-3deg); white-space: nowrap;
}
.stamp.is-green { color: var(--green); }
.stamp.is-red { color: var(--red); }
.stamp.on-card { color: #C8333A; }
.stamp.on-card.is-green { color: #1E7B35; }
[data-theme="paper"] .stamp.on-card { color: #ff8a8f; }
[data-theme="paper"] .stamp.on-card.is-green { color: #59d16b; }

.note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; color: var(--muted); }
.note b { color: var(--text); }
.note.is-warn { border-color: var(--red); color: var(--text); background: var(--red-bg); }
.note.is-ok { border-color: var(--green); color: var(--text); background: var(--green-bg); }
.offline-pill { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  min-height: 54px; padding: 0 22px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font: 800 20px/1 "Gemunu", "Anek Tamil", sans-serif; }
html[lang="ta"] .btn-primary { font: 700 16px/1.1 "Anek Tamil", sans-serif; }
.btn-primary:disabled { opacity: .45; }
.btn-ink { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-block { width: 100%; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: linear-gradient(transparent, var(--bg) 26%);
  padding: 22px 18px calc(16px + env(safe-area-inset-bottom));
}
.dock-in { max-width: 524px; margin: 0 auto; display: flex; gap: 10px; }
.dock-in .btn-primary { flex: 1; }

/* ---------- report flow ---------- */
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: -8px; }
.progress i { height: 5px; border-radius: 3px; background: var(--line-2); }
.progress i.on { background: var(--accent); }
.q { font-size: 34px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-weight: 700; font-size: 15px; }
.label span { font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice {
  min-height: 84px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 8px 4px; text-align: center;
}
.choice[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 800; }
.seg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html[lang="ta"] .seg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg4 .chip { justify-content: center; padding: 0 6px; border-radius: 12px; font-size: 14px; text-align: center; line-height: 1.1; }
.input, .textarea, .select {
  width: 100%; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  padding: 14px; font-size: 16px; outline: none;
}
.input { min-height: 54px; }
.textarea { resize: none; min-height: 132px; line-height: 1.45; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.select { min-height: 54px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.hint { font-size: 13.5px; color: var(--muted); margin: 0; }
.err { font-size: 14.5px; font-weight: 600; color: var(--red); margin: 0; }

.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.shot { position: relative; width: 96px; height: 96px; border-radius: 16px; background: var(--surface-2); flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; padding: 6px; }
.shot img, .shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-x { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; border-radius: 15px; border: 0; background: rgba(20, 16, 18, .78); color: #F3EBDD;
  display: flex; align-items: center; justify-content: center; padding: 0; }
.shot-add { border: 2px dashed var(--dash); background: transparent; color: var(--muted); flex-direction: column; gap: 4px; font-weight: 600; font-size: 12px; cursor: pointer; }
.voice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice audio { width: 100%; height: 40px; }
.rec-dot { width: 12px; height: 12px; border-radius: 6px; background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); margin: 0; flex: none; }
.summary { background: var(--card); color: var(--card-ink); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.summary dt { color: var(--card-muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ts { min-height: 70px; }

.done { align-items: center; text-align: center; padding-top: calc(60px + env(safe-area-inset-top)); }
.done .stamp { font-size: 46px; padding: 10px 22px; border-width: 4px; border-radius: 16px; }
.done .h { font-size: 34px; }
.done .btn-col { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ref { font: 800 30px/1 "Gemunu", sans-serif; letter-spacing: .12em; color: var(--accent-text); }

/* ---------- guides ---------- */
.search { display: flex; align-items: center; gap: 10px; min-height: 54px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); padding: 0 14px; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; min-width: 0; padding: 14px 0; }
.search:focus-within { border-color: var(--accent); }
.hscroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar, .shots::-webkit-scrollbar { display: none; }
.hscroll .chip { flex: none; }
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gcard {
  background: var(--card); color: var(--card-ink); border-radius: 18px; padding: 14px; min-height: 150px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.gcard .stamp { align-self: flex-start; color: #6a3fb0; font-size: 12px; }
[data-theme="paper"] .gcard .stamp { color: #c3a6ff; }
.gcard b { font-size: 16px; line-height: 1.2; }
.gcard small { font-size: 12.5px; color: var(--card-muted); }
.glist { display: flex; flex-direction: column; gap: 8px; }
.grow { padding: 12px 14px; }
.code { width: 54px; min-height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); display: flex; align-items: center; justify-content: center;
  font: 800 11px/1.05 "Anek", sans-serif; text-align: center; padding: 4px; overflow-wrap: anywhere; letter-spacing: .02em; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); margin-left: 4px; vertical-align: 2px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.empty .h { font-size: 26px; color: var(--text); }
.empty p { margin: 0; max-width: 32ch; }

.gd-head { display: flex; flex-direction: column; gap: 10px; }
.gd-head .h { font-size: 32px; }
.gd-office { font-size: 14px; color: var(--muted); font-weight: 600; }
.gd-state { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.gd-state i { width: 10px; height: 10px; border-radius: 5px; background: var(--accent); margin-top: 6px; flex: none; }
.gd-state.is-hold i { background: var(--red); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.box h2 { margin: 0; font-size: 18px; font-weight: 800; }
.box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.box.is-warn { border-color: var(--red); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 17px; background: var(--accent); color: var(--accent-ink); font: 800 17px/34px "Gemunu", sans-serif; text-align: center; }
.steps p { margin: 4px 0 4px; }
.src { font-size: 13px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.srcs a { font-weight: 600; }
.srcs small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- mine ---------- */
.seg { display: inline-flex; gap: 6px; padding: 4px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.seg button { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.track { background: var(--card); color: var(--card-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.track-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.track-top .h { font-size: 24px; }
.track-top small { color: var(--card-muted); font-size: 13px; display: block; margin-top: 4px; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 14px; font-size: 15px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; width: 14px; height: 14px; border-radius: 7px; border: 2px solid var(--card-muted); margin-top: 4px; background: var(--card); z-index: 1; }
.tl li::after { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: var(--card-line); }
.tl li:last-child::after { display: none; }
.tl li.on::before { background: #1E7B35; border-color: #1E7B35; }
.tl li.on::after { background: #1E7B35; }
[data-theme="paper"] .tl li.on::before { background: #3FB950; border-color: #3FB950; }
[data-theme="paper"] .tl li.on::after { background: #3FB950; }
.tl b { display: block; }
.tl small { color: var(--card-muted); font-size: 13px; }
.tl li:not(.on) b { font-weight: 600; color: var(--card-muted); }
.track .note { background: var(--card-tile); border-color: transparent; color: var(--card-ink); }
.track .btn { min-height: 48px; font-size: 15px; }
.track .btn-line { background: transparent; color: var(--card-ink); border-color: var(--card-ink); }
.pill { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.pill.is-sent { background: var(--surface-2); color: var(--accent-text); }
.pill.is-fixed { background: var(--green-bg); color: var(--green); }

/* ---------- near me ---------- */
.map-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 210px;
  display: flex; align-items: center; justify-content: center; }
.map-card svg.isle { width: 46%; height: auto; color: var(--line-2); }
.map-card .pin { position: absolute; width: 18px; height: 18px; border-radius: 9px; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-glow); }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.socials a { min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

/* ---------- profile ---------- */
.me-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 32px; background: #141012 url(app-icon-192.png) center/cover; flex: none; border: 2px solid var(--line-2); }
.me-card .h { font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font: 800 28px/1 "Gemunu", sans-serif; }
.stat span { font-size: 13px; color: var(--muted); }
.group { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.group-title { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; margin: 6px 4px -6px; }
.item { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px; color: var(--text); text-decoration: none; border: 0; background: transparent; width: 100%; text-align: left; font-size: 16px; font-weight: 600; }
.item + .item { border-top: 1px solid var(--line); }
.item .grow-1 { flex: 1; }
.item small { color: var(--muted); font-weight: 500; font-size: 13px; }
.item.is-danger { color: var(--red); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.opts button { min-height: 48px; border-radius: 13px; border: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 15px; }
.opts button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.ver { text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---------- install page ---------- */
.inst { align-items: stretch; padding-top: calc(36px + env(safe-area-inset-top)); }
.inst-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); align-self: center; border: 1px solid var(--line-2); }
.inst .h { font-size: 38px; text-align: center; }
.inst-lede { text-align: center; color: var(--muted); margin: -6px auto 0; max-width: 32ch; }
.how { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.how li { counter-increment: s; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.how li::before { content: counter(s); width: 32px; height: 32px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font: 800 17px/32px "Gemunu", sans-serif; text-align: center; flex: none; }
.how svg { color: var(--accent-text); }
.perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.perks svg { color: var(--green); }

/* ---------- sheet / toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: up .22s ease-out; border-top: 1px solid var(--line-2); }
.sheet .h { font-size: 26px; }
.sheet p { margin: 0; color: var(--muted); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); width: max-content; max-width: calc(100vw - 36px); animation: up .2s ease-out; }


/* ---------- v022: account, team, status pills ---------- */
.side-brand, .fab-label, .side-only { display: none; }
.home-cols, .home-cols .col, .pane-list, .pane-detail { display: flex; flex-direction: column; gap: 20px; }
.pane-list { gap: 12px; }
.row.is-sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pill.is-off { background: var(--red-bg); color: var(--red); }
.signin-card { display: flex; flex-direction: column; gap: 16px; }
.signin-card .h { font-size: 32px; }
.code-input { font: 800 30px/1 "Gemunu", sans-serif; letter-spacing: .4em; text-align: center; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.tm-detail { gap: 14px; }
.tm-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.tm-facts dt { color: var(--muted); font-weight: 600; }
.tm-facts dd { margin: 0; overflow-wrap: anywhere; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tm-media { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); object-fit: cover; }
.tm-media img { width: 100%; height: 100%; object-fit: cover; }
.tm-hist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ---------- v022: desktop layout (the same app, wider: sidebar instead of the bottom bar) ---------- */
@media (min-width: 900px) {
  .app { max-width: none; border: 0; }
  .app.has-side { padding-left: 252px; }
  .view { max-width: 1080px; margin: 0 auto; padding: 30px 40px 64px; gap: 24px; }
  .view.no-tabs { max-width: 640px; padding-bottom: 130px; }
  .view.signin { padding-top: 48px; }
  .tabs { top: 0; bottom: 0; right: auto; width: 252px; border-top: 0; border-right: 1px solid var(--line); padding: 0; overflow-y: auto; }
  .tabs-in { height: 100%; max-width: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 26px 16px 20px; }
  .side-brand { display: block; font: 800 40px/1 "Gemunu", sans-serif; color: var(--text); text-decoration: none; padding: 2px 12px 24px; }
  .side-brand b { color: var(--accent); }
  .tab { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; border-radius: 14px; font-size: 16px; text-align: left; }
  .tab:hover { background: var(--surface); color: var(--text); }
  .tab[aria-current="page"] { background: var(--surface); }
  .fab { order: -1; justify-self: auto; width: auto; height: 54px; margin: 0 0 16px; border: 0; border-radius: 27px; gap: 10px; padding: 0 18px;
    color: var(--accent-ink); font: 800 19px/1 "Gemunu", "Anek Tamil", sans-serif; text-decoration: none; }
  .fab .bang { width: 24px; height: 24px; }
  .fab-label { display: inline; }
  .side-brand { order: -2; }
  .side-only { display: flex; }
  .side-me { margin-top: auto; }
  .side-me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .has-side .top .word { visibility: hidden; }
  .page-title { font-size: 40px; }
  .home-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: start; }
  .hero .h { font-size: 36px; }
  .tile { min-height: 96px; font-size: 15px; }
  .gcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glist.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .pane-detail { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
  .row:hover { border-color: var(--line-2); }
  .dock-in { max-width: 604px; }
  .toast { bottom: 32px; }
  .map-card svg { max-height: 460px !important; width: 40% !important; }
  .q { font-size: 40px; }
}


/* ---------- v024: install suggestion on Home ---------- */
.inst-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--accent); border-radius: 18px; padding: 12px 8px 12px 14px; }
.inst-card img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.inst-card .row-main { flex: 1; }

/* ---------- v023: first-run welcome ---------- */
.welcome { min-height: 100dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); gap: 18px; touch-action: pan-y; user-select: none; }
.w-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.w-lang { padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; grid-template-columns: repeat(3, auto); }
.w-lang button { min-height: 38px; padding: 0 14px; font-size: 14px; }
.w-art { flex: 1; min-height: 210px; display: flex; align-items: center; justify-content: center; gap: 14px; position: relative; }
.w-art-1 .bang { width: 150px; height: 150px; padding: 22px; border-radius: 40px; background: var(--accent); box-shadow: 0 24px 60px var(--accent-glow); transform: rotate(-4deg); }
.w-art-2 { flex-direction: column; }
.w-art-2 .stamp { font-size: 40px; padding: 10px 22px; border-width: 4px; border-radius: 14px; }
.w-art-2 .stamp.is-green { transform: rotate(5deg); margin-left: 60px; }
.w-art-3 { gap: 10px; }
.w-card { width: 104px; height: 140px; border-radius: 18px; background: var(--card); color: var(--card-ink); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.w-card:nth-child(1) { transform: rotate(-6deg) translateY(8px); } .w-card:nth-child(3) { transform: rotate(6deg) translateY(8px); }
.w-card .stamp { color: #6a3fb0; font-size: 12px; align-self: flex-start; }
[data-theme="paper"] .w-card .stamp { color: #c3a6ff; }
.w-card b { font-size: 17px; }
.w-art-4 .avatar { width: 150px; height: 150px; border-radius: 75px; border-width: 4px; box-shadow: 0 24px 60px var(--accent-glow); }
.w-text { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.w-text .h { font-size: 36px; }
.w-text p { margin: 0 auto; color: var(--muted); font-size: 17px; max-width: 34ch; }
.w-word { font-size: 46px; }
.w-dots { display: flex; justify-content: center; gap: 8px; }
.w-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .2s; }
.w-dots i.on { width: 26px; background: var(--accent); }
.w-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .welcome { min-height: auto; padding-top: 56px; } .w-art { min-height: 260px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 700px) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* v032: intake evidence and neutral receipt; a receipt is not verification. */
.no-evidence { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 16px; }
.no-evidence .label { margin-bottom: 6px; }
.stamp.is-received { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--accent-text); animation: receipt-arrive .4s ease-out both; }
@keyframes receipt-arrive { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .stamp.is-received { animation: none; } }

/* ---------- v032 (merge): feed, posts, evidence labels, duplicate check, aiyoo camera, 3D map, rules, receipt ---------- */
.feed .sec-head a { font-weight: 700; }
.feed-list { display: grid; gap: 14px; }
@media (min-width: 900px) { .feed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .feed .feed-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; }
.post-card:hover { border-color: var(--line-2); }
.post-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.post-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); display: block; }
.post-noimg { display: grid; place-items: center; color: var(--muted); aspect-ratio: 16 / 7; }
.post-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.post-card.is-small .post-img { aspect-ratio: 16 / 7; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-title { margin: 0; font-size: 17px; line-height: 1.25; }
.post-text { margin: 0; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-text.big { -webkit-line-clamp: unset; display: block; font-size: 17px; line-height: 1.5; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-meta b { color: var(--text); }
.lvl { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; border: 1.5px solid currentColor; letter-spacing: .01em; }
.lvl-A { color: var(--green); }
.lvl-B { color: var(--accent-text); }
.lvl-C { color: var(--muted); }
.post-view { gap: 14px; }
.post-h { font-size: 26px; line-height: 1.15; margin: 0; }
.post-photos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -4px; padding: 0 4px 4px; }
.post-photos figure { margin: 0; flex: 0 0 min(88%, 520px); scroll-snap-align: start; position: relative; }
.post-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; background: var(--surface-2); }
.post-photos figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(20,16,18,.72); color: #F3EBDD; font-size: 12px; font-weight: 700; }
.dup { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--accent); }
.dup .h { margin: 0; font-size: 22px; }
.dup-item { display: grid; gap: 8px; }
.follow-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); font-weight: 700; font-size: 14px; }
.shot-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; }
.shot-cam { border-color: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font: inherit; font-size: 11px; font-weight: 700; line-height: 1.2; }
.map3d { position: relative; height: min(62vh, 560px); min-height: 340px; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.map3d .maplibregl-canvas:focus-visible { outline: 3px solid var(--accent); }
.near .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rules-do h2, .rules-dont h2 { display: flex; align-items: center; gap: 8px; }
.rules-do h2 { color: var(--green); }
.rules-do ul, .rules-dont ul, .how, .done-next { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.done-next { text-align: left; color: var(--muted); }
.tm-post { border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; }
.tm-post summary { cursor: pointer; }
.tm-hist .is-warn { color: var(--red); font-weight: 700; }

/* the receipt: the "!" from the logo drops, then stamps RECEIVED */
.rcv { position: relative; display: grid; place-items: center; width: 240px; height: 150px; margin: 4px auto 0; }
.rcv-bang { position: absolute; top: -6px; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; z-index: 2;
  animation: rcv-drop .55s cubic-bezier(.3,1.5,.5,1) both, rcv-lift .35s .75s ease-in forwards; }
.rcv-bang .bang { width: 34px; height: 34px; }
.rcv-stamp { display: grid; justify-items: center; gap: 2px; padding: 12px 22px; border: 5px solid var(--accent); border-radius: 16px; color: var(--accent-text); transform: rotate(-6deg);
  animation: rcv-stamp .5s .55s cubic-bezier(.2,1.6,.4,1) both; }
.rcv-stamp b { font-size: 40px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.rcv-stamp small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.rcv::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: rcv-ring .7s .6s ease-out both; }
@keyframes rcv-drop { from { transform: translateY(-70px) scale(.6); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes rcv-lift { to { transform: translateY(-14px) scale(.8); opacity: 0; } }
@keyframes rcv-stamp { 0% { opacity: 0; transform: rotate(-16deg) scale(2.2); } 70% { opacity: 1; transform: rotate(-5deg) scale(.95); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes rcv-ring { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.rcv.is-demo { transform: scale(.85); }
@media (prefers-reduced-motion: reduce) {
  .rcv-bang, .rcv-stamp, .rcv::after { animation: none; }
  .rcv-bang { display: none; }
}

/* ---------- v033: home columns end on the same line (desktop) ---------- */
@media (min-width: 900px) {
  .home-cols { align-items: stretch; }
  .home-cols .col > .hero { flex: 1 1 auto; }
  .home-cols .hero .tiles { flex: 1 1 auto; grid-auto-rows: minmax(72px, 1fr); }
  .home-cols .tile { min-height: 72px; }
  .home-cols .col:last-child > .sec:last-child { flex: 1 1 auto; }
  .home-cols .col:last-child > .sec:last-child > .glist { flex: 1 1 auto; }
  .home-cols .col:last-child > .sec:last-child > .glist > .row { flex: 1 1 auto; }
}

/* ---------- v033: admin dashboard ---------- */
.adm-sub { color: var(--muted); font-weight: 700; }
.adm-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px -4px 0; padding: 4px; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 21px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.adm-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.adm-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bg); color: var(--text); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.adm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.stat b { font: 800 34px/1 "Gemunu", sans-serif; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat.is-hot { border-color: var(--accent); }
.stat.is-hot b { color: var(--accent-text); }
.stat.is-good b { color: var(--green); }
.stat:hover { border-color: var(--line-2); }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; height: 120px; }
.bar-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-col i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); }
.bar-col small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-head h2 { margin: 0; }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.act-row:first-child { border-top: 0; }
.act-row time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.act-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.act-sub { font-size: 13px; }
.act-row a { color: var(--accent-text); }
.act-row.is-admin b { color: var(--accent-text); }
.act-row.is-signin b::before, .act-row.is-complaint b::before, .act-row.is-team b::before, .act-row.is-admin b::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 7px; vertical-align: 1px; background: var(--muted); }
.act-row.is-complaint b::before { background: var(--accent); }
.act-row.is-team b::before { background: #6AA9FF; }
.act-row.is-signin b::before { background: var(--green); }
.act-row.is-admin b::before { background: #E07AF0; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.ulist { display: flex; flex-direction: column; gap: 8px; }
.urow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.urow:hover { border-color: var(--line-2); }
.u-name { display: flex; flex-direction: column; min-width: 0; }
.u-name small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-role { align-self: center; }
.u-meta { display: flex; flex-direction: column; font-size: 13px; }
.u-meta small { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline .select { flex: 1; min-width: 0; }
@media (max-width: 899px) { .urow .u-meta:nth-of-type(3), .urow .u-meta:nth-of-type(4) { display: none; } }
@media (min-width: 700px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .view.admin { max-width: 1180px; }
  .urow { grid-template-columns: minmax(220px, 1.6fr) 90px 1fr 1fr 1.1fr 90px; align-items: center; }
  .act-row { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ---------- v033: the complaint map (like the island on the website's home page) ---------- */
.lkmap { position: relative; height: min(68vh, 620px); min-height: 380px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 40%, #241c1e 0%, #141012 62%, #0d0a0b 100%); border: 1px solid #2e2628; color: #f3ebd8;
  touch-action: none; user-select: none; -webkit-user-select: none; perspective: 1400px; }
.lkmap.is-loading { display: flex; align-items: center; justify-content: center; touch-action: auto; }
.lkm-stage { position: absolute; inset: 0; transform-origin: 50% 55%; transition: transform .75s cubic-bezier(.2, .8, .2, 1);
  transform: rotateX(42deg) rotateZ(-7deg) scale(var(--tilt-s, .96)) translateY(-3%); will-change: transform; cursor: grab; }
.lkmap[data-flat="1"] .lkm-stage { transform: none; }
.lkm-stage:active { cursor: grabbing; }
.lkm-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lkm-land path { fill: #2a2224; stroke: rgba(243, 235, 216, .18); stroke-linejoin: round; transition: fill .3s; vector-effect: non-scaling-stroke; }
.lkm-land path.is-here { fill: #3a2c22; stroke: rgba(255, 174, 43, .65); }
.lkm-land path:hover { fill: #33292b; }
.lkm-coast { fill: none; stroke: rgba(243, 235, 216, .78); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }
.lkm-land path { stroke-width: .8; }
.lkm-dot { cursor: pointer; outline: none; }
.lkm-dot .lkm-core { fill: #FFD58A; }
.lkm-dot.is-fixed .lkm-core { fill: #8DFFB2; }
.lkm-dot .lkm-hit { fill: transparent; }
.lkm-dot .lkm-glow { animation: lkm-tw 2.8s ease-in-out infinite; animation-delay: calc(var(--d) * -1); transform-box: fill-box; transform-origin: center; }
.lkm-dot.is-away { opacity: .35; }
.lkm-dot.is-sel .lkm-glow { animation: lkm-sel 1.4s ease-out infinite; opacity: 1; }
.lkm-dot.is-sel .lkm-core { stroke: #fff6e5; stroke-width: 1.4; }
.lkm-dot:focus-visible .lkm-hit { stroke: #fff6e5; stroke-width: 2; stroke-dasharray: 3 3; }
@keyframes lkm-tw { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes lkm-sel { 0% { transform: scale(.9); } 60% { transform: scale(1.35); } 100% { transform: scale(.9); } }
.lkm-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.lkm-ctrl button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid #3a3133; background: rgba(20, 16, 18, .82); color: #f3ebd8;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); cursor: pointer; }
.lkm-ctrl button:hover { border-color: #FFAE2B; }
.lkm-legend { position: absolute; left: 12px; bottom: 12px; right: 70px; display: flex; flex-wrap: wrap; gap: 6px 12px; z-index: 2; font-size: 13px; font-weight: 600; pointer-events: none; }
.lkm-legend span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 12px; background: rgba(20, 16, 18, .72); }
.lkm-legend i { width: 10px; height: 10px; border-radius: 5px; background: #FFAE2B; box-shadow: 0 0 10px #FFAE2B; }
.lkm-legend i.is-fixed { background: #36D86C; box-shadow: 0 0 10px #36D86C; }
.lkm-legend i.is-check { background: transparent; border: 1.5px dashed #c9bba3; box-shadow: none; }
.lkm-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(80%, 340px); margin: 0; text-align: center; padding: 14px 16px;
  border-radius: 16px; background: rgba(20, 16, 18, .86); font-size: 15px; z-index: 2; pointer-events: none; }
.lkm-pop { position: absolute; z-index: 4; width: min(300px, calc(100% - 20px)); border-radius: 18px; background: #fff6e5; color: #141012;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: visible; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .22s, transform .22s; }
.lkm-pop.is-in { opacity: 1; transform: none; }
.lkm-pop::after { content: ""; position: absolute; left: calc(var(--ax, 50%) - 9px); bottom: -8px; width: 18px; height: 18px; background: #fff6e5; transform: rotate(45deg); border-radius: 3px; }
.lkm-pop.is-below::after { bottom: auto; top: -8px; }
.lkm-pop img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 18px 18px 0 0; }
.lkm-pop-in { position: relative; z-index: 1; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.lkm-pop h3 { margin: 0; font-size: 17px; line-height: 1.25; display: flex; align-items: center; gap: 6px; }
.lkm-pop p { margin: 0; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lkm-pop small { font-size: 12px; color: #5b4d4f; }
.lkm-pop .btn { min-height: 44px; margin-top: 4px; }
.lkm-x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 17px; border: 0; background: rgba(20, 16, 18, .78); color: #fff6e5;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .lkm-stage, .lkm-pop { transition: none; }
  .lkm-dot .lkm-glow, .lkm-dot.is-sel .lkm-glow { animation: none; opacity: 1; }
}
@media (min-width: 900px) { .lkmap { height: min(72vh, 680px); --tilt-s: 1.14; } }
.lkm-pop.is-dock { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; }
.lkm-pop.is-dock::after { display: none; }
.lkm-pop.is-dock img { height: 96px; }
.pill.is-plain { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.chip[aria-pressed="true"] .muted { color: inherit; opacity: .75; }
@media (max-width: 599px) { .adm-sub { display: none; } }
a.word { color: var(--text); text-decoration: none; }
.side-brand:hover b, a.word:hover b { filter: brightness(1.15); }
