/* நம்ம நாகூர் – App styles */
:root {
  --green: #0F5132; --green-d: #0B3B25; --green-t: #E8F1EC;
  --gold: #FFC93C; --gold-d: #D4A23A; --gold-t: #FFF6DB;
  --ink: #1B1F1C; --ink2: #3D4541; --muted: #5B6560; --line: #E4E1D8;
  --bg: #F6F4EE; --card: #FFFFFF;
  --red: #B42318; --red-d: #8A1C12; --red-t: #FDECEA;
  --wa: #E3F6EA; --wa-d: #0F5132;
  --r: 18px; --r-s: 12px;
  --shadow: 0 6px 20px rgba(15, 81, 50, .12);
  --font: 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --disp: 'Baloo Thambi 2', 'Noto Sans Tamil', system-ui, sans-serif;
  --nav-h: 68px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; }
body { margin: 0; background: #E9E6DD; color: var(--ink); font-family: var(--font); font-size: .88rem; line-height: 1.45; }
a { color: var(--green); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); box-shadow: 0 0 40px rgba(0,0,0,.06); }
.page { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; margin: 0; }
.center { text-align: center; }
.row { display: flex; align-items: center; } .gap { gap: 8px; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.small { font-size: .8rem; margin: 0; color: var(--ink2); }
.note { font-size: .72rem; color: var(--muted); margin: 0; }
.note a { color: var(--muted); text-decoration: underline; }
.boot { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-family: var(--disp); font-size: 1.6rem; color: var(--green); }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-ic.big { width: 72px; height: 72px; border-radius: 22px; }
.brand-name { font-family: var(--disp); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; letter-spacing: -.5px; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-name.xl { font-size: 2.4rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 14px; border: none; background: var(--green); color: #fff; font-weight: 700; font-size: .85rem; text-align: center; }
.btn.sm { min-height: 42px; padding: 0 12px; font-size: .78rem; border-radius: 12px; }
.btn.big { min-height: 54px; font-size: .95rem; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost.indigo { color: #3730A3; border-color: #3730A3; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn.wa { background: var(--wa); color: var(--wa-d); border: 1.5px solid #1F7A4D; }
.btn.red { background: var(--red); }
.btn.redline { background: #fff; color: var(--red-d); border: 1.5px solid var(--red); }
.btn:disabled { opacity: .6; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: none; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); }
.iconbtn.light { background: rgba(255,255,255,.16); color: #fff; }
.iconbtn.solid { border-radius: 14px; }
.iconbtn.float { position: absolute; top: calc(14px + env(safe-area-inset-top)); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.iconbtn.float.l { left: 14px; } .iconbtn.float.r { right: 14px; }
.linkbtn { background: none; border: none; padding: 0; color: var(--gold); font-weight: 700; font-size: .75rem; text-align: left; }
.center-link { display: block; text-align: center; font-weight: 700; padding: 10px; }

/* Home header */
.hhead { background: var(--green); padding: calc(16px + env(safe-area-inset-top)) 16px 62px; border-radius: 0 0 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.hhead-row { display: flex; justify-content: space-between; align-items: center; }
.searchbar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 6px 0 14px; height: 52px; }
.searchbar.boxed { border: 1px solid var(--line); }
.searchbar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: .85rem; color: var(--ink); }
.mic-btn { height: 40px; padding: 0 10px; border-radius: 12px; background: var(--gold); display: inline-flex; align-items: center; gap: 4px; color: var(--green-d); font-weight: 700; font-size: .72rem; flex-shrink: 0; }

.catgrid-card { margin: -46px 16px 0; background: #fff; border-radius: 22px; padding: 12px 6px; box-shadow: var(--shadow); position: relative; }
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 4px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; min-height: 84px; color: var(--ink); }
.cat-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.cat-l { font-size: .7rem; font-weight: 600; text-align: center; line-height: 1.2; }
.today { margin: 12px 16px 0; font-size: .75rem; color: var(--ink2); } .today:empty { display: none; }
.today span { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 6px 12px; border-radius: 20px; }

.sec { display: flex; flex-direction: column; gap: 10px; }
.page > .sec + .sec { margin-top: 2px; }
#h-new, #h-events, #h-news { padding: 18px 16px 0; }
#h-alert:not(:empty) { padding: 14px 16px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec-h h2, .h2 { font-family: var(--disp); font-size: 1.15rem; font-weight: 800; }
.sec-h a { font-size: .75rem; font-weight: 600; white-space: nowrap; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.mini { width: 150px; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.mini-ph { height: 96px; display: flex; align-items: center; justify-content: center; }
.mini-ph img { width: 100%; height: 100%; object-fit: cover; }
.mini b { font-size: .8rem; padding: 8px 10px 0; line-height: 1.25; }
.mini small { font-size: .68rem; color: var(--muted); padding: 2px 10px 10px; }

.evcard { width: 236px; background: #fff; border-radius: 18px; padding: 12px; display: flex; gap: 12px; color: var(--ink); }
.evdate { width: 56px; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.evdate b { font-family: var(--disp); font-size: 1.2rem; line-height: 1; } .evdate small { font-size: .65rem; font-weight: 600; }
.evtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; flex: 1; }
.evtext b { font-size: .82rem; line-height: 1.3; } .evtext small { font-size: .66rem; font-weight: 700; }
.evtext small.muted { font-weight: 400; }
.evrow { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: none; border-radius: 18px; padding: 12px; }
.dayhead { font-size: .75rem; color: var(--muted); font-weight: 700; margin: 6px 2px -4px; }

.row-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; color: var(--ink); }
.row-ph { width: 76px; height: 64px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.row-ph img { width: 100%; height: 100%; object-fit: cover; }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-text b { font-size: .82rem; line-height: 1.35; } .row-text small { font-size: .66rem; font-weight: 700; } .row-text small.muted { font-weight: 400; }

.alertbar, .alertcard { display: flex; align-items: center; gap: 10px; background: var(--red-t); border-radius: 14px; padding: 10px 12px; color: var(--red-d); }
.alertbar b { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alertcard span:last-child { display: flex; flex-direction: column; } .alertcard small { color: #5B2A24; font-size: .7rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .65rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; }
.pill.red { background: var(--red); color: #fff; } .pill.gold { background: var(--gold); color: var(--green-d); }

.emerg { background: var(--red-t); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.emerg b { font-family: var(--disp); color: var(--red-d); display: flex; align-items: center; gap: 6px; }
.emerg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.emerg-row .btn { padding: 0 6px; font-size: .7rem; }
.home-pad { padding: 0 16px; }
#view > .sec:has(.emerg) { padding: 18px 16px 0; }
.foot { display: flex; justify-content: center; gap: 6px; font-size: .66rem; color: var(--muted); padding: 18px 16px 8px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: underline; }

/* Page header */
.phead { padding: calc(14px + env(safe-area-inset-top)) 16px 18px; border-radius: 0 0 26px 26px; color: #fff; }
.phead-row { display: flex; align-items: center; gap: 10px; }
.phead-text { min-width: 0; }
.phead h1 { font-family: var(--disp); font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.phead p { margin: 2px 0 0; font-size: .72rem; opacity: .85; }
.phead.tall { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; }
.phead.tall small { font-weight: 700; opacity: .85; } .phead.tall h1 { font-size: 1.75rem; }

/* Tiles */
.tilegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #fff; border-radius: 20px; padding: 10px 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; min-height: 92px; text-align: center; color: var(--ink); border-radius: 14px; }
.tile b { font-size: .72rem; line-height: 1.2; } .tile small { font-size: .62rem; color: var(--muted); line-height: 1.2; }
.tile-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-ic.round { border-radius: 23px; }
.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.howto-i { background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 10px; min-height: 62px; color: var(--ink); }
.howto-i .tile-ic { width: 38px; height: 38px; } .howto-i b { font-size: .74rem; line-height: 1.3; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-right: 0; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid #D6D2C6; background: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); flex-shrink: 0; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.chip.big { min-height: 42px; }
.chip.dark { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

/* Listing card */
.lcard { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lcard-top { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.lcard-ph { width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.lcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.lcard-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lcard-text b { font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.lcard-text small { font-size: .72rem; color: var(--ink2); } .lcard-text small.muted { color: var(--muted); }
small.ok { color: #1F7A4D !important; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.vbadge { width: 18px; height: 18px; border-radius: 9px; background: #1F7A4D; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vbadge.lg { width: 22px; height: 22px; border-radius: 11px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: .68rem; font-weight: 600; color: var(--green); background: var(--green-t); border-radius: 8px; padding: 3px 8px; }
.tags span.green { color: #1F5F2E; background: #E3F6EA; font-weight: 700; } .tags span.indigo { color: #3730A3; background: #E8E7F8; }
.lcard-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lcard-act:empty { display: none; }

/* Detail */
.cover { height: 230px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.dcard { margin-top: -54px; position: relative; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 8px 24px rgba(27,31,28,.1); display: flex; flex-direction: column; gap: 4px; }
.dcard h1 { font-family: var(--disp); font-size: 1.35rem; font-weight: 800; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.dcard p { margin: 0; font-size: .8rem; }
.actions4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.actions4 > * { min-height: 64px; border-radius: 14px; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .68rem; font-weight: 700; }
.actions4 .wa { background: var(--wa); color: var(--wa-d); }
.actions4 .blue { background: #EAF0F8; color: #1F4E8C; }
.actions4 .gold { background: #FFF1C7; color: #6B5310; }
.infolist { background: #fff; border-radius: 16px; padding: 4px 14px; }
.infolist div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F0EDE5; }
.infolist div:last-child { border-bottom: none; }
.infolist span { width: 96px; flex-shrink: 0; color: var(--muted); font-size: .75rem; }
.infolist b { font-size: .78rem; font-weight: 600; }
.photos img { height: 140px; width: auto; border-radius: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 0 0 10px; border: none; text-align: left; }
.pcard > b, .pcard > small, .pcard > .ttl, .pcard-row { padding: 0 12px; }
.pcard .ttl { font-size: .78rem; font-weight: 600; }
.pcard-ph { height: 110px; background: #F1EFEA; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 6px; }
.pcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tag { position: absolute; top: 8px; left: 8px; font-size: .6rem; font-weight: 700; color: #fff; background: rgba(27,31,28,.7); border-radius: 6px; padding: 2px 6px; }
.pcard.out { opacity: .55; }
.pcard-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.addbtn { min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--green); background: #fff; color: var(--green); font-size: .7rem; font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: none; background: var(--green-t); color: var(--green); display: flex; align-items: center; justify-content: center; }
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 32px)); background: #1F7A4D; color: #fff; border-radius: 16px; padding: 0 16px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 24px rgba(15,81,50,.35); z-index: 20; }
.cartbar b { display: inline-flex; gap: 6px; align-items: center; }
.page.has-cart { padding-bottom: 90px; }
.center a { color: var(--muted); }

/* Article */
.article { display: flex; flex-direction: column; gap: 10px; }
.article-ph { border-radius: 18px; width: 100%; max-height: 300px; object-fit: cover; }
.article h1 { font-size: 1.25rem; line-height: 1.35; }
.article p { margin: 0; }
.topnews { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.topnews-ph { height: 170px; background: #F8E4EA; display: flex; align-items: center; justify-content: center; position: relative; }
.topnews-ph img { width: 100%; height: 100%; object-fit: cover; }
.topnews-ph .pill { position: absolute; top: 12px; left: 12px; }
.topnews-t { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.topnews-t b { font-size: 1rem; line-height: 1.35; } .topnews-t small { font-size: .75rem; color: var(--ink2); }

/* Jobs */
.seg-wrap { padding: 0 16px 16px; margin-top: -10px; border-radius: 0 0 26px 26px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.14); border-radius: 16px; padding: 4px; }
.seg button { min-height: 54px; border-radius: 13px; border: none; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seg button b { font-size: .88rem; } .seg button small { font-size: .62rem; opacity: .85; }
.seg button.on { background: #fff; color: #3730A3; }
.jcard { background: #fff; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.jcard-top { display: flex; gap: 12px; align-items: center; }
.jcard-top > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.jcard-top b { font-size: .92rem; } .jcard-top small { font-size: .74rem; color: var(--ink2); }
.jcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Sell */
.sellcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sellcats button { min-height: 76px; border-radius: 16px; border: 1px solid #EADFC6; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8A5A00; font-size: .68rem; font-weight: 600; }
.sellcats button.on { background: #8A5A00; color: #fff; border-color: #8A5A00; }
.safety { display: flex; gap: 8px; align-items: flex-start; background: #FBEFD6; color: #5E3D00; border-radius: 14px; padding: 10px 12px; font-size: .72rem; margin: 0; }
.price { font-family: var(--disp); font-size: 1.4rem; font-weight: 800; margin: 0; }
.fab { position: fixed; right: max(16px, calc(50% - 224px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); min-height: 56px; padding: 0 20px; border-radius: 28px; background: var(--gold); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-weight: 800; box-shadow: 0 6px 18px rgba(138,90,0,.35); z-index: 15; }

/* Forms */
.card { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--disp); font-size: 1.1rem; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label > span, .lbl { font-size: .76rem; font-weight: 600; color: var(--ink2); }
.form input, .form select, .form textarea { min-height: 48px; border-radius: 12px; border: 1px solid #D6D2C6; padding: 10px 14px; font: inherit; font-size: .85rem; background: #FBFAF7; color: var(--ink); outline: none; width: 100%; }
.form textarea { min-height: 90px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,81,50,.12); }
.req { color: var(--red); font-style: normal; }
.note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--green-t); color: #0F3D27; border-radius: 14px; padding: 12px; font-size: .76rem; margin: 0; }
.note-box.gold { background: var(--gold-t); color: #5B4A1A; }
.typegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.typebtn { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--green); min-height: 96px; }
.typebtn b { color: var(--ink); font-size: .82rem; } .typebtn small { color: var(--muted); font-size: .64rem; line-height: 1.3; }
.typebtn.on { border: 2px solid var(--green); background: var(--green-t); }
.photopick { display: flex; flex-direction: column; gap: 8px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 13px; border: none; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.photobtn { min-height: 84px; border-radius: 14px; border: 1.5px dashed #9AA39E; background: #FBFAF7; display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; color: var(--ink2); font-weight: 600; font-size: .78rem; cursor: pointer; }
.addbanner { background: var(--gold-t); border: 1.5px dashed var(--gold-d); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.addbanner > span:last-child { display: flex; flex-direction: column; } .addbanner b { font-size: .82rem; } .addbanner small { font-size: .7rem; color: #5B4A1A; }
.addbanner-ic { width: 44px; height: 44px; border-radius: 22px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--green-d); }

/* Account */
.acc { padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.acc-me { display: flex; align-items: center; gap: 14px; }
.acc-me > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-me b { font-family: var(--disp); font-size: 1.3rem; line-height: 1.1; } .acc-me small { font-size: .74rem; opacity: .85; }
.avatar { width: 68px; height: 68px; border-radius: 34px; background: var(--gold); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-guest { display: flex; flex-direction: column; gap: 10px; } .acc-guest p { margin: 0; font-size: .85rem; }
.statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.statrow a { border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: .72rem; font-weight: 700; text-align: center; }
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg3 button { min-height: 48px; border-radius: 12px; border: 1px solid #D6D2C6; background: #fff; font-weight: 700; font-size: .8rem; }
.seg3 button.on { border: 2px solid var(--green); background: var(--green-t); color: var(--green); }
.preview { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 0; }
.card.list { padding: 4px 0; gap: 0; }
.card.list > a, .card.list > button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: none; background: none; text-align: left; color: var(--ink); width: 100%; }
.card.list > a > span, .card.list > button > span:last-child { display: flex; flex-direction: column; }
.card.list b { font-size: .82rem; } .card.list small { font-size: .7rem; color: var(--muted); }
.postrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #F0EDE5; }
.postrow > span:first-child { display: flex; flex-direction: column; min-width: 0; } .postrow b { font-size: .82rem; }
.postrow small { font-size: .7rem; color: var(--muted); } .postrow small.err { color: var(--red); }

/* Login */
.login-top { background: var(--green); padding: calc(56px + env(safe-area-inset-top)) 24px 44px; border-radius: 0 0 36px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #CFE3D7; }
.login-top p { margin: 0; font-size: .85rem; }
.emaillogin { background: #fff; border-radius: 16px; padding: 4px 14px; }
.emaillogin summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.emaillogin form { padding: 6px 0 14px; }

/* Guide */
.contact { background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.contact > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact b { font-size: .86rem; } .contact small { font-size: .72rem; color: var(--ink2); } .contact small.muted { color: var(--muted); }
.contact-ic { width: 46px; height: 46px; border-radius: 14px; background: #DDF0F5; color: #0E6B85; font-family: var(--disp); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.checks button { display: flex; align-items: center; gap: 12px; }
.checks .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #9AA39E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checks .box svg { visibility: hidden; }
.checks button.on .box { background: #0E6B85; border-color: #0E6B85; } .checks button.on .box svg { visibility: visible; }
.checks button.on span:last-child { text-decoration: line-through; color: var(--muted); }
.cnt { font-size: .75rem; color: #0E6B85; }
.steps > div { display: flex; gap: 12px; align-items: flex-start; }
.steps .num { width: 30px; height: 30px; border-radius: 15px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.steps span:last-child { display: flex; flex-direction: column; } .steps small { color: var(--muted); font-size: .72rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 > :only-child { grid-column: 1 / -1; }
.info2 > div { background: #DDF0F5; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.info2 small { font-size: .66rem; color: #0A4E61; } .info2 b { font-size: .8rem; }
.darklist { background: var(--ink); border-radius: 20px; padding: 6px 0; }
.darklist button { width: 100%; border: none; background: none; color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; }
.darklist .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--gold); flex-shrink: 0; }
.darklist span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.darklist small { color: #B9C1BC; font-size: .7rem; } .darklist em { font-style: normal; color: var(--gold); font-weight: 700; font-size: .72rem; }

/* Voice */
.voice { min-height: calc(100vh - var(--nav-h)); background: var(--green-d); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.voice-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.voice h1 { font-family: var(--disp); font-size: 1.7rem; margin-top: 24px; }
.muted-l { color: #CFE3D7; margin: 0; font-size: .8rem; }
.seg3.dark { grid-template-columns: repeat(2, minmax(0, 1fr)); background: rgba(255,255,255,.1); padding: 4px; border-radius: 14px; gap: 4px; }
.seg3.dark button { min-height: 36px; background: transparent; border: none; color: #fff; padding: 0 14px; }
.seg3.dark button.on { background: var(--gold); color: var(--green-d); border: none; }
.micwrap { width: 190px; height: 190px; position: relative; display: flex; align-items: center; justify-content: center; margin: 10px 0; }
.ring { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); opacity: 0; }
.voice.on .ring { animation: ring 1.6s ease-out infinite; } .voice.on .ring.r2 { animation-delay: .8s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.3); opacity: 0; } }
.bigmic { position: relative; width: 124px; height: 124px; border-radius: 62px; border: 6px solid rgba(255,255,255,.25); background: var(--gold); display: flex; align-items: center; justify-content: center; }
.heard { font-size: 1.1rem; font-weight: 700; min-height: 1.5em; margin: 0; }
.voice-ideas { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; width: 100%; margin-top: 8px; }

/* Bottom nav */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 30; }
.nav-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .62rem; font-weight: 600; }
.nav-i.on { color: var(--green); }
.nav-i.add { color: #B07A00; }

/* Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; transform: translateY(100%); transition: transform .25s ease; }
.sheet-wrap.open .sheet { transform: none; } .sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet h2 { font-family: var(--disp); font-size: 1.3rem; line-height: 1.25; padding-right: 44px; }
.sheet p { margin: 0; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 20px; border: none; background: #fff; display: flex; align-items: center; justify-content: center; }
.ann-img { border-radius: 16px; width: 100%; max-height: 260px; object-fit: cover; }
.ann { display: flex; flex-direction: column; gap: 12px; }
.ann-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--green); }
.ann .row .btn { flex: 1; }

/* Misc */
.empty { background: #fff; border-radius: 20px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty p { margin: 0; }
.skel-list { display: flex; flex-direction: column; gap: 10px; }
.skel { height: 92px; border-radius: 18px; background: linear-gradient(90deg, #EEEBE3 25%, #F7F5F0 50%, #EEEBE3 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .8rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #1F7A4D; } .toast.err { background: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 520px) { body { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
