/* Handy Pros client app — light only, large type, big touch targets (WCAG 2.2 AA). */
:root { color-scheme: light; --bg:#f4f7fa; --surface:#fff; --border:#c9d5df; --border-strong:#93a5b4; --text:#121c27; --muted:#47525e; --primary:#0f3b5c; --primary-hover:#0b2c45;
  --accent:#c2410c; --accent-bg:#fff1e8; --done:#1f6b35; --done-bg:#e3f3e7; --info-bg:#e3edf6; --danger:#9b1c1c; --focus:#c2410c; --radius:16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 19px/1.55 'Satoshi', 'Helvetica Neue', Arial, sans-serif; min-height: 100dvh; }
h1, h2, h3 { font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: #075075; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border: 2px solid var(--primary); border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
.top__in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top img { width: 104px; height: auto; display: block; }
.top__actions { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 14px; border: 2px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text); font: 700 1rem 'Satoshi', sans-serif; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--border-strong); }

main { max-width: 760px; margin: 0 auto; padding: 22px 16px calc(110px + env(safe-area-inset-bottom)); }
.app[data-auth="out"] main { padding-bottom: 60px; }
.hello { margin-bottom: 18px; }
.hello p { color: var(--muted); margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 3px 12px rgba(15,30,45,.05); margin-bottom: 16px; }
.card > h2 { margin-bottom: 12px; }
.card--accent { border: 2px solid var(--accent); background: var(--accent-bg); }
.card--done { border: 2px solid var(--done); background: var(--done-bg); }
.muted { color: var(--muted); }
.mt { margin-top: 16px; } .mt-s { margin-top: 10px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; min-height: 104px; padding: 16px; border-radius: var(--radius); text-decoration: none;
  border: 2px solid var(--border); background: #fff; color: var(--text); font: 700 1.1rem 'Satoshi', sans-serif; }
.tile svg { width: 28px; height: 28px; }
.tile--p { background: var(--primary); border-color: var(--primary); color: #fff; }
.tile--p:hover { background: var(--primary-hover); }
.tile:hover { border-color: var(--border-strong); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 22px; font: 700 1.05rem 'Satoshi', sans-serif; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--p { background: var(--primary); color: #fff; } .btn--p:hover { background: var(--primary-hover); }
.btn--a { background: var(--accent); color: #fff; } .btn--a:hover { background: #9a3412; }
.btn--g { background: #fff; color: var(--text); border-color: var(--border-strong); } .btn--g:hover { background: #f4f7fa; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 700 1rem 'Satoshi', sans-serif; color: #075075; text-decoration: underline; cursor: pointer; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.item__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.item__title { font-weight: 700; font-size: 1.1rem; }
.item__sub { color: var(--muted); font-size: 1rem; }
.item .row { margin-top: 8px; }
.when { display: flex; gap: 14px; align-items: center; }
.cal { flex: none; width: 64px; text-align: center; border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; }
.cal b { display: block; background: var(--primary); color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 0; }
.cal span { display: block; font: 700 1.6rem/1.3 'Archivo', sans-serif; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--info-bg); color: var(--primary); white-space: nowrap; }
.pill--ok { background: var(--done-bg); color: var(--done); } .pill--due { background: var(--accent-bg); color: #9a3412; } .pill--no { background: #eef0f2; color: #374151; }

.field { margin-bottom: 16px; }
label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-weight: 500; color: var(--muted); font-size: .95rem; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], select, textarea { width: 100%; min-height: 56px; padding: 12px 14px; font: inherit; color: var(--text);
  border: 2px solid var(--border-strong); border-radius: 12px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
input.code { font: 700 1.8rem 'Archivo', sans-serif; letter-spacing: .35em; text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; padding: 8px 0; }
.check input { width: 26px; height: 26px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.err { color: var(--danger); font-weight: 700; margin: 0 0 12px; }
.ok { color: var(--done); font-weight: 700; }
.note { padding: 14px 16px; background: #f4f7fa; border-radius: 12px; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.photos img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.big-money { font: 700 2rem 'Archivo', sans-serif; }
.steps { margin: 10px 0 0; padding-left: 1.3em; } .steps li { margin: 6px 0; }
.lang { min-width: 64px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px 4px max(6px, env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; text-decoration: none; color: var(--muted); font: 700 .85rem 'Satoshi', sans-serif; border-radius: 12px; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { color: var(--primary); background: var(--info-bg); }
.app[data-auth="out"] .tabbar, .app[data-auth="out"] .top__actions .signed { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #121c27; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); z-index: 30; }
.toast.on { opacity: 1; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Oct 2026: match the handypros.org look (white, navy buttons, blue H) and add photos + password sign-in. */
:root { --bg:#fff; --surface:#fff; --border:#e1e5ea; --border-strong:#aab4bf; --text:#1f2022; --muted:#5b636d; --primary:#07344a; --primary-hover:#052636;
  --accent:#0b6e99; --accent-bg:#eaf6fc; --info-bg:#eaf6fc; --focus:#0b6e99; }
h1, h2, h3 { font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; }
.card { box-shadow: 0 1px 2px rgba(16,24,32,.04), 0 4px 16px rgba(16,24,32,.06); }
.card--accent { border-color: #b9e3f5; background: #f4fbfe; }
.top .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.15rem 'Satoshi', sans-serif; }
.top .brand img { width: 40px; height: 40px; border-radius: 10px; }
.pics { margin-top: 14px; }
.pics__h { font-weight: 700; margin-bottom: 8px; }
.pics__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pic { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #f6f7f9; aspect-ratio: 4 / 3; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic__tag { position: absolute; left: 8px; top: 8px; padding: 4px 12px; border-radius: 999px; font: 700 .95rem 'Satoshi', sans-serif; background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pic__tag--after { background: #07344a; color: #fff; }
.pics .hint { margin-top: 6px; }
@media (max-width: 380px) { .pics__grid { grid-template-columns: 1fr; } }
