/*
  Shared base for the website's interactive examples in /demo (estimating.html, evidence-pack.html).
  Marketing palette: blue #2D6BE4, green #22C55E (#16A34A for fills), ink #0D1B2A. No orange in the UI.
  Everything these pages show is fictional example data; each page says so in its footer.
*/
:root {
  --ink: #0D1B2A; --ink2: #34445E; --mute: #6B7A90; --line: #E3EAF3; --line2: #EEF3F9;
  --blue: #2D6BE4; --blue-50: #EAF1FD; --green: #16A34A; --green-50: #E6F7EE; --amber: #B26F00; --amber-50: #FFF4E0;
  --red: #C9343A; --red-50: #FDECED; --grey-50: #EEF2F7; --bg: #F4F6F9; --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(26, 55, 104, .08), 0 1px 2px rgba(26, 55, 104, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px;
  -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* frame */
header { position: fixed; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: #fff; border-bottom: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; display: block; }
.word { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.sub { font-size: 11px; color: var(--mute); font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--line2); }
.crumb { font-weight: 600; color: var(--ink2); }
.crumb b { color: var(--ink); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.org { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.org i { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
footer { position: fixed; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: center; gap: 12px; padding: 0 20px;
  font-size: 11px; color: var(--mute); background: rgba(255, 255, 255, .85); border-top: 1px solid var(--line); z-index: 15; }
footer .ex { font-weight: 700; color: #8A5A00; background: var(--amber-50); border: 1px solid #F6DFB5; border-radius: 6px; padding: 2px 8px; }
footer .sp { margin-left: auto; }
main.app { position: fixed; top: 56px; bottom: 30px; left: 0; right: 0; display: grid; gap: 14px; padding: 14px 16px; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-height: 0; }
.eyebrow { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--mute); }
.h { margin: 4px 0 6px; font-size: 16px; letter-spacing: -.02em; line-height: 1.25; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--grey-50); color: #5F6D82; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.blue { background: var(--blue-50); color: #2456D6; } .chip.green { background: var(--green-50); color: #12804D; }
.chip.amber { background: var(--amber-50); color: var(--amber); } .chip.red { background: var(--red-50); color: var(--red); }
.chip.ink { background: #E7EBF1; color: var(--ink2); }
.btn { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(45, 107, 228, .28); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 6px; }
.tabs button { border: 0; background: none; padding: 10px 10px 11px; font-weight: 650; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 6px; align-items: center; }
.tabs button span { font-size: 10.5px; background: var(--grey-50); border-radius: 999px; padding: 1px 6px; }
.tabs button.on { color: var(--ink); border-color: var(--blue); }
.tabs button.on span { background: var(--blue-50); color: var(--blue); }
.bar { height: 7px; border-radius: 4px; background: #E8EEF6; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); transition: width .5s ease; }
.bar.green i { background: var(--green); }
.scroll { overflow: auto; min-height: 0; }
.scroll::-webkit-scrollbar { width: 6px; } .scroll::-webkit-scrollbar-thumb { background: #D6E0EC; border-radius: 3px; }
.swap { animation: swap .25s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: #FFF3C4; } 100% { background: transparent; } }
#toast { position: fixed; left: 50%; top: 68px; transform: translate(-50%, -10px); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 9px; font-weight: 600; opacity: 0; transition: .25s; z-index: 40; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.photo-svg { display: block; width: 100%; height: 100%; }
