:root {
  --bg: #ffffff;
  --soft: #f3f4f6;
  --card: #ffffff;
  --ink: #111214;
  --muted: #8b9099;
  --line: #eceef1;
  --accent: #111214;
  --accent-ink: #ffffff;
  --accent-soft: #f3f4f6;
  --good: #2f9460;
  --bad: #d23f31;
  --warm: #e8740c;
  --shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 8px 24px rgba(17, 18, 20, .07);
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: 0 18px calc(100px + env(safe-area-inset-bottom)); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 0 14px; }
.top h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.back { border: 0; background: var(--soft); width: 42px; height: 42px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
.pill { border: 0; background: var(--soft); border-radius: 99px; padding: 10px 16px; font-size: 14px; font-weight: 600; min-height: 42px; flex: none; }
.banner { background: #fff4e5; border-radius: 14px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }

/* ---------- summary ---------- */
.summary { background: var(--ink); color: #fff; border-radius: 26px; padding: 20px 22px; }
.summary .label { font-size: 14px; opacity: .7; }
.summary .big { font-size: clamp(30px, 10vw, 40px); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0 12px; overflow-wrap: anywhere; }
.summary .sub { font-size: 13.5px; opacity: .85; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.summary .bar { background: rgba(255, 255, 255, .22); }
.summary .bar i { background: #fff; }
.summary .bar.over i { background: #ff8f84; }
.summary .over-text { color: #ffb0a8; }

.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--good); min-width: 4px; transition: width .5s ease; }
.bar.over i { background: var(--bad); }

.summary.status { display: flex; align-items: center; gap: 18px; }
.ring { width: 92px; height: 92px; flex: none; }
.ring .arc { transition: stroke-dashoffset .8s ease; }
.summary .mid-big { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; margin: 2px 0 4px; }
.summary .sub2 { font-size: 13.5px; opacity: .8; }
.money { background: var(--soft); border-radius: 26px; padding: 18px 22px; margin-top: 12px; }
.money .label { font-size: 14px; color: var(--muted); }
.money .big { font-size: clamp(28px, 9vw, 36px); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0 12px; overflow-wrap: anywhere; }
.money .bar { background: #dfe2e7; }
.money .sub { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.stack { display: grid; gap: 10px; }
.mini-stage { display: flex; align-items: center; gap: 12px; width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 18px; padding: 10px 14px 10px 10px; text-align: left; }
.mini-stage .pic { width: 60px; height: 60px; flex: none; border-radius: 12px; }
.mini-stage .mid { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 99px; margin-top: 4px; }
.badge.in_progress { background: #fff0dc; color: #8a4a00; }
.badge.done { background: #dff3e8; color: #17603a; }
.badge.not_started { background: var(--soft); color: var(--muted); }
.statusseg { width: min(100%, 340px); margin-top: 10px; }
.statusseg span { font-size: 13px; padding-inline: 2px; }

.chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 170px; align-items: end; background: var(--soft); border-radius: 22px; padding: 16px 14px 12px; }
.chart .col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 6px; min-width: 0; }
.chart .col i { align-self: end; width: min(100%, 38px); background: var(--ink); border-radius: 8px 8px 3px 3px; display: block; }
.chart .val { font-size: 12px; font-weight: 650; white-space: nowrap; }
.chart .lab { font-size: 12px; color: var(--muted); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 18px -18px 6px; padding: 2px 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 0; background: var(--soft); border-radius: 99px; padding: 11px 20px; font-size: 14.5px; font-weight: 550; white-space: nowrap; min-height: 44px; transition: background .2s, color .2s; }
.chip.on { background: var(--ink); color: #fff; }

/* ---------- sections ---------- */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.sec h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.sec a, .linkbtn { font-size: 14px; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: 4px; font-weight: 550; }

/* ---------- product-style grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.prod { border: 0; background: none; padding: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; border-radius: var(--radius); }
.prod .pic { width: 100%; aspect-ratio: 1; margin-bottom: 6px; }
.prod .name { font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.prod .price { font-size: 15px; }
.prod .price.zero { color: var(--muted); font-size: 13.5px; }
.prod .bar { width: 56%; margin-top: 6px; }
.prod:active .pic img { transform: scale(.94); animation-play-state: paused; }
.prod.add .pic { background: var(--soft); border-radius: var(--radius); color: var(--muted); font-size: 44px; font-weight: 300; width: 78%; margin: 11% 0 calc(11% + 6px); }

/* Photos: white studio shots that blend into the page, with a gentle float so the grid feels alive. */
.pic { display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 16px; }
.pic img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .2s ease; }
.pic .ic { width: 62%; height: auto; }
.prod .pic img { animation: pic-in .6s cubic-bezier(.2, .9, .3, 1.15) both, float 3.6s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * 70ms), calc(.6s + var(--i, 0) * 420ms); }
.pic.hero { width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; }
.pic.hero img { animation: pic-in .6s cubic-bezier(.2, .9, .3, 1.15) both, float 3.2s .6s ease-in-out infinite alternate; }
@keyframes pic-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(-7px) scale(1.035); } }

/* ---------- detail (stage / item page) ---------- */
.detail { display: grid; gap: 8px; text-align: center; justify-items: center; }
.detail .big { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.detail .bar { width: min(100%, 300px); margin-top: 6px; }
.detail .sub { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); width: min(100%, 300px); }
.detail .btn { margin-top: 10px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.over-text { color: var(--bad); font-weight: 600; }

/* ---------- lists ---------- */
.list { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); }
.row .pic { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.row .mid { flex: 1; min-width: 0; }
.row .title { font-weight: 600; overflow-wrap: anywhere; }
.row .meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row .amt { font-weight: 650; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty .ic { width: 84px; margin: 0 auto 8px; display: block; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--soft); margin-right: 4px; }

.row .mini { background: var(--soft); flex: none; }
.hintline { margin: -4px 0 12px; }
.ctx { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 16px; padding: 10px 12px; }
.ctx .pic { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.ctx .mid { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }

[hidden] { display: none !important; }
.brks { display: grid; gap: 10px; margin-bottom: 16px; }
.brk { background: var(--soft); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; display: grid; gap: 6px; align-content: start; }
.brk h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.brk div { display: flex; justify-content: space-between; gap: 12px; }
.brk div span:first-child { overflow-wrap: anywhere; min-width: 0; }
.brk .num { font-weight: 650; }

/* filters */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.filters input { grid-column: 1 / -1; }
.totalrow { display: flex; justify-content: space-between; padding: 4px 0 12px; font-weight: 650; }

/* ---------- forms ---------- */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); min-height: 48px; }
textarea { min-height: 72px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2.5px solid var(--warm); outline-offset: 2px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 550; color: var(--muted); min-width: 0; }
label input, label select, label textarea { color: var(--ink); font-weight: 400; font-size: 16px; }
form { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.amount-input { font-size: 26px !important; font-weight: 650 !important; }
.hint { font-weight: 400; font-size: 12.5px; }

.btn { border: 0; border-radius: 99px; padding: 12px 22px; min-height: 48px; font-weight: 600; background: var(--ink); color: #fff; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.danger { background: none; color: var(--bad); padding-inline: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.actions .grow { flex: 1; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--soft); border-radius: 99px; padding: 4px; border: 0; margin: 0; }
.seg label { display: block; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; min-height: 0; }
.seg span { display: block; text-align: center; padding: 9px 4px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--warm); outline-offset: 2px; }
.fieldlabel { font-size: 14px; font-weight: 550; color: var(--muted); margin-bottom: -8px; }

.iconpick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 236px; overflow-y: auto; padding: 3px; }
.iconpick label { position: relative; display: block; }
.iconpick input { position: absolute; opacity: 0; inset: 0; min-height: 0; }
.iconpick .pic { aspect-ratio: 1; border: 2.5px solid var(--line); border-radius: 14px; }
.iconpick input:checked + .pic { border-color: var(--ink); }
.iconpick input:focus-visible + .pic { outline: 2.5px solid var(--warm); outline-offset: 2px; }

/* ---------- dialog (bottom sheet) ---------- */
dialog { border: 0; padding: 0; background: var(--card); color: var(--ink); width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 28px 28px 0 0; max-height: 92dvh; overflow: auto; }
dialog::backdrop { background: rgba(17, 18, 20, .45); }
dialog[open] { animation: sheet .25s ease; }
dialog .inner { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
dialog h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) { dialog { margin: auto; border-radius: 28px; } }

/* ---------- nav + fab ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.nav .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.nav a { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; font-size: 12px; font-weight: 550; color: var(--muted); text-decoration: none; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--ink); }
.nav a.on svg { fill: var(--ink); }
.fab { position: fixed; right: max(18px, calc(50% - 262px)); bottom: calc(78px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 32px; font-weight: 300; line-height: 1; box-shadow: 0 10px 24px rgba(17, 18, 20, .3); z-index: 6; }
.fab:active { transform: scale(.94); }

#toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- auth screens ---------- */
.auth { min-height: 100dvh; display: grid; align-content: center; gap: 16px; padding: 24px 0; }
.auth .art { width: 190px; margin: 0 auto; }
.auth .art .pic { aspect-ratio: 1; }
.auth .art img { animation: float 3.2s ease-in-out infinite alternate; }
.auth h1 { font-size: 28px; font-weight: 600; text-align: center; letter-spacing: -.03em; }
.auth p { text-align: center; color: var(--muted); }
.langswitch { justify-self: center; width: 210px; }

.card { background: var(--soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.auth .card { background: none; padding: 0; }
.person { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #e2e4e8; }
.person:first-child { border-top: 0; padding-top: 0; }
.person:last-child { padding-bottom: 0; }
.person .mid { flex: 1; min-width: 120px; }
.mini { border: 0; background: #fff; border-radius: 99px; padding: 8px 12px; font-size: 13px; font-weight: 600; min-height: 36px; }
.card .btn.ghost { background: #fff; }

/* =========================================================
   Icon animations
   ========================================================= */
.ic { display: block; overflow: hidden; }
.ic * { transform-box: fill-box; transform-origin: center; }

.ic-plans .draw { stroke-dasharray: 100; animation: draw 4s ease-in-out infinite; }
.ic-plans .pencil { animation: pencil 1s ease-in-out infinite alternate; }
@keyframes draw { 0% { stroke-dashoffset: 100; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes pencil { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-4px, 3px) rotate(-6deg); } }

.ic-permit .seal { animation: stamp 3.2s ease-out infinite; }
@keyframes stamp { 0% { transform: scale(2.4); opacity: 0; } 16% { transform: scale(.92); opacity: 1; } 24%, 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.ic-excavate .shovel { transform-origin: 50% 100%; animation: dig 2s ease-in-out infinite; }
.ic-excavate .dirt { animation: fling 2s ease-out infinite; }
.ic-excavate .d2 { animation-delay: .08s; }
@keyframes dig { 0%, 100% { transform: rotate(-14deg) translateY(-5px); } 40% { transform: rotate(0) translateY(4px); } 62% { transform: rotate(16deg) translateY(1px); } }
@keyframes fling { 0%, 45% { opacity: 0; transform: translate(-6px, 4px); } 55% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, -12px); } }

.ic-piling .hammer { animation: drive 1.3s cubic-bezier(.5, 0, 1, .5) infinite; }
.ic-piling .pile { animation: sink 1.3s ease-out infinite; }
.ic-piling .spark { animation: spark 1.3s linear infinite; }
@keyframes drive { 0%, 50% { transform: translateY(-3px); } 68% { transform: translateY(4px); } 76% { transform: translateY(2px); } 100% { transform: translateY(-3px); } }
@keyframes sink { 0%, 66% { transform: translateY(0); } 72% { transform: translateY(2.5px); } 100% { transform: translateY(0); } }
@keyframes spark { 0%, 66%, 86%, 100% { opacity: 0; } 70%, 80% { opacity: 1; } }

.ic-columns .col { transform-origin: 50% 100%; animation: rise 4s ease-out infinite both; }
.ic-columns .c2 { animation-delay: .3s; }
.ic-columns .c3 { animation-delay: .6s; }
.ic-columns .beam { animation: beam 4s ease-out infinite; }
@keyframes rise { 0% { transform: scaleY(.12); } 35%, 90% { transform: scaleY(1); } 100% { transform: scaleY(.12); } }
@keyframes beam { 0%, 48% { opacity: 0; transform: translateY(-8px); } 60%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }

.ic-slab .fill { transform-origin: 100% 50%; animation: fill 4s linear infinite; }
.ic-slab .pour { transform-origin: 50% 0; animation: pour 4s linear infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes pour { 0%, 66% { opacity: 1; transform: scaleY(1); } 72%, 100% { opacity: 0; transform: scaleY(.2); } }

.ic-bricks .bk { animation: lay 5s ease-out infinite both; }
@keyframes lay { 0% { opacity: 0; transform: translateY(-12px); } 7%, 84% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; transform: translateY(0); } }

.ic-plaster .coat { transform-origin: 0 50%; animation: coat 4s ease-in-out infinite; }
.ic-plaster .trowel { animation: trowel 4s ease-in-out infinite; }
@keyframes coat { 0% { transform: scaleX(0); } 65%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes trowel { 0% { transform: translateX(0); } 65%, 88% { transform: translateX(46px); opacity: 1; } 100% { transform: translateX(46px); opacity: 0; } }

.ic-electric .glow { opacity: .35; animation: glow 1.8s ease-in-out infinite alternate; }
.ic-electric .filament { animation: flicker 1.8s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .1; transform: scale(.72); } to { opacity: .5; transform: scale(1.05); } }
@keyframes flicker { from { opacity: .45; } to { opacity: 1; } }

.ic-plumbing .drop { transform-origin: 50% 0; animation: drip 1.8s ease-in infinite; }
.ic-plumbing .ripple { opacity: .35; animation: ripple 1.8s ease-out infinite; }
@keyframes drip { 0% { transform: translateY(-3px) scale(.3); opacity: 0; } 35% { transform: translateY(0) scale(1); opacity: 1; } 80% { transform: translateY(10px) scale(1); opacity: 1; } 100% { transform: translateY(14px) scale(.8); opacity: 0; } }
@keyframes ripple { 0%, 75% { transform: scale(.4); opacity: 0; } 82% { opacity: .5; } 100% { transform: scale(1.15); opacity: 0; } }

.ic-tiles .tl { animation: pop 4.6s cubic-bezier(.3, 1.5, .5, 1) infinite both; }
@keyframes pop { 0% { opacity: 0; transform: scale(.2); } 9%, 82% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(1); } }

.ic-door .leaf { transform-origin: 0 50%; animation: swing 3.6s ease-in-out infinite; }
@keyframes swing { 0%, 18%, 100% { transform: scaleX(1); } 48%, 72% { transform: scaleX(.38); } }

.ic-paint .roller { animation: roll 2.2s ease-in-out infinite alternate; }
.ic-paint .stripe { transform-origin: 50% 0; animation: stripe 2.2s ease-in-out infinite alternate; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(36px); } }
@keyframes stripe { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

.ic-wood .saw { animation: saw .7s ease-in-out infinite alternate; }
.ic-wood .dust { animation: dust 1.4s linear infinite; }
.ic-wood .s2 { animation-delay: .5s; }
@keyframes saw { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
@keyframes dust { 0% { opacity: 0; transform: translateY(-2px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-3px, 9px); } }

.ic-fence .sun { animation: spin 14s linear infinite; }
.ic-fence .fp { animation: wave 2.4s ease-in-out infinite both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }

.ic-coins .coin { animation: flip 2.6s ease-in-out infinite; }
@keyframes flip { 0%, 50%, 100% { transform: translateY(0) scaleX(1); } 25%, 75% { transform: translateY(-4px) scaleX(.08); } }

.ic-hardhat .hat { transform-origin: 50% 100%; animation: nod 1.6s ease-in-out infinite alternate; }
@keyframes nod { from { transform: rotate(-7deg); } to { transform: rotate(7deg) translateY(-2px); } }

.ic-house .roof { animation: roof 4s ease-out infinite; }
.ic-house .smoke { animation: smoke 2.4s ease-out infinite; }
.ic-house .k2 { animation-delay: 1.2s; }
@keyframes roof { 0% { transform: translateY(-18px); opacity: 0; } 22% { transform: translateY(1px); opacity: 1; } 28%, 90% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; } }
@keyframes smoke { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(4px, -11px) scale(1.7); opacity: 0; } }

/* Small list icons stay still so long lists do not flicker. */
.still .ic *, .still.ic *, .still img { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ic *, .pic img, dialog[open] { animation: none !important; }
  .bar i { transition: none; }
}
