/* George's Bike Repairs — mock-up styles. One scheme: deep workshop green, warm amber highlights, neutral greys. */
:root {
  --brand: #0e5a4a;
  --brand-dark: #093f34;
  --brand-tint: #e5f1ed;
  --accent: #f2a93b;
  --accent-tint: #fdf1dc;
  --ink: #1b2422;
  --muted: #4f5d59;
  --line: #d5dedb;
  --bg: #f4f6f5;
  --card: #ffffff;
  --danger: #a8231b;
  --danger-tint: #fbe9e7;
  --ok: #1d6b35;
  --ok-tint: #e3f3e7;
  --info: #1f4f8a;
  --info-tint: #e6eef8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .06), 0 2px 8px rgba(16, 40, 34, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; line-height: 1.5;
  padding-bottom: 72px; /* Workbench bar sits in the bottom 48px */
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 640px; }
main { padding: 1.5rem 0 2rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }

/* Mock strip + header */
.mockbar { background: var(--ink); color: #fff; font-size: .85rem; }
.mockbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.mockbar a { color: #fff; display: inline-flex; gap: .35rem; align-items: center; text-decoration: none; font-weight: 600; }
.mockbar a:hover { text-decoration: underline; color: #fff; }
.site-head { background: var(--brand); color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.logo .ic { width: 24px; height: 24px; }
.pub-nav a { color: #fff; font-weight: 600; text-decoration: none; padding: .5rem .25rem; }
.pub-nav a:hover { text-decoration: underline; color: #fff; }
.who { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.linkish { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: .4rem; }
.staff-nav { background: var(--brand-dark); }
.staff-nav .wrap { display: flex; gap: .25rem; overflow-x: auto; }
.staff-nav a { color: #e3efeb; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .75rem .85rem; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.staff-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.staff-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.badge { background: var(--accent); color: var(--ink); border-radius: 999px; font-size: .78rem; padding: 0 .45rem; min-width: 1.4rem; text-align: center; font-weight: 700; }

/* Cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .side { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; } }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem; font-weight: 600; text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .65rem 1.2rem; border-radius: 10px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand); }
.btn.secondary:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger.secondary { background: #fff; color: var(--danger); }
.btn.danger.secondary:hover { background: var(--danger-tint); }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.1rem; }
.btn.small { min-height: 40px; padding: .35rem .8rem; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* Forms */
label, .label { display: block; font-weight: 600; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; display: block; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #9aa8a4; border-radius: 8px; padding: .6rem .7rem; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--accent); outline-offset: 0; }
.field { margin-bottom: 1rem; }
.field.err input, .field.err textarea { border-color: var(--danger); }
.err-msg { color: var(--danger); font-weight: 600; font-size: .92rem; margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }
.inline-fields { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }

/* Status pills */
.pill { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.st-provisional { background: #eceff1; color: #3c474b; }
.st-confirmed { background: var(--info-tint); color: var(--info); }
.st-in_progress { background: var(--accent-tint); color: #6b4300; }
.st-ready { background: var(--ok-tint); color: var(--ok); }
.st-collected { background: #eceff1; color: #3c474b; }
.st-cancelled { background: var(--danger-tint); color: var(--danger); }
.paid { display: inline-flex; gap: .3rem; align-items: center; color: var(--ok); font-weight: 700; font-size: .92rem; }
.unpaid { display: inline-flex; gap: .3rem; align-items: center; color: var(--danger); font-weight: 700; font-size: .92rem; }

/* Notices */
.notice { border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1rem; display: flex; gap: .7rem; align-items: flex-start; border: 1px solid; }
.notice .ic { margin-top: .1rem; }
.notice.info { background: var(--info-tint); border-color: #bcd0ea; color: #173d6b; }
.notice.ok { background: var(--ok-tint); border-color: #b7dcc1; color: #164f28; }
.notice.warn { background: var(--accent-tint); border-color: #f0d19c; color: #5c3a00; }
.notice.bad { background: var(--danger-tint); border-color: #efc0bb; color: #7d1a14; }
.notice p:last-child { margin: 0; }

/* Public: shop */
.hero { background: var(--brand); color: #fff; padding: 1.5rem 0 2rem; }
.hero h1 { font-size: 2rem; }
.hero p { color: #e3efeb; font-size: 1.08rem; max-width: 36rem; }
.group-head { display: flex; gap: .75rem; align-items: center; margin: 1.75rem 0 .75rem; }
.group-head .bubble { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); flex: none; }
.group-head h2 { margin: 0; }
.group-head p { margin: 0; color: var(--muted); }
.svc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: border-color .15s; }
.svc:hover { border-color: var(--brand); color: var(--ink); }
.svc h3 { margin-bottom: .25rem; }
.svc p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc .foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 700; }
.svc .go { color: var(--brand); display: inline-flex; align-items: center; gap: .3rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }

/* Booking flow */
.steps { display: flex; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.steps li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.on { background: var(--brand); }
.step-label { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: .25rem; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .6rem; margin-bottom: .5rem; }
.day { flex: none; min-width: 84px; padding: .55rem .5rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; text-align: center; font: inherit; color: var(--ink); cursor: pointer; line-height: 1.25; }
.day b { display: block; font-size: 1.25rem; }
.day small { display: block; color: var(--muted); font-size: .8rem; }
.day[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.day[aria-pressed="true"] small { color: #e3efeb; }
.day[disabled] { background: #eef1f0; color: #6c7774; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.slot { min-height: 50px; border: 2px solid var(--brand); color: var(--brand); background: #fff; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.slot:hover { background: var(--brand-tint); }
.slot[aria-pressed="true"] { background: var(--brand); color: #fff; }
.slot[disabled] { border-color: var(--line); color: #6c7774; background: #eef1f0; cursor: not-allowed; font-weight: 400; }
.slot[disabled] s { text-decoration-thickness: 1px; }
.slot small { display: block; font-size: .72rem; font-weight: 600; }
.daylist { display: grid; gap: .5rem; }
.dayopt { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 56px; padding: .6rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.dayopt:hover { border-color: var(--brand); }
.dayopt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.dayopt .left { color: var(--muted); font-size: .9rem; }
.summary { width: 100%; border-collapse: collapse; }
.summary th, .summary td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 1rem; }
.summary tr:last-child th, .summary tr:last-child td { border-bottom: 0; }
.total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; padding: .75rem 0 0; }
.photo-drop { border: 2px dashed #9aa8a4; border-radius: 10px; padding: 1rem; text-align: center; background: #fafbfb; }
.photo-drop img, .req-photo { max-width: 100%; border-radius: 8px; display: block; margin: 0 auto; }
.photo-drop img { max-height: 240px; margin-bottom: .75rem; }

/* Pretend Stripe page */
.pay-page { background: #f6f8fa; }
.pay-shell { max-width: 980px; margin: 0 auto; display: grid; gap: 0; }
@media (min-width: 820px) { .pay-shell { grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); } }
.pay-left { padding: 2rem 1.5rem; }
.pay-right { padding: 2rem 1.5rem; background: #fff; box-shadow: -1px 0 0 #e3e8ee; }
.pay-amount { font-size: 2.2rem; font-weight: 800; margin: .25rem 0 1rem; }
.pay-merchant { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: 1.5rem; }
.pay-merchant .logo { width: 30px; height: 30px; }
.pay-merchant .logo .ic { width: 18px; height: 18px; }
.cardbox { border: 1px solid #c4ccd5; border-radius: 8px; overflow: hidden; }
.cardbox input { border: 0; border-radius: 0; border-bottom: 1px solid #c4ccd5; }
.cardbox .two { display: grid; grid-template-columns: 1fr 1fr; }
.cardbox .two input { border-bottom: 0; }
.cardbox .two input + input { border-left: 1px solid #c4ccd5; }
.paybtn { background: #3a3fcf; border-color: #3a3fcf; }
.paybtn:hover { background: #2c30a8; border-color: #2c30a8; }
.powered { text-align: center; color: #5b6573; font-size: .85rem; margin-top: 1rem; }

/* Confirmation + status tracker */
.big-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.big-tick .ic { width: 36px; height: 36px; }
.linkbox { display: flex; gap: .5rem; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; word-break: break-all; font-size: .92rem; }
.tracker { list-style: none; margin: 1rem 0; padding: 0; }
.tracker li { position: relative; padding: 0 0 1.25rem 2.6rem; min-height: 2.2rem; }
.tracker li::before { content: ""; position: absolute; left: .9rem; top: 1.9rem; bottom: .1rem; width: 3px; background: var(--line); }
.tracker li:last-child::before { display: none; }
.tracker .dot { position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: grid; place-items: center; }
.tracker .done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tracker .done::before { background: var(--brand); }
.tracker .now .dot { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.tracker .now b { font-size: 1.1rem; }
.tracker .dot .ic { width: 1rem; height: 1rem; }
.tracker small { display: block; color: var(--muted); }

/* Staff: today */
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.counts { display: flex; gap: .5rem; flex-wrap: wrap; }
.count { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-weight: 600; font-size: .9rem; }
.sec-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.5rem 0 .6rem; display: flex; gap: .4rem; align-items: center; }
.job { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--info); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; box-shadow: var(--shadow); display: grid; gap: .75rem; }
@media (min-width: 720px) { .job { grid-template-columns: 90px 1fr 220px; align-items: center; } }
.job.s-in_progress { border-left-color: var(--accent); }
.job.s-ready { border-left-color: var(--ok); }
.job.s-collected { border-left-color: #9aa5a8; opacity: .72; }
.job .time { font-size: 1.35rem; font-weight: 800; }
.job .time small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.job h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.job h3 a { color: var(--ink); text-decoration: none; }
.job h3 a:hover { text-decoration: underline; }
.job .meta { color: var(--muted); font-size: .95rem; }
.job .act { display: grid; gap: .4rem; }
.job .btn { min-height: 56px; font-size: 1.05rem; }
.done-note { display: flex; gap: .4rem; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; min-height: 56px; }

.list-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: #f8faf9; }
.cap { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; }
.cap i { display: block; height: 100%; background: var(--brand); }
.cap.full i { background: var(--danger); }

/* Requests */
.req-item { display: flex; gap: .9rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); margin-bottom: .5rem; }
.req-item:hover, .req-item[aria-current="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand); flex: none; }
.money-in { position: relative; }
.money-in span { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.money-in input { padding-left: 1.7rem; }

/* Tabs (settings, messages) */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a, .tabs button { padding: .7rem 1rem; text-decoration: none; font-weight: 700; color: var(--muted); border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.svc-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.svc-row.off { opacity: .6; }
.tag { display: inline-block; background: var(--brand-tint); color: var(--brand-dark); border-radius: 6px; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .5rem .75rem; align-items: center; }
.hours-grid .h { font-weight: 700; color: var(--muted); font-size: .85rem; }
@media (max-width: 520px) { .hours-grid { grid-template-columns: 1fr 1fr; } .hours-grid .dname { grid-column: 1 / -1; margin-top: .5rem; } .hours-grid .h { display: none; } }

/* Messages */
.msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; }
.msg .head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.msg .chan { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; color: var(--ink); }
.bubble-sms { background: #e9ecef; border-radius: 18px 18px 18px 4px; padding: .7rem .9rem; max-width: 34rem; }
.bubble-sms a { word-break: break-all; }
.email-body { border-left: 4px solid var(--brand); padding-left: .8rem; }
.email-body .btn { margin-top: .5rem; }

/* Index (journeys) */
.journey { display: flex; flex-direction: column; }
.journey ol { padding-left: 1.2rem; margin: .25rem 0 1rem; color: var(--muted); flex: 1; }
.journey .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; margin-right: .5rem; }
.screens { columns: 2 240px; padding-left: 1.2rem; }
.screens li { margin-bottom: .35rem; break-inside: avoid; }

/* Toast — sits above the Workbench bar */
.toast { position: fixed; left: 50%; bottom: 64px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 10px; display: flex; gap: .6rem; align-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: all .2s; max-width: calc(100% - 2rem); z-index: 40; font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ic { color: #8fe0a8; }

footer.site-foot { border-top: 1px solid var(--line); padding: 1.25rem 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 520px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.65rem; }
  .card { padding: 1rem; }
  .inline-fields { grid-template-columns: 1fr; }
  .who span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
