/* ============================================================
   SoloMaid design system v0.1  (Sprint 0, 2026-07-30)
   Human-readable law: app/design/PRINCIPLES.md
   This file is not throwaway — it seeds the real app's front end.
   ============================================================ */

:root {
  /* Ink */
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #a29d96;
  /* Surfaces */
  --paper: #f7f5f2;
  --card: #ffffff;
  --line: #e8e3dc;
  --line-soft: #f0ece6;
  /* Brand */
  --brand: #0e6b5c;
  --brand-deep: #0a574b;
  --brand-soft: #e9f3f0;
  --brand-soft-line: #d3e6e0;
  /* Semantic */
  --confirm: #15803d;
  --confirm-soft: #eaf6ee;
  --attention: #b45309;
  --attention-soft: #fdf1de;
  --urgent: #b91c1c;
  --urgent-soft: #fdecec;
  /* Shape */
  --r-card: 16px;
  --r-btn: 14px;
  --shadow-card: 0 1px 2px rgba(28, 25, 23, 0.05), 0 2px 8px rgba(28, 25, 23, 0.05);
  --shadow-raised: 0 2px 6px rgba(28, 25, 23, 0.08), 0 8px 24px rgba(28, 25, 23, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #e7e3dd;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ---------- The phone ---------- */

.phone {
  max-width: 393px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 480px) {
  body { padding: 28px 16px; }
  .phone {
    border-radius: 40px;
    border: 10px solid #26221f;
    box-shadow: 0 24px 60px rgba(28, 25, 23, 0.35);
    overflow: hidden;
    height: 830px;
    min-height: 0;
  }
  .phone .app { overflow-y: auto; scrollbar-width: none; }
  .phone .app::-webkit-scrollbar { display: none; }
}

/* ---------- Status bar ---------- */

.statusbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  background: linear-gradient(180deg, var(--paper) 75%, rgba(247, 245, 242, 0));
  font-size: 15px;
  font-weight: 600;
}

.statusbar .glyphs { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.statusbar svg { display: block; }

/* ---------- Screen scaffold ---------- */

.app {
  flex: 1;
  padding: 6px 16px 110px;
}

.screen-head { padding: 10px 4px 2px; }
.screen-head .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.screen-head h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 4px 8px;
}

/* ---------- Chips ---------- */

.chip-row { display: flex; gap: 7px; flex-wrap: wrap; padding: 12px 0 4px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.chip strong { color: var(--ink); font-weight: 700; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.status-chip.ok { color: var(--confirm); background: var(--confirm-soft); }
.status-chip.warn { color: var(--attention); background: var(--attention-soft); }
.status-chip.bad { color: var(--urgent); background: var(--urgent-soft); }
.status-chip.info { color: var(--brand); background: var(--brand-soft); }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
}

/* Solo speaking */
.solo-card {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.solo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.solo-tag .spark { font-size: 12px; }
.solo-card p { font-size: 15px; line-height: 1.5; color: var(--ink); }
.solo-card p + p { margin-top: 6px; }

/* Pinned Solo bar (variant B — always-visible advisor) */
.solo-bar {
  position: sticky;
  top: 42px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 8px;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.solo-bar .solo-tag { margin-bottom: 0; flex: none; }
.solo-bar .sb-line {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--ink-2);
}
.solo-bar .sb-chev { color: var(--brand); flex: none; display: flex; }
.solo-bar .sb-chev svg { transition: transform 0.15s ease; }
.phone.solo-open .sb-chev svg { transform: rotate(180deg); }
.solo-bar.fresh {
  background: var(--brand-soft);
  border-color: var(--brand-soft-line);
  animation: soloPulse 1.5s ease 1;
}
.solo-bar .sb-new { display: none; }
.solo-bar.fresh .sb-new { display: inline-block; }
.phone.solo-open .solo-bar {
  background: var(--brand-soft);
  border-color: var(--brand-soft-line);
  border-radius: 12px 12px 0 0;
}
.phone.solo-open .solo-bar .sb-line { visibility: hidden; }
.solo-drop {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  z-index: 64;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 0 15px 13px;
  box-shadow: var(--shadow-raised);
  display: none;
  text-align: left;
}
.phone.solo-open .solo-drop { display: block; }
.solo-drop p { font-size: 15px; line-height: 1.5; color: var(--ink); }

/* "New from Solo" signal */
.solo-new {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 2px;
  display: none;
}
@keyframes soloPulse {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 4px rgba(14, 107, 92, 0.2); }
}
.ph-hint { width: 100%; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--r-btn);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.06s ease;
}
.btn:active { transform: scale(0.985); filter: brightness(0.96); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #107968, var(--brand-deep));
  box-shadow: 0 2px 8px rgba(14, 107, 92, 0.28);
}
.btn-secondary {
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
}
.btn-small {
  min-height: 44px;
  font-size: 15px;
  width: auto;
  padding: 0 18px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--brand-soft-line);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Tab bar ---------- */

.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(14px + env(safe-area-inset-bottom));
  margin-top: auto;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
  text-decoration: none;
  position: relative;
  padding-top: 4px;
}
.tab svg { width: 26px; height: 26px; }
.tab.active { color: var(--brand); }
.tab .badge {
  position: absolute;
  top: 0;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--urgent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

/* ---------- Job cards (Today) ---------- */

.job { padding: 0; overflow: hidden; }

.job-main { padding: 16px; }

.job-toprow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.job-time { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.job-name { font-size: 18px; font-weight: 700; margin-top: 2px; }
.job-sub { font-size: 14.5px; color: var(--ink-2); margin-top: 1px; }

.addr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.addr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  color: var(--ink-2);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addr svg { flex: none; }

.details {
  margin-top: 12px;
  background: #faf8f5;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 4px 12px;
}
.detail-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 15.5px;
}
.detail-row + .detail-row { border-top: 1px solid var(--line-soft); }
.detail-row .ic { flex: none; width: 22px; text-align: center; }

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 8px;
}
.pay-amount { font-size: 18px; font-weight: 800; }

