/* GENERATED FILE - DO NOT EDIT.
   Source: shared/tab-guides.css - run `npm run sync:shared` after editing. */

/* First-trip guides (owner 2026-12-01, approved mock "Onboarding v2"): shared/tab-guides.js, web + app.
   Phone: a bottom sheet. Wide screen: a centered window, the scene left, the words right.
   The scene pieces between the "guides" markers are ported from the mock boards by
   mocks/onboarding-v2/harness/port-guides.mjs (each board's rules under .ftg-ba / .ftg-bb / .ftg-bw / .ftg-bm). */

@property --ftg-t { syntax: "<number>"; inherits: true; initial-value: 0; }

.ftg {
  position: fixed;
  inset: 0;
  z-index: 2147483100; /* above every window (also how the app's Back ranks it); a modal <dialog> anyway */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(17, 32, 26, 0.55);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: ftgFade 0.18s ease-out;
}
/* Drawn as a modal <dialog> (top layer, above windows like Add expense): no browser box of its own. */
dialog.ftg {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
}
dialog.ftg:not([open]) { display: none; }
dialog.ftg::backdrop { background: transparent; }
@keyframes ftgFade { from { opacity: 0; } }
@keyframes ftgUp { from { transform: translateY(40px); opacity: 0; } }
.ftg-sh {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 18px max(14px, env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  background: #fffdf8;
  color: #1d3a2e;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.25);
  text-align: left;
  animation: ftgUp 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ftg-sh:focus { outline: none; }
.ftg-grab { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: #e2d6bf; }
.ftg-hd { display: flex; align-items: center; gap: 10px; }
.ftg-hd img { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f3ead6; }
.ftg-hd small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a5a2b; }
.ftg-hd h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.15; color: #1d3a2e; }
.ftg-mini {
  position: relative;
  height: 132px;
  margin: 12px 0;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #f3ecdc;
  overflow: hidden;
  animation: ftgClock 9s linear infinite;
}
.ftg-mini.is-map { padding: 0; background: #e4ecdf; }
@keyframes ftgClock { from { --ftg-t: 0; } to { --ftg-t: 9; } }
.ftg-fx { position: relative; height: 100%; opacity: clamp(0, calc((8.8 - var(--ftg-t)) * 5), 1); }
.ftg-what { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ftg-what li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.38; color: #44544a; }
.ftg-what li > i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e7efe2; color: #1d3a2e; font-style: normal; font-size: 13px; font-weight: 800; }
.ftg-what b { color: #1d3a2e; }
.ftg-how { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: #fff3d6; font-size: 13.5px; line-height: 1.4; color: #5b4320; }
.ftg-how b { color: #8a5a2b; }
.ftg-ok {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #1d3a2e;
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
}
.ftg-off {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  background: transparent;
  color: #6b5a45;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ftg-ok:focus-visible, .ftg-off:focus-visible { outline: 3px solid #e9c46a; outline-offset: 2px; }

/* A wide screen (website, tablets): one window, the scene left and the words right. */
@media (min-width: 900px) and (min-height: 560px) {
  .ftg { align-items: center; padding: 24px; }
  .ftg-sh {
    width: 800px;
    max-width: none;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    padding: 24px 28px 18px;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation-name: ftgFade;
  }
  .ftg-sh > .ftg-grab { display: none; }
  .ftg-sh > .ftg-hd { grid-column: 1 / -1; margin-bottom: 4px; }
  /* (only inside the guide window: LakBi's "How do I…?" answers reuse .ftg-mini in a plain column) */
  .ftg-sh > .ftg-mini { grid-column: 1; grid-row: 2 / 7; align-self: stretch; height: auto; min-height: 150px; }
  .ftg-sh > .ftg-what, .ftg-sh > .ftg-how, .ftg-sh > .ftg-ok, .ftg-sh > .ftg-off { grid-column: 2; }
  .ftg-sh > .ftg-what { margin-top: 12px; }
}

/* "Tips are off" note with Undo */
.ftg-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 84px));
  z-index: 2147483150;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 16px;
  border-radius: 16px;
  background: #1d3a2e;
  color: #fbf6ec;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  animation: ftgToast 0.22s ease-out;
}
@keyframes ftgToast { from { opacity: 0; transform: translate(-50%, 12px); } }
.ftg-toast p { margin: 0; }
.ftg-toast b { display: block; }
.ftg-toast button {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f6cf7a;
  color: #1f3d30;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .ftg, .ftg-sh, .ftg-toast { animation: none; }
  .ftg-mini { animation: none; --ftg-t: 8; }
}

/* "How do I…?" in LakBi's window (owner 2026-12-01): six fixed answers + Watch the intro again. */
.lhw { display: grid; gap: 0.55rem; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f3d30; }
.lhw-back {
  justify-self: start;
  min-height: 2.5rem;
  padding: 0 0.2rem;
  border: 0;
  background: transparent;
  color: #8a5a2b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.lhw-title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: #1f3d30; letter-spacing: 0; text-transform: none; }
.lhw-list { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.lhw-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.95rem;
  border: 1px solid #eadfca;
  border-radius: 0.9rem;
  background: #fff;
  color: #1f3d30;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lhw-list button span { color: #8a5a2b; font-size: 1.05rem; }
.lhw-again {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a5a2b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lhw .lhw-scene { margin: 0.15rem 0; }
.lhw-steps { display: grid; gap: 0.45rem; margin: 0; padding: 0 0 0 1.3rem; font-size: 0.95rem; line-height: 1.45; color: #44544a; }
.lhw-steps b { color: #1f3d30; }
.lhw-back:focus-visible, .lhw-list button:focus-visible, .lhw-again:focus-visible { outline: 3px solid #e9c46a; outline-offset: 2px; }

/* guides:start (generated — edit the mock boards and rerun port-guides.mjs) */
/* GuidesA */
.ftg-ba .ftg-x{--d:0;--h:99;--i:clamp(0,calc((var(--ftg-t) - var(--d)) * 3.5),1);--o:clamp(0,calc((var(--h) - var(--ftg-t)) * 3.5),1);opacity:min(var(--i),var(--o));transform:translateY(calc((1 - var(--i)) * 10px))}
.ftg-ba .ftg-x.ftg-pop{transform:scale(calc(.5 + var(--i) * .5))}
.ftg-ba .ftg-tap{position:absolute;z-index:5;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:rgba(241,200,97,.4);border:2px solid rgba(29,58,46,.55);transform:scale(calc(.4 + var(--i) * .8))}
.ftg-ba .ftg-r{display:flex;align-items:center;gap:8px;height:33px;box-sizing:border-box;padding:0 10px;margin-bottom:5px;border-radius:10px;background:#fffdf8;border:1px solid #e9dfc9;font-size:12.5px;font-weight:700}
.ftg-ba .ftg-r time{flex:none;width:36px;color:#7d705a;font-size:11.5px;font-weight:800}
.ftg-ba .ftg-r span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftg-ba .ftg-r small{flex:none;font-size:11px;font-weight:800;color:#7d705a}
.ftg-ba .ftg-leg{display:flex;align-items:center;gap:5px;margin:-1px 0 4px 26px;font-size:11px;font-weight:800;color:#7d705a}
.ftg-ba .ftg-f{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#fff;font-size:10px;font-weight:800;font-style:normal}
.ftg-ba .ftg-fa{background:#1d3a2e}
.ftg-ba .ftg-fb{background:#b07f1e}
.ftg-ba .ftg-fc{background:#a8442a}
.ftg-ba .ftg-fk{background:#2b3f6b}
.ftg-ba .ftg-pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;background:#1d3a2e;color:#fff;font-size:12px;font-weight:700}
.ftg-ba .ftg-pill em{font-style:normal;color:#f1c861}
.ftg-ba .ftg-tk{position:relative;flex:none;width:18px;height:18px;box-sizing:border-box;border-radius:50%;border:2px solid #c9b994}
.ftg-ba .ftg-tk i{position:absolute;inset:-2px;display:grid;place-items:center;border-radius:50%;background:#12703a;color:#fff;font-size:10px;font-weight:900;font-style:normal}
.ftg-ba .ftg-r .ftg-swap{position:relative;display:inline-block;flex:none;width:38px;height:16px}
.ftg-ba .ftg-swap b{position:absolute;left:0;top:0;font-size:11.5px;font-weight:800;color:#7d705a}
.ftg-ba .ftg-pt{display:flex;gap:5px}
.ftg-ba .ftg-pp{position:relative;flex:none;padding:5px 10px;border-radius:999px;background:#fffdf8;overflow:hidden}
.ftg-ba .ftg-pp i{position:absolute;inset:0;border-radius:999px;background:#e9c46a}
.ftg-ba .ftg-pp b{position:relative;font-size:11.5px;font-weight:800;color:#1d3a2e}
.ftg-ba .ftg-role{flex:none;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:800;background:#e7efe2}
/* GuidesB */
.ftg-bb .ftg-x{--d:0;--h:99;--i:clamp(0,calc((var(--ftg-t) - var(--d)) * 3.5),1);--o:clamp(0,calc((var(--h) - var(--ftg-t)) * 3.5),1);opacity:min(var(--i),var(--o));transform:translateY(calc((1 - var(--i)) * 10px))}
.ftg-bb .ftg-x.ftg-pop{transform:scale(calc(.5 + var(--i) * .5))}
.ftg-bb .ftg-tap{position:absolute;z-index:5;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:rgba(241,200,97,.4);border:2px solid rgba(29,58,46,.55);transform:scale(calc(.4 + var(--i) * .8))}
.ftg-bb .ftg-r{display:flex;align-items:center;gap:8px;height:33px;box-sizing:border-box;padding:0 10px;margin-bottom:5px;border-radius:10px;background:#fffdf8;border:1px solid #e9dfc9;font-size:12.5px;font-weight:700}
.ftg-bb .ftg-r span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftg-bb .ftg-r small{flex:none;font-size:11px;font-weight:800;color:#7d705a}
.ftg-bb .ftg-f{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#fff;font-size:10px;font-weight:800;font-style:normal}
.ftg-bb .ftg-fa{background:#1d3a2e}
.ftg-bb .ftg-fb{background:#b07f1e}
.ftg-bb .ftg-opt{position:relative;display:flex;align-items:center;gap:8px;height:28px;margin-top:5px;padding:0 10px;border-radius:9px;background:#fffdf8;overflow:hidden;font-size:12px;font-weight:700}
.ftg-bb .ftg-opt .ftg-fill{position:absolute;left:0;right:0;top:0;bottom:0;background:#d7e6d3;transform-origin:left;transform:scaleX(calc(clamp(0, (var(--ftg-t) - var(--fd)) * 1.4, 1) * var(--to)))}
.ftg-bb .ftg-opt span,.ftg-bb .ftg-opt em{position:relative}
.ftg-bb .ftg-opt span{flex:1}
.ftg-bb .ftg-opt em{font-style:normal;font-weight:800;color:#12703a}
.ftg-bb .ftg-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ftg-bb .ftg-tiles i{display:block;height:46px;border-radius:9px}
.ftg-bb .ftg-dial{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ftg-bb .ftg-dial div{padding:8px 10px;border-radius:12px;background:#a8442a;color:#fff}
.ftg-bb .ftg-dial b{display:block;font-family:"Playfair Display",Georgia,serif;font-size:24px;line-height:1}
.ftg-bb .ftg-dial small{font-size:11px;font-weight:800;opacity:.9}
/* GuidesWin */
.ftg-bw .ftg-x{--d:0;--h:99;--i:clamp(0,calc((var(--ftg-t) - var(--d)) * 3.5),1);--o:clamp(0,calc((var(--h) - var(--ftg-t)) * 3.5),1);opacity:min(var(--i),var(--o));transform:translateY(calc((1 - var(--i)) * 10px))}
.ftg-bw .ftg-x.ftg-pop{transform:scale(calc(.5 + var(--i) * .5))}
.ftg-bw .ftg-tap{position:absolute;z-index:5;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:rgba(241,200,97,.4);border:2px solid rgba(29,58,46,.55);transform:scale(calc(.4 + var(--i) * .8))}
.ftg-bw .ftg-r{display:flex;align-items:center;gap:8px;height:33px;box-sizing:border-box;padding:0 10px;margin-bottom:5px;border-radius:10px;background:#fffdf8;border:1px solid #e9dfc9;font-size:12.5px;font-weight:700}
.ftg-bw .ftg-r span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftg-bw .ftg-r small{flex:none;font-size:11px;font-weight:800;color:#7d705a}
.ftg-bw .ftg-f{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#fff;font-size:10px;font-weight:800;font-style:normal}
.ftg-bw .ftg-fa{background:#1d3a2e}
.ftg-bw .ftg-fb{background:#b07f1e}
.ftg-bw .ftg-fc{background:#a8442a}
.ftg-bw .ftg-msvg{position:absolute;left:0;top:0;width:330px;height:132px}
.ftg-bw .ftg-route{fill:none;stroke:#1d3a2e;stroke-width:4;stroke-linecap:round;stroke-dasharray:420;stroke-dashoffset:calc(420 - clamp(0, (var(--ftg-t) - .4) / 1.6, 1) * 420)}
.ftg-bw .ftg-pin{position:absolute;display:grid;place-items:center;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;background:#1d3a2e;border:2px solid #fff;color:#fff;font-size:11px;font-weight:800;font-style:normal;box-shadow:0 3px 8px rgba(0,0,0,.25)}
.ftg-bw .ftg-chipb{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:#1d3a2e;color:#fff;font-size:12px;font-weight:800}
.ftg-bw .ftg-bar{position:relative;height:36px;margin:8px 0 6px 44px;border-radius:10px;background:#fffdf8;border:2px solid #1d3a2e;box-sizing:border-box;transform-origin:left;width:calc(150px + clamp(0, (var(--ftg-t) - 2.2) / 1.2, 1) * 110px)}
.ftg-bw .ftg-bar b{position:absolute;left:10px;top:8px;font-size:12.5px;font-weight:800}
.ftg-bw .ftg-bar i{position:absolute;right:-7px;top:50%;width:12px;height:22px;margin-top:-11px;border-radius:6px;background:#fff;border:2px solid #1d3a2e;box-sizing:border-box}
.ftg-bw .ftg-tl{position:absolute;left:0;top:14px;font-size:11.5px;font-weight:800;color:#7d705a}
.ftg-bw .ftg-modes{display:flex;gap:4px;flex-wrap:nowrap}
.ftg-bw .ftg-mode{position:relative;flex:none;padding:5px 7px;border-radius:999px;background:#fffdf8;font-size:10.5px;font-weight:800;color:#5d564b;overflow:hidden}
.ftg-bw .ftg-mode i{position:absolute;inset:0;border-radius:999px;background:#e9c46a}
.ftg-bw .ftg-mode span{position:relative}
.ftg-bw .ftg-shares{display:flex;justify-content:space-around;margin-top:10px;font-size:11.5px;font-weight:800}
.ftg-bw .ftg-shares>span{display:flex;flex-direction:column;align-items:center;gap:3px}
.ftg-bw .ftg-sw{position:relative;display:block;width:48px;height:15px;text-align:center}
.ftg-bw .ftg-sw b{position:absolute;left:0;right:0;top:0}
.ftg-bw .ftg-turn{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:12px;background:#1d3a2e;color:#fff}
.ftg-bw .ftg-turn i{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f1c861;color:#1d3a2e;font-style:normal}
.ftg-bw .ftg-turn b{display:block;font-size:13.5px;font-weight:800}
.ftg-bw .ftg-turn small{font-size:11px;font-weight:600;color:#cfdcd2}
.ftg-bw .ftg-me{position:absolute;width:14px;height:14px;margin:-7px 0 0 -7px;box-sizing:border-box;border-radius:50%;background:#f1c861;border:3px solid #1d3a2e;box-shadow:0 0 0 5px rgba(241,200,97,.35);left:calc(40px + clamp(0, (var(--ftg-t) - .8) / 2.4, 1) * 110px);top:calc(110px - clamp(0, (var(--ftg-t) - .8) / 2.4, 1) * 24px)}
.ftg-bw .ftg-pal{position:absolute;display:flex;align-items:center;gap:5px;padding:2px 8px 2px 2px;border-radius:999px;background:#fffdf8;box-shadow:0 3px 8px rgba(0,0,0,.2);font-size:11px;font-weight:800;color:#1d3a2e;white-space:nowrap}
/* WebMore */
.ftg-bm .ftg-x{--d:0;--h:99;--i:clamp(0,calc((var(--ftg-t) - var(--d)) * 3.5),1);--o:clamp(0,calc((var(--h) - var(--ftg-t)) * 3.5),1);opacity:min(var(--i),var(--o));transform:translateY(calc((1 - var(--i)) * 10px))}
.ftg-bm .ftg-x.ftg-pop{transform:scale(calc(.5 + var(--i) * .5))}
.ftg-bm .ftg-tap{position:absolute;z-index:5;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:rgba(241,200,97,.4);border:2px solid rgba(29,58,46,.55);transform:scale(calc(.4 + var(--i) * .8))}
.ftg-bm .ftg-r{display:flex;align-items:center;gap:8px;height:33px;box-sizing:border-box;padding:0 10px;margin-bottom:5px;border-radius:10px;background:#fffdf8;border:1px solid #e9dfc9;font-size:12.5px;font-weight:700}
.ftg-bm .ftg-r span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ftg-bm .ftg-r small{flex:none;font-size:11px;font-weight:800;color:#7d705a}
.ftg-bm .ftg-bar{position:relative;height:36px;margin:8px 0 6px 44px;border-radius:10px;background:#fffdf8;border:2px solid #1d3a2e;box-sizing:border-box;width:calc(150px + clamp(0, (var(--ftg-t) - 2.2) / 1.2, 1) * 110px)}
.ftg-bm .ftg-bar b{position:absolute;left:10px;top:8px;font-size:12.5px;font-weight:800}
.ftg-bm .ftg-bar i{position:absolute;right:-7px;top:50%;width:12px;height:22px;margin-top:-11px;border-radius:6px;background:#fff;border:2px solid #1d3a2e;box-sizing:border-box}
.ftg-bm .ftg-tl{position:absolute;left:0;top:14px;font-size:11.5px;font-weight:800;color:#7d705a}
/* guides:end */
