/* Colours: change these to rebrand the app */
:root { --brand: #17944a; --brand-dark: #0b5e2e; --bg: #f3f7f4; --card: #ffffff; --text: #17251c; --muted: #5d6b62; --line: #d5e0d8; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.4 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.bar h1 { margin: 0; font-size: 22px; }
.icon { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 18px; font-weight: 700; }
.tabs { display: flex; gap: 8px; padding: 12px 16px 0; }
.tab { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font: inherit; font-weight: 600; }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
main { padding: 4px 16px calc(env(safe-area-inset-bottom) + 24px); }
.panel { background: var(--card); border-radius: 18px; padding: 16px; margin-top: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
textarea, input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: inherit; background: #fbfdfb; }
textarea[readonly] { background: #eef5f0; font-family: ui-monospace, Menlo, monospace; font-size: 14px; word-break: break-all; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
button { font: inherit; }
.primary { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; }
.ghost { padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--brand-dark); }
.ghost.small { margin-top: 8px; padding: 6px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions button { flex: 1 1 30%; padding: 10px; border: 1px solid var(--brand); border-radius: 12px; background: #fff; color: var(--brand-dark); font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translateX(-50%); background: rgba(20,30,24,.92); color: #fff; padding: 10px 18px; border-radius: 22px; z-index: 20; max-width: 90vw; text-align: center; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--card); border-radius: 22px 22px 0 0; padding: 20px 20px calc(env(safe-area-inset-bottom) + 20px); max-width: 600px; width: 100%; }
.sheet h2 { margin-top: 0; }
[hidden] { display: none !important; }
