/* Tide Care Go: caregiver app. Phone-first; on a desktop it renders in a phone-sized column. */
body { background: #e9eef6; }
.phone-wrap { min-height: 100vh; display: flex; justify-content: center; }
.phone { width: 100%; max-width: 430px; min-height: 100vh; background: var(--bg); position: relative; display: flex; flex-direction: column; }
@media (min-width: 600px) {
  .phone-wrap { padding: 24px 0; }
  .phone { min-height: calc(100vh - 48px); border-radius: 28px; box-shadow: 0 20px 60px rgba(11, 31, 58, .18); overflow: hidden; border: 1px solid #d5ddea; }
}
.go-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.go-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.go-top .brand img { height: 22px; }
.go-top .me { color: inherit; text-decoration: none; border: 0; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px 3px 3px; display: flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 600; font-size: 13px; }
.go-top .me .av { width: 26px; height: 26px; font-size: 11px; }
main.view { flex: 1; padding: 6px 16px 96px; display: grid; gap: 14px; align-content: start; }
.tabs { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); margin-top: auto; }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 10px; position: relative; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--blue); }
.tabs a .dot { position: absolute; top: 3px; right: calc(50% - 18px); min-width: 16px; height: 16px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.hello h1 { font-size: 24px; }
.hello p { color: var(--muted); margin-top: 2px; }
.next { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
.next.live { background: linear-gradient(160deg, #1666fe, #0f52d6); color: #fff; border: 0; }
.next.live .muted, .next.live small { color: #d4e2ff; }
.next .eyebrow { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.next.live .eyebrow { color: #d4e2ff; }
.next .who { display: flex; gap: 12px; align-items: center; }
.next .who h2 { font-size: 20px; }
.next .addr { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.next.live .addr { color: #eaf1ff; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick .btn { padding: 10px; }
.next.live .btn:not(.primary) { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.next.live .btn.primary { background: #fff; color: var(--blue); border-color: #fff; }
.msg { background: #fff8eb; border: 1px solid #fde6b8; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #6a4404; display: grid; gap: 4px; }
.msg b { color: #4d3103; }
.sec-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.li:last-child { border-bottom: 0; }
.li:hover { background: #f8faff; text-decoration: none; }
.li .when { width: 54px; flex: none; font-weight: 700; font-size: 15px; line-height: 1.1; }
.li .when small { display: block; font-size: 11px; font-weight: 600; }
.li .what { flex: 1; min-width: 0; }
.li .what b { display: block; }
.li .what span { font-size: 12px; color: var(--muted); }
.chev { color: #b4bfcf; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.status-line { display: flex; gap: 12px; align-items: flex-start; }
.status-line .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.status-line .ic svg { width: 20px; height: 20px; }
.status-line b { display: block; font-size: 15px; }
.status-line span { font-size: 13px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--muted-bg); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 4px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.demo-box { border: 1px dashed #c5b5f5; background: #faf8ff; border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.demo-box .lbl { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6941c6; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yn button { padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.yn button.on { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.task { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; user-select: none; }
.task:last-child { border-bottom: 0; }
.task .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #c3ccd9; display: grid; place-items: center; flex: none; background: #fff; }
.task.done .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.done .lbl { color: var(--muted); text-decoration: line-through; }
.task .req { font-size: 11px; font-weight: 700; color: var(--warn); text-transform: uppercase; letter-spacing: .04em; margin-left: auto; }
.timer { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.shift { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.shift.offered { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.pay-big { font-size: 40px; font-weight: 750; letter-spacing: -0.02em; }
.banner { border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 500; }
.signin { padding: 32px 20px; display: grid; gap: 18px; }
.signin .logo { height: 40px; }
.signin .btn.lg svg, .pk-nudge svg { width: 20px; height: 20px; flex: none; }
.signin .btn.lg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pk-nudge { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; margin-bottom: 12px; }
.pk-hero { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.pk-hero svg { width: 34px; height: 34px; }

/* v0.2: task outcomes, care plan, documentation, messages, Me */
.task .lbl { flex: 1; min-width: 0; }
.task .why { display: block; font-size: 12px; color: var(--warn); font-weight: 600; text-decoration: none; }
.task.missed .box { background: #fff4e5; border-color: var(--warn); color: var(--warn); }
.task .more { border: 0; background: transparent; font-size: 20px; line-height: 1; padding: 2px 6px; color: var(--muted); border-radius: 8px; cursor: pointer; }
.task .more:hover { background: var(--muted-bg); }
.task.static { cursor: default; }
.task .req + .more { margin-left: 4px; }
.task .badge + .req { margin-left: 6px; }
.task .lbl + .badge { margin-left: auto; }
.plan-flag { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-50); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #123c8c; }
.plan-flag svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.panel.plan .list { border-radius: 12px; }
.cq { display: grid; grid-template-columns: 1fr 128px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.cq:last-of-type { border-bottom: 0; }
.yn.sm button { padding: 7px; font-size: 13px; }
.yn button.on.yes { border-color: var(--bad); background: #fff1f0; color: var(--bad); }
.sigbox { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; overflow: hidden; }
.sigbox canvas { display: block; width: 100%; cursor: crosshair; }
.sigline { position: absolute; left: 16px; right: 16px; bottom: 22%; border-top: 1px dashed #c3ccd9; font-size: 11px; color: var(--muted); padding-top: 2px; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.attest { background: #f6f9ff; border-color: #cfdcf7; }
.attest .check { align-items: flex-start; font-size: 13px; line-height: 1.45; }
.attest .check input { margin-top: 3px; }
.panel .kv { grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.bad-mark { color: var(--bad); font-weight: 700; }
.thread { display: grid; gap: 8px; align-content: start; max-height: calc(100vh - 300px); overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 82%; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 14px; overflow-wrap: anywhere; }
.bubble > div { white-space: pre-wrap; }
.bubble.mine { justify-self: end; background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble .who { display: block; font-weight: 700; font-size: 11px; color: var(--muted); }
.bubble .meta { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.bubble.mine .meta { color: #d4e2ff; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; position: sticky; bottom: 0; background: var(--bg); padding: 6px 0; }
.composer textarea { min-height: 44px; resize: none; }
.li.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--blue); margin-right: 6px; vertical-align: 1px; }
.prefs { width: 100%; border-collapse: collapse; font-size: 13px; }
.prefs th { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding-bottom: 6px; }
.prefs td { padding: 7px 0; border-top: 1px solid var(--line-2); }
.prefs td:not(:first-child) { text-align: center; width: 54px; }
.prefs input { width: 18px; height: 18px; accent-color: var(--blue); }
.avail-row { display: grid; grid-template-columns: 1fr 96px 96px; gap: 8px; align-items: center; }
.avail-row .in { padding: 7px 8px; }
.hello.row { display: flex; gap: 12px; align-items: center; }
.li.panel { display: flex; padding: 12px 14px; }