.job-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding: 12px 16px 14px;
  background: #fcfbf9;
}
.job-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: inherit;
  cursor: pointer;
  padding: 6px 2px;
}
.job-btn:active { transform: scale(0.97); }
.job-btn .emo { font-size: 20px; line-height: 1; }
.job-btn .lbl { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.job-btn.go { border-color: var(--brand-soft-line); background: var(--brand-soft); }
.job-btn.go .lbl { color: var(--brand); }

/* Collapsed job row */
.job-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 14px 16px;
}
.job-row.tappable { cursor: pointer; }
.job-row .chev { color: var(--ink-3); flex: none; transition: transform 0.15s ease; display: flex; }
.job-row .chev svg { width: 15px; height: 15px; }
.job.open .job-row .chev { transform: rotate(180deg); }
.job-expand { display: none; }
.job.open .job-expand { display: block; }
.job-expand .job-main { padding-top: 0; }

/* In-progress + done job states */
.job.inprog { border-color: var(--brand-soft-line); box-shadow: 0 0 0 1.5px var(--brand), var(--shadow-card); }
.inprog-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 750;
  color: var(--brand);
}
.inprog-bar.done-bar {
  background: #efece6;
  border-color: var(--line-soft);
  color: var(--ink-2);
  font-weight: 650;
}
.job.done { background: #f4f1eb; border-color: var(--line); box-shadow: none; }
.job.resched { background: #fdf8ee; border-color: #f0dfbd; }
.job.done .job-row { opacity: 0.9; }

/* Job photos */
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.photo-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ph {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .tag {
  position: absolute;
  left: 4px; bottom: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(28, 25, 23, 0.72);
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
}
.ph .star {
  position: absolute;
  top: 3px; right: 3px;
  width: 24px; height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
/* glove-friendly invisible hit area (principle #4) */
.ph .star::before { content: ""; position: absolute; inset: -11px; }
.ph .star.on { color: #d97706; }
.job.done .job-buttons { background: transparent; }
.job-row .when {
  flex: none;
  width: 48px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}
.job-row .when small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.job-row .who { flex: 1; min-width: 0; }
.job-row .nm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 6px;
  flex-wrap: wrap;
}
.job-row .nm {
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.job-row .nm-row .status-chip { flex: none; font-size: 11.5px; padding: 3px 6px; }
.job-row .svc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Bottom sheet (job sheet, request sheet) ---------- */

.scrim {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(28, 25, 23, 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(28, 25, 23, 0.25);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0s linear 0.22s;
  max-height: 88%; overflow-y: auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.phone.sheet-open .scrim { opacity: 1; pointer-events: auto; }
.phone.sheet-open .sheet {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.22s ease;
}
.sheet .handle { width: 40px; height: 4.5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }

/* ---------- Forms ---------- */

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.choice.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 750;
}

/* ---------- Utility ---------- */

.muted { color: var(--ink-3); font-size: 14px; }
.spacer-8 { height: 8px; }
.spacer-16 { height: 16px; }

/* ---------- Screen header row + icon button ---------- */

.h1-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--brand);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

/* ---------- Day groups (Schedule) ---------- */

.day-head {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 20px 4px 8px;
}
.day-head strong { color: var(--ink); }
.day-head .sum { float: right; font-weight: 700; color: var(--ink-2); text-transform: none; letter-spacing: 0; }

/* ---------- Booking photo gallery ---------- */

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 8px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  flex: none;
  width: 232px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
  background: var(--card);
}
.shot img { width: 100%; height: 150px; object-fit: cover; display: block; }
.shot .tag {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(28, 25, 23, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.shot.more {
  width: 96px; height: 152px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
}

/* ---------- Month calendar (Schedule) ---------- */

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
}
.cal-title { font-size: 17px; font-weight: 800; }
.cal-arrow {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--brand);
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 12px 0 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-day {
  aspect-ratio: 0.92;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.cal-day .d { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1; }
.cal-day .dots { display: flex; gap: 2.5px; min-height: 5px; }
.cal-day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); display: block; }
.cal-day:not(.dim) { cursor: pointer; }
.cal-day.dim { opacity: 0.4; background: transparent; border-color: transparent; }
.cal-day.sel { border: 2px solid var(--brand); background: var(--brand-soft); }
.cal-day.today .d { color: var(--brand); font-weight: 800; }

/* ---------- Inbox: thread list ---------- */

.t-row { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.ava {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
}
.ava.plain { background: #efece6; color: var(--ink-2); font-size: 20px; }
.t-mid { flex: 1; min-width: 0; }
.t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.t-nm { font-size: 16.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-time { flex: none; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.t-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.t-snip { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-snip .sp { color: var(--brand); font-weight: 700; }
.t-bot .status-chip { flex: none; font-size: 11.5px; padding: 3px 7px; }
.status-chip.mute { color: var(--ink-2); background: #efece6; }

/* ---------- Inbox: conversation ---------- */

.th-head { display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; }
.th-back {
  flex: none;
  display: flex; align-items: center;
  min-width: 44px; min-height: 44px;
  color: var(--brand);
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 750;
}
.th-who { flex: 1; min-width: 0; }
.th-nm { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg-day { text-align: center; font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin: 16px 0 8px; }
.msg { display: flex; margin: 6px 0; }
.msg .msg-wrap { display: flex; flex-direction: column; max-width: 82%; }
.msg.in { justify-content: flex-start; }
.msg.in .msg-wrap { align-items: flex-start; }
.msg.out { justify-content: flex-end; }
.msg.out .msg-wrap { align-items: flex-end; }
.msg .bub {
  padding: 10px 14px;
  font-size: 16px; line-height: 1.42;
  border-radius: 18px;
}
.msg.in .bub { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.out .bub { background: linear-gradient(180deg, #107968, var(--brand-deep)); color: #fff; border-bottom-right-radius: 6px; }
.msg .meta { font-size: 12px; color: var(--ink-3); margin: 3px 6px 0; }

/* "Sent automatically" marker — tappable, opens the kill-switch sheet */
.auto-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 4px;
  border: none; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 750;
  color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 3px 9px;
  position: relative;
}
.auto-tag::before { content: ""; position: absolute; inset: -8px; } /* glove hit area */

/* Centered system lines (Solo events, flags, quiet notes) */
.sys-line { display: flex; justify-content: center; margin: 12px 0; }
.sys-line .pillline {
  font-size: 13.5px; line-height: 1.45; font-weight: 600;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-radius: 14px; padding: 8px 13px;
  text-align: center; max-width: 94%;
}
.sys-line.flag .pillline { color: var(--urgent); background: var(--urgent-soft); border-color: #f6d2d2; }
.sys-line.plain .pillline { color: var(--ink-2); background: #efece6; border-color: var(--line-soft); }
.sys-line a { color: inherit; font-weight: 750; }

/* ---------- Inbox: Solo's draft (Send / Edit / Ignore) ---------- */

.draft-card {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-line);
  border-radius: var(--r-card);
  padding: 13px 14px;
  margin: 14px 0 4px;
}
.draft-card .d-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.draft-card .d-head .solo-tag { margin-bottom: 0; }
.draft-card .d-note { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.d-bub {
  background: var(--card);
  border: 1px solid var(--brand-soft-line);
  border-radius: 14px; border-bottom-right-radius: 6px;
  padding: 11px 14px;
  font-size: 16px; line-height: 1.45;
}
.d-bub textarea {
  width: 100%;
  border: none; outline: none; resize: vertical;
  font-family: inherit; font-size: 16px; line-height: 1.45;
  color: var(--ink); background: transparent;
  min-height: 110px;
}
.d-why { font-size: 13px; color: var(--ink-2); margin: 8px 2px 10px; }
.d-actions { display: flex; gap: 8px; }
.d-actions .btn { min-height: 52px; }
.d-actions .btn-send { flex: 1.5; }
.d-actions .btn-mini { flex: 1; font-size: 15.5px; }

/* ---------- Inbox: composer + quick-reply chips ---------- */

.composer { margin-top: 14px; }
.qchips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.qchip {
  border: 1.5px solid var(--brand-soft-line); background: var(--card);
  color: var(--brand);
  border-radius: 999px;
  min-height: 44px; padding: 8px 14px;
  font-family: inherit; font-size: 14.5px; font-weight: 650;
  cursor: pointer;
}
.compose-bar { display: flex; gap: 8px; align-items: center; }
.compose-bar input {
  flex: 1; min-width: 0;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 0 16px;
  outline: none;
}
.compose-bar input:focus { border-color: var(--brand); }
.compose-send {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #107968, var(--brand-deep));
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- "What's included" accordion ---------- */

.inc-toggle {
  background: none;
  border: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  padding: 7px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.inc-list { display: none; list-style: none; margin: 4px 0 2px; padding: 0; }
.inc-list li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 3px 0 3px 22px;
  position: relative;
}
.inc-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--confirm);
  font-weight: 800;
}
.svc-card.inc-open .inc-list { display: block; }
.svc-card.inc-open .inc-toggle .tw { transform: rotate(180deg); }
.inc-toggle .tw { transition: transform 0.15s ease; display: inline-block; }
