/* MeetMary web app. "Blue Mist": MeetMary navy and gold on a soft blue wash, the same as the iPhone app. */
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url(fonts/NunitoSans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-display: swap; src: url(fonts/NunitoSans-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url(fonts/NunitoSans-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-display: swap; src: url(fonts/NunitoSans-ExtraBold.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/Poppins-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.woff2) format('woff2'); }

:root {
  /* Words are near-black and a plain gray, the same as the iPhone app. The navys mark what you can tap and fill:
     buttons, links, icons, filled buttons and your chat bubbles. Quiet is for placeholders, chevrons and small x's. */
  --ink: #212429; --soft-ink: #545C66; --quiet: #878D94; --deep: #09216E; --brand: #09367A; --action: #064DF0; --link: var(--brand); --line: #DCE4F2;
  --canvas: #E9F0FA; --top: #D6E3F6; --bottom: #F1F5FB; --pale: #ECF6FF; --bubble: #D4E6F7; --partner-bubble: #C9DAF8;
  --gold: #E8A345; --gold-wash: #FCEBD2; --progress: #3DBF8C; --card: #FFFFFF; --green: #24634F; --amber: #874F1A;
  --shadow: 0 6px 22px rgba(10, 33, 112, .08), 0 1px 2px rgba(10, 33, 112, .05);
  --shadow-lift: 0 14px 40px rgba(10, 33, 112, .16);
  --radius: 22px; --radius-sm: 14px;
  --heading: 'Poppins', ui-rounded, system-ui, sans-serif; --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sidebar: 248px; --tabbar: 74px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--body); font-size: 16px; line-height: 1.45; color: var(--ink);
  background: linear-gradient(180deg, var(--top) 0, var(--bottom) 520px, var(--bottom) 100%) fixed, var(--bottom); -webkit-font-smoothing: antialiased; }
body.panel-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--link); }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(6, 77, 240, .45); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; display: block; }
.art { object-fit: contain; flex: none; display: block; }
.gold { color: var(--gold); }
.muted { color: var(--soft-ink); }
.amber { color: var(--amber); }
.green { color: var(--green); }
.wordmark { font-family: var(--heading); font-weight: 700; color: var(--brand); letter-spacing: -.02em; white-space: nowrap; }

/* App frame: a sidebar on wide screens, the iPhone's tab bar on narrow ones. */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px 20px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(18px); border-right: 1px solid rgba(220, 228, 242, .9); z-index: 20; }
.sidebar .wordmark { padding: 0 12px 22px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px; text-decoration: none; color: var(--soft-ink); font-weight: 700; font-size: 16px; border: 0; background: none; cursor: pointer; width: 100%; text-align: left; }
.nav-item img { width: 34px; height: 34px; }
.nav-item:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.nav-item.on { background: #fff; color: var(--link); box-shadow: var(--shadow); }
.nav-item .nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 12px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.sidebar-foot .nav-item { font-size: 15px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--soft-ink); font-size: 14px; }
.who .avatar-initials { width: 34px; height: 34px; }
.main { margin-left: var(--sidebar); min-height: 100vh; }
.tabbar { display: none; }
@media (max-width: 899px) {
  .sidebar { display: none; }
  /* A phone's notch or side strip (iPhone Duo, or any iPhone turned sideways) shows up as a side inset; pages and tabs stay clear of it. */
  .main { margin-left: 0; padding: 0 env(safe-area-inset-right) calc(var(--tabbar) + env(safe-area-inset-bottom)) env(safe-area-inset-left); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding: 6px calc(6px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(6px + env(safe-area-inset-left)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); border-top-left-radius: 26px; border-top-right-radius: 26px; box-shadow: 0 -4px 24px rgba(10, 33, 112, .08); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--soft-ink); font-size: 12px; font-weight: 700; border-radius: 18px; position: relative; }
  .tab img { width: 30px; height: 30px; }
  .tab.on { color: var(--link); background: var(--pale); }
  .tab .dot { position: absolute; top: 6px; right: calc(50% - 22px); width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
}

/* Pages */
.page { max-width: 860px; margin: 0 auto; padding: 34px 32px 60px; display: flex; flex-direction: column; gap: 18px; }
.page.narrow { max-width: 720px; }
@media (max-width: 599px) { .page { padding: 18px 16px 40px; gap: 14px; } }
.page-header { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.page-header h1 { font-size: 40px; flex: 1; min-width: 0; }
@media (max-width: 599px) { .page-header h1 { font-size: 32px; } }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-only { display: none; }
@media (max-width: 899px) { .mobile-only { display: inline-flex; } .desktop-only { display: none !important; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
@media (max-width: 599px) { .card { padding: 16px; border-radius: 20px; } }
.card.tight { padding: 8px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-header h2 { font-size: 24px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 599px) { .section-header h2 { font-size: 21px; } }
.count-dot { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--gold); color: #fff; font-family: var(--body); font-size: 14px; font-weight: 800; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--link); font-weight: 600; font-size: 16px; cursor: pointer; padding: 6px 4px; border-radius: 10px; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.link-btn.navy { color: var(--deep); }
.list-title { font-family: var(--heading); font-size: 20px; margin: 10px 4px 0; display: flex; align-items: center; gap: 10px; }
.list-title .muted { font-family: var(--body); font-size: 16px; font-weight: 700; }
.list-title .icon { color: var(--brand); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--soft-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
a.btn { text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: linear-gradient(180deg, var(--brand), var(--deep)); color: #fff; box-shadow: 0 6px 16px rgba(9, 33, 110, .22); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 20px rgba(9, 33, 110, .3); }
.btn-secondary { background: #fff; color: var(--deep); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: #c5d2ea; background: #fbfdff; }
.btn-quiet { background: var(--pale); color: var(--link); }
.btn-danger { background: #fff; color: #A3302B; border-color: #F0D4D2; }
.btn-danger.solid, .confirm .btn-danger { background: #B3362F; color: #fff; border-color: transparent; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-full { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.ask-mary { gap: 8px; padding-left: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--deep); cursor: pointer; flex: none; }
.icon-btn:hover:not(:disabled) { background: rgba(9, 33, 110, .06); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.round { background: #fff; box-shadow: var(--shadow); width: 46px; height: 46px; }
.add-circle { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; background: linear-gradient(180deg, var(--brand), var(--deep)); box-shadow: 0 6px 16px rgba(9, 54, 122, .3); flex: none; }
.add-circle:hover { box-shadow: 0 8px 22px rgba(9, 54, 122, .38); }
.pill-btn { border: 1px solid var(--line); background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; color: var(--deep); min-height: 40px; }
.pill-btn:hover { background: #fff; }
.mary-avatar { display: inline-block; border-radius: 50%; background: var(--pale); overflow: hidden; flex: none; position: relative; }
.mary-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mary-avatar.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 2.5px rgba(9, 33, 110, .12); }
.mary-button { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.mary-button .badge { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.avatar-initials { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 800; box-shadow: var(--shadow); border: 0; text-decoration: none; cursor: pointer; flex: none; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 700; color: var(--soft-ink); }
.field-hint { font-size: 13px; color: var(--soft-ink); }
.field-error { font-size: 14px; color: var(--amber); font-weight: 600; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; color: var(--ink); font-weight: 600; }
.input::placeholder { color: var(--quiet); font-weight: 400; }
.input:focus { outline: none; border-color: rgba(6, 77, 240, .5); box-shadow: 0 0 0 3px rgba(6, 77, 240, .14); }
.textarea { resize: vertical; line-height: 1.5; font-weight: 400; }
.menu-field { position: relative; display: block; }
.menu-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.menu-field .menu-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--quiet); pointer-events: none; }
.date-input { cursor: pointer; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
/* The add form's rarely needed extras, stacked under the payment boxes like the expense page's "Add a charge". */
.extra-links { display: flex; flex-direction: column; align-items: flex-start; margin: -8px 0 -4px; }
.extra-links .link-btn { padding-left: 0; gap: 6px; font-size: 15px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; cursor: pointer; }
.toggle-row > span { display: flex; flex-direction: column; gap: 2px; }
.toggle-label { font-weight: 700; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: #D3DCEC; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transition: transform .15s; }
.switch:checked { background: var(--progress); }
.switch:checked::after { transform: translateX(20px); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); flex: none; }
.segmented { display: flex; background: rgba(9, 33, 110, .07); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented button { flex: 1; border: 0; background: none; padding: 9px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink); min-height: 40px; white-space: nowrap; }
.segmented button.on { background: #fff; box-shadow: 0 2px 8px rgba(10, 33, 112, .12); }
.chooser { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.chooser button { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 12px 8px; font-weight: 700; cursor: pointer; color: var(--ink); }
.chooser button.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--pale); }
.note { font-size: 14px; color: var(--soft-ink); }
/* Needs your attention, View all: each row opens its item; the clock snoozes it and the x takes it off this list. */
.attention-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.attention-row + .attention-row::before { content: ''; position: absolute; top: 0; left: 72px; right: 18px; height: 1px; background: var(--line); }
.attention-tools { display: flex; gap: 2px; padding-right: 8px; }
.attention-tools .icon-btn { color: var(--soft-ink); }
.attention-snooze { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; padding: 0 18px 14px 70px; }
.note.warn { color: var(--amber); font-weight: 600; }
.mary-line { display: flex; gap: 10px; align-items: flex-start; background: var(--pale); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }
.mary-line p { padding-top: 3px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: var(--soft-ink); }
.pager .icon-btn { color: var(--link); width: 36px; height: 36px; }

/* Rows */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-radius: 0; position: relative; color: var(--ink); text-decoration: none; }
.row + .row::before { content: ''; position: absolute; top: 0; left: 72px; right: 18px; height: 1px; background: var(--line); }
.row:hover { background: rgba(236, 246, 255, .6); }
.card .row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.card .row:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
/* Timeline: each item is its own card, separated by space instead of lines. */
.entry-cards { display: flex; flex-direction: column; gap: 10px; }
.entry-cards > .row { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-cards > .row::before { display: none; }
.entry-cards > .row:hover { background: color-mix(in srgb, var(--card) 85%, #ECF6FF); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { font-weight: 700; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.row-meta { font-size: 14px; color: var(--soft-ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-meta .kind { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; }
.row-meta .kind .icon { color: var(--brand); }
/* Each part draws its dot in the gap before it; the line's box hides the dot of a part that starts a line. */
.row-meta.dotted { gap: 2px 12px; overflow: hidden; }
.row-meta.dotted .seg { display: inline-flex; align-items: center; gap: 4px; }
.row-meta.dotted .seg::before { content: '·'; flex: none; width: 12px; margin: 0 -4px 0 -12px; text-align: center; }
.row-chevron { color: var(--quiet); flex: none; }
.row-amount { text-align: right; flex: none; }
.row-amount strong { display: block; font-size: 17px; }
.row-amount span { font-size: 13px; color: var(--soft-ink); }
.circle-check { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #93A3C2; background: #fff; flex: none; cursor: pointer; display: grid; place-items: center; color: #fff; padding: 0; }
.circle-check:hover { border-color: var(--brand); }
.circle-check.done { background: var(--progress); border-color: var(--progress); }
.money-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-wash); color: #9A5B12; display: grid; place-items: center; font-weight: 800; flex: none; }
.empty { text-align: center; padding: 36px 20px; color: var(--soft-ink); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h3 { color: var(--ink); font-size: 20px; }
.empty img { width: 120px; height: auto; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--amber); }

/* Panels (the iPhone's sheets) */
.panel-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(9, 22, 60, .32); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s ease; }
.panel-backdrop.under { background: transparent; }
.panel { width: min(600px, 100%); max-height: min(880px, calc(100vh - 48px)); overflow: auto; background: linear-gradient(180deg, #E4EDF9, var(--bottom) 260px); border-radius: 28px; box-shadow: var(--shadow-lift); animation: rise .18s ease; display: flex; flex-direction: column; }
.panel.wide { width: min(820px, 100%); }
.panel-body { padding: 4px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.panel-footer { position: sticky; bottom: 0; padding: 14px 26px 20px; background: linear-gradient(180deg, rgba(241, 245, 251, 0), var(--bottom) 30%); display: flex; gap: 10px; flex-wrap: wrap; }
.panel-footer .btn { flex: 1; }
.panel-header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); align-items: center; gap: 10px; padding: 16px 18px 12px; background: rgba(228, 237, 249, .92); backdrop-filter: blur(14px); }
.panel-header h2 { font-family: var(--body); font-size: 17px; font-weight: 800; text-align: center; outline: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-header-side { display: flex; align-items: center; gap: 6px; }
.panel-header-side.right { justify-content: flex-end; }
@media (max-width: 599px) {
  .panel-backdrop { padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); align-items: flex-end; }
  .panel, .panel.wide { width: 100%; max-height: calc(100vh - 24px); border-radius: 26px 26px 0 0; }
  .panel-body { padding: 4px 18px 22px; }
  .panel-footer { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
}
.big-title { font-size: 30px; }
@media (max-width: 599px) { .big-title { font-size: 26px; } }
.confirm-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(9, 22, 60, .35); display: grid; place-items: center; padding: 20px; animation: fade .12s ease; }
.confirm { background: #fff; border-radius: 24px; padding: 24px; width: min(420px, 100%); box-shadow: var(--shadow-lift); display: flex; flex-direction: column; gap: 10px; }
.confirm h2 { font-size: 20px; }
.confirm p { color: var(--soft-ink); }
.confirm-actions { display: flex; gap: 10px; margin-top: 10px; }
.confirm-actions .btn { flex: 1; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content; background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 16px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lift); max-width: min(560px, calc(100vw - 32px)); font-weight: 600; animation: rise .18s ease; }
.toast.error { background: #6E3410; }
@media (max-width: 899px) { .toast { bottom: calc(var(--tabbar) + 16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.toast { animation-name: fade; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(9, 54, 122, .18); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
.btn-primary .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px; }
/* Loading: Mary's typing dots hop in turn, and the opening page adds Mary herself, floating gently. */
.dots { display: inline-flex; gap: 5px; padding-top: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--deep); opacity: .45; animation: bounce 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.mary-loading { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.mary-loading img { width: 150px; height: auto; animation: float 2.6s ease-in-out infinite; }
.mary-loading p { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Sign in */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: linear-gradient(180deg, #CFE0F7, #EAF2FC); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; gap: 24px; text-align: center; }
.auth-art img { width: min(420px, 80%); height: auto; }
.auth-art h2 { font-size: 34px; max-width: 460px; }
.auth-art p { color: var(--soft-ink); font-size: 18px; max-width: 420px; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: 32px; }
.auth-card .wordmark { font-size: 30px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.auth-foot { font-size: 13px; color: var(--soft-ink); text-align: center; }
@media (max-width: 899px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-side { align-items: flex-start; padding-top: 48px; } }
.mobile-art { display: none; justify-content: center; }
.mobile-art img { width: 180px; }
@media (max-width: 899px) { .mobile-art { display: flex; } }
.gate { max-width: 560px; margin: 8vh auto; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; padding: 24px; }
.gate img { width: 220px; }
.gate h1 { font-size: 30px; }
.gate p { color: var(--soft-ink); font-size: 17px; }

/* Overview */
.ov-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 18px; row-gap: 2px; padding: 4px 2px 6px; }
.ov-name { font-family: var(--heading); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; min-width: 0; overflow-wrap: anywhere; }
.ov-count { font-family: var(--body); font-weight: 800; font-size: 72px; line-height: 1; color: var(--ink); letter-spacing: -.02em; text-align: right; }
.ov-count.small { font-family: var(--heading); font-size: 26px; font-weight: 700; }
.ov-date { color: var(--soft-ink); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.ov-date .icon { color: var(--gold); }
.ov-label { color: var(--soft-ink); font-size: 18px; text-align: right; }
@media (max-width: 599px) { .ov-name { font-size: 32px; } .ov-count { font-size: 52px; } .ov-date, .ov-label { font-size: 15px; } }
.top-strip { display: flex; align-items: center; gap: 12px; }
.top-strip .wordmark { font-size: 34px; flex: 1; }
@media (min-width: 900px) { .top-strip .wordmark { visibility: hidden; } }
.mary-card { background: linear-gradient(180deg, var(--pale), rgba(255, 255, 255, .6)); border: 1px solid rgba(9, 54, 122, .08); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mary-card-head { display: flex; align-items: center; gap: 14px; border: 0; background: none; text-align: left; cursor: pointer; padding: 0; color: var(--ink); width: 100%; }
.mary-card-head .row-title { font-size: 19px; }
.mary-say { background: #fff; border-radius: 16px; padding: 14px 16px; font-size: 17px; }
.mary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mary-actions .btn-primary { grid-column: 1 / -1; }
.mary-actions > :nth-child(2):last-child { grid-column: 1 / -1; }
.caught-up { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 4px; cursor: pointer; text-align: left; width: 100%; color: var(--ink); }
.caught-up .icon { color: var(--green); }
.date-tile { width: 54px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 8px rgba(10, 33, 112, .1); text-align: center; flex: none; }
.date-tile .mon { background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 0; }
.date-tile.soon .mon { background: var(--gold); }
.date-tile .num { font-family: var(--heading); font-size: 24px; font-weight: 600; padding: 4px 0 3px; }
.budget-mini { display: flex; flex-direction: column; gap: 12px; }
.budget-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.budget-big strong { font-size: 48px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.budget-big span { color: var(--soft-ink); font-size: 18px; }
@media (max-width: 599px) { .budget-big strong { font-size: 38px; } }
.progress { height: 12px; border-radius: 6px; background: #DFE6F2; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #5CD0A2, var(--progress)); }
.progress.over > span { background: linear-gradient(90deg, #EBB164, var(--gold)); }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: 2px 16px; display: flex; flex-direction: column; gap: 2px; }
.split > div:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.split span { color: var(--soft-ink); font-size: 15px; }
.split strong { font-size: 26px; font-weight: 800; }
.overview-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* Chat */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; height: 100vh; }
@media (max-width: 1099px) { .chat-layout { grid-template-columns: 1fr; } .chat-list-pane { display: none; } .chat-list-pane.show { display: flex; } }
@media (max-width: 899px) { .chat-layout { height: calc(100vh - var(--tabbar) - env(safe-area-inset-bottom)); } }
.chat-list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 26px 18px 10px; display: flex; flex-direction: column; gap: 12px; }
.chat-list-head h2 { font-size: 26px; display: flex; align-items: center; justify-content: space-between; }
/* Each group of chats is a white card on the page with a dark heading, like Chats on the iPhone. */
.chat-list { overflow: auto; padding: 6px 14px 24px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.chat-section h3 { font-size: 16px; margin: 0 4px 8px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.chat-section h3 .icon { color: var(--brand); }
.chat-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.chat-card > .chat-row:first-child > .chat-item { border-radius: 18px 18px 0 0; }
.chat-card > .chat-row:last-child > .chat-item { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.chat-card .chat-row + .chat-row::before { content: ''; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line); }
.chat-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; cursor: pointer; color: var(--ink); }
.chat-item:hover { background: var(--pale); }
.chat-item-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-item .t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .t .icon { display: inline-block; vertical-align: -2px; margin-right: 4px; color: var(--brand); }
.chat-item .time { flex: none; font-size: 13px; color: var(--soft-ink); }
.chat-item .s { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .s.replying { color: var(--ink); font-weight: 700; }
.chat-item .s.amber { color: var(--amber); }
.chat-item .chat-on { flex: none; color: var(--brand); }
.chat-list-note { color: var(--soft-ink); padding: 4px; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-top { padding: 20px 28px 10px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; width: 100%; margin: 0 auto; }
@media (max-width: 599px) { .chat-top { padding: 14px 14px 8px; } }
.chat-title-row { display: flex; align-items: center; gap: 10px; }
.chat-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 4px 0; color: var(--ink); text-align: left; }
.chat-title h1 { font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .chat-title h1 { font-size: 24px; } }
.chat-title .icon { color: var(--link); }
.messages { flex: 1; overflow: auto; padding: 8px 28px 16px; }
@media (max-width: 599px) { .messages { padding: 8px 12px 12px; } }
.messages-inner { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.messages-inner > .msg.cont { margin-top: -11px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 100%; }
.msg.mine { justify-content: flex-end; }
/* Like iMessage, even a long bubble leaves the far 28% of the row empty. Nobody has a picture: Mary's and your
   partner's names sit above their first bubble, so every left bubble starts at one edge. */
.msg-col { display: flex; flex-direction: column; gap: 8px; max-width: min(560px, 72%); min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-name { font-size: 13px; font-weight: 700; color: var(--ink); margin-left: 6px; }
.bubble { padding: 12px 17px; border-radius: 22px; font-size: 17px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
/* The iPhone's own font in bubbles; navy for you, cream for Mary, sky blue for your partner. */
.msg .bubble { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.01em; }
.msg.mine .bubble { background: linear-gradient(180deg, var(--brand), var(--deep)); color: #fff; }
.msg.partner .bubble { background: var(--partner-bubble); }
.msg.mary .bubble { background: var(--gold-wash); }
.msg.mine.ends .bubble:last-of-type { border-bottom-right-radius: 6px; }
.msg.partner.ends .bubble:last-of-type, .msg.mary.ends .bubble:last-of-type { border-bottom-left-radius: 6px; }
.msg-pic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.msg-spacer { width: 34px; flex: none; }
.msg:not(.ends) .msg-pic { visibility: hidden; }
.bubble-files { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bubble-file { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.msg-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { opacity: 1; }
.msg-tools .icon-btn { width: 32px; height: 32px; color: var(--soft-ink); }
.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #C08A3E; opacity: .5; animation: bounce 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
.suggestion { background: #fff; border: 1px solid #F0D3A6; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.suggestion-head { display: flex; gap: 12px; align-items: flex-start; }
.suggestion-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.suggestion .row-title { font-size: 18px; }
.suggestion dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.suggestion dt { color: var(--soft-ink); }
.suggestion dd { margin: 0; font-weight: 700; }
.suggestion .was { text-decoration: line-through; color: var(--soft-ink); font-weight: 600; }
.decide { display: flex; gap: 10px; flex: none; }
.decide button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.decide .no { background: #fff; border: 1px solid var(--line); color: var(--deep); }
.decide .yes { background: var(--brand); border: 0; color: #fff; }
.suggestion.done { align-items: center; flex-direction: row; gap: 10px; color: var(--green); font-weight: 700; }
.chat-day { text-align: center; font-size: 13px; color: var(--soft-ink); font-weight: 700; margin: 6px 0; }
.composer-wrap { padding: 8px 28px 18px; }
@media (max-width: 599px) { .composer-wrap { padding: 6px 10px 10px; } }
.composer { max-width: 840px; margin: 0 auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 6px 8px 6px 6px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea { flex: 1; border: 0; resize: none; padding: 11px 6px; font: inherit; font-size: 17px; color: var(--ink); max-height: 200px; background: none; line-height: 1.4; }
.composer textarea:focus { outline: none; }
.composer .send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .send:disabled { background: #B7C3DA; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--pale); border-radius: 12px; padding: 6px 6px 6px 10px; font-size: 14px; font-weight: 700; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: 0; background: none; cursor: pointer; padding: 2px; display: grid; color: var(--soft-ink); }
/* Starters wait right above the typing box in a fresh chat: one row of small cards that slides sideways on a phone. */
.starters-wrap { padding: 4px 28px 0; container-type: inline-size; }
@media (max-width: 599px) { .starters-wrap { padding: 4px 10px 0; } }
/* Two rows of two beside the chat list, one row of four when there's room; an email's three ideas sit in one row. */
.starters { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.starters.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 780px) { .starters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .starters.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .starters { display: flex; overflow-x: auto; scrollbar-width: none; } .starters::-webkit-scrollbar { display: none; } .starter { flex: 0 0 190px; } }
.starter { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-height: 48px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.starter:hover { border-color: #b9c8e6; }
.starter span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-banner { max-width: 840px; margin: 0 auto; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--soft-ink); background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 8px 12px; }
.earlier { align-self: center; }

/* Timeline */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .segmented { flex: 1; max-width: 420px; }
.toolbar .menu-field { width: 190px; }
.cal { padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { font-size: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 800; color: var(--soft-ink); padding: 4px 0; text-transform: uppercase; letter-spacing: .05em; }
.cal-day { min-height: 92px; border-radius: 12px; border: 1px solid transparent; background: #F7F9FD; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); overflow: hidden; }
.cal-day:hover { border-color: var(--line); background: #fff; }
.cal-day.other { opacity: .45; }
.cal-day.sel { border-color: var(--brand); background: #fff; }
.cal-day .n { font-weight: 800; font-size: 14px; }
.cal-day.today .n { background: var(--brand); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.cal-ev { font-size: 12px; font-weight: 700; background: var(--pale); border-radius: 6px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.pay { background: var(--gold-wash); }
.cal-ev.appt { background: #E1E7FB; }
@media (max-width: 599px) { .cal-day { min-height: 54px; } .cal-ev { font-size: 0; height: 6px; padding: 0; } }
.done-toggle { align-self: flex-start; }
.detail-head { display: flex; gap: 16px; align-items: center; }
.detail-head .when { margin-top: 4px; font-weight: 600; }
/* Item details: the name on the left and its answer on the right, like Settings. */
.detail-rows { padding: 0; }
.detail-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; font-size: 16px; position: relative; }
.detail-row + .detail-row::before { content: ''; position: absolute; top: 0; left: 18px; right: 0; height: 1px; background: var(--line); }
.detail-row > span:first-child { font-weight: 700; flex: none; }
.detail-row > span:last-child { color: var(--soft-ink); text-align: right; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions > * { flex: 1 1 180px; }
.detail-actions > .btn-primary { flex-basis: 100%; }

/* Budget */
.budget-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.budget-card-head h2 { flex: 1; font-size: 22px; }
.pay-card { background: linear-gradient(180deg, var(--pale), #F6FAFF); border: 1px solid rgba(9, 54, 122, .07); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pay-card-head { display: flex; align-items: center; gap: 14px; cursor: pointer; border: 0; background: none; text-align: left; padding: 0; color: var(--ink); width: 100%; }
.pay-amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-amount strong { font-size: 30px; font-weight: 800; }
.due-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; color: var(--ink); }
.due-label.late { color: var(--amber); }
.group-label { padding: 14px 20px 4px; }
.mini-progress { height: 6px; border-radius: 3px; background: #E2E8F3; overflow: hidden; width: 160px; max-width: 100%; margin-top: 6px; }
.mini-progress span { display: block; height: 100%; background: var(--progress); border-radius: 3px; }
.installments { display: flex; flex-direction: column; gap: 8px; }
.inst { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.inst .grow { flex: 1; min-width: 0; }
.inst .grow .link-btn { font-size: 14px; padding: 4px 0 0; }
.stat-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stat-line:last-child { border-bottom: 0; }

/* Inbox */
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--soft-ink); }
.search input { padding-left: 42px; border-radius: 999px; font-weight: 400; }
.address-card { display: flex; align-items: center; gap: 14px; }
.address-card .grow { flex: 1; min-width: 0; }
.address { font-weight: 800; font-size: 17px; overflow-wrap: break-word; }
.fold { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 6px 4px; font-family: var(--heading); font-size: 20px; font-weight: 700; color: var(--ink); }
.fold .muted { font-family: var(--body); font-size: 16px; }
.fold .icon { color: var(--soft-ink); transition: transform .15s; }
.fold.closed .icon { transform: rotate(-90deg); }
.email-row .row-title { font-size: 16px; }
.preview { font-size: 14px; color: var(--soft-ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.email-meta { font-size: 14px; color: var(--soft-ink); }
.email-meta strong { color: var(--amber); }
.email-thread { display: flex; flex-direction: column; gap: 10px; }
.message { background: var(--card); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); }
.message-head { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
div.message-head { cursor: default; }
.avatar-initial { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--line); color: var(--ink); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.message-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.message-who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-who .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-date { font-size: 13px; flex: none; }
.message-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0 48px; font: inherit; font-size: 15px; line-height: 1.45; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; width: calc(100% - 48px); }
.message-body { margin-top: 12px; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.message-body p { margin: 0 0 12px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body a { color: var(--link); text-decoration: underline; text-decoration-color: var(--soft-ink); text-underline-offset: 2px; }
.email-picture { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 4px 0 12px; }
.email-picture.loading { width: 100%; height: 120px; background: var(--line); opacity: .5; }
.mary-help { display: flex; flex-direction: column; gap: 8px; }
.mary-help-title { font-size: 15px; font-weight: 600; color: var(--soft-ink); margin-left: 2px; }
.mary-help .rows > * + *::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.mary-help .rows > * { position: relative; }
.mary-help .mary-line.plain { padding: 12px 16px; font-size: 16px; }
.mary-help .help-item { border-radius: 0; background: none; padding: 12px 16px; }
.mary-help .help-item .plus { background: none; color: var(--link); border: 2px solid currentColor; width: 26px; height: 26px; }
.mary-help .help-item.added .plus { background: var(--progress); color: #fff; border-color: var(--progress); }
.mary-help .row.help-ask .row-title { color: var(--link); }
.mary-help .help-details { gap: 10px; }
.mary-help .quote-list { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.mary-help .quote { background: none; padding: 0; }
.help-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--ink); }
.help-item .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.help-item.added .plus { background: var(--progress); }
.quote { background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.quote b { display: block; font-size: 13px; color: var(--soft-ink); }
.reply-box { display: flex; flex-direction: column; gap: 10px; }
.email-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }

/* Documents */
.files { display: flex; flex-direction: column; }
.file-icon { width: 44px; height: 52px; border-radius: 10px; background: var(--pale); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; position: relative; }
.file-icon.pdf { background: #FDE9E4; color: #A8442C; }
.file-icon.img { background: #E8F6EE; color: #2E7A54; }
.file-icon.doc { background: #E4EDFD; color: #2A55B8; }
.page-text { background: #fff; border-radius: 16px; padding: 16px 18px; font-size: 15px; white-space: pre-wrap; border: 1px solid var(--line); max-height: 420px; overflow: auto; }
.preview-img { max-width: 100%; border-radius: 16px; display: block; margin: 0 auto; box-shadow: var(--shadow); }
.preview-pdf { width: 100%; height: min(64vh, 640px); border: 1px solid var(--line); border-radius: 16px; background: #fff; display: block; }
.drop { border: 2px dashed #B9C8E6; border-radius: 18px; padding: 26px; text-align: center; color: var(--soft-ink); cursor: pointer; background: rgba(255, 255, 255, .6); }
.drop.over { border-color: var(--brand); background: var(--pale); }

/* From Mary */
/* A note from Mary (owner, 2026-10-29): her picture and name with the time, the kind in gold capitals, the title in bold, her note. */
.mary-msg { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer; color: var(--ink); }
.mary-msg .mary-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mary-msg .mary-top strong { font-size: 15px; }
.mary-msg .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.mary-msg .when { margin-left: auto; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mary-msg .cat { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.mary-msg .cat.urgent { color: var(--amber); }
.mary-msg .row-title { font-size: 18px; }
/* Every word inside From Mary's cards is in the dark ink so it's easy to read (owner, 2026-10-25). */
.mary-msg p, .mary-msg .note, .mary-detail .row-meta, .mary-detail .suggestion .eyebrow, .mary-detail .suggestion dt { color: var(--ink); }
.mary-head h1 { outline: none; }
.mary-intro { display: flex; align-items: center; gap: 14px; color: var(--soft-ink); font-size: 17px; }

/* Settings */
.settings-list .row-title { font-size: 16px; }
.settings-group { display: flex; flex-direction: column; gap: 8px; }
.pass-confirm { display: flex; flex-direction: column; gap: 12px; }
.link-btn.center { align-self: center; }
.code-box { font-family: var(--heading); font-size: 30px; letter-spacing: .12em; font-weight: 700; background: #fff; border-radius: 16px; padding: 14px; text-align: center; border: 1px dashed #B9C8E6; }
.permission { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.permission-art { display: flex; justify-content: center; }
.permission-art img { width: 120px; height: auto; }

/* Chat, more */
.chat-list-wrap { display: contents; }
.chat-list-foot { padding: 10px 16px 16px; border-top: 1px solid var(--line); }
.chats-toggle { display: none; }
@media (max-width: 1099px) {
  .chats-toggle { display: inline-grid; }
  .chat-list-wrap .chat-list-pane { display: none; }
  .chat-list-wrap.show .chat-list-pane { display: flex; min-height: 0; height: 100%; border-right: 0; }
  .chat-list-wrap.show :is(.chat-list-head, .chat-list, .chat-list-foot) { width: 100%; max-width: 680px; margin: 0 auto; }
  .chat-pane.hide-narrow { display: none; }
}
.attach-wrap { position: relative; flex: none; }
.attach { width: 44px; height: 44px; color: var(--brand); }
.menu-pop { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); padding: 6px; min-width: 230px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.menu-pop.right { left: auto; right: 0; bottom: auto; top: calc(100% + 6px); }
.menu-pop button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 11px 12px; border-radius: 10px; text-align: left; cursor: pointer; font-weight: 600; color: var(--ink); }
.menu-pop button:hover { background: var(--pale); }
.starter { display: flex; align-items: center; gap: 10px; }
.starter .icon { color: var(--brand); flex: none; }
.bubble.reply-draft { background: #fff; border: 1px solid #F0D3A6; display: flex; flex-direction: column; gap: 8px; }
.reply-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-note { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: var(--soft-ink); padding: 0 16px; }
.email-banner { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.email-banner .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.email-banner .grow strong, .email-banner .grow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-banner .grow span { font-size: 13px; color: var(--soft-ink); }
.spinner.light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.decide .spinner { width: 18px; height: 18px; border-width: 2px; }

/* Inbox, more */
a.row { text-decoration: none; color: var(--ink); }
.row-art { width: 44px; height: 44px; object-fit: contain; flex: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mary-says { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.back-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-left: -6px; }
.email-head { display: flex; flex-direction: column; gap: 6px; }
.email-head h1 { font-size: 30px; }
@media (max-width: 599px) { .email-head h1 { font-size: 24px; } }
.email-meta .blue, .blue { color: var(--link); }
.email-meta .green { color: var(--green); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; padding: 10px; margin: 0 -10px; border-radius: 26px; background: rgba(241, 245, 251, .85); backdrop-filter: blur(14px); }
@media (max-width: 899px) { .sticky-actions { bottom: calc(var(--tabbar) + 8px); } }
.email-actions .btn { min-height: 52px; }
.mary-line.plain { background: none; padding: 0; align-items: center; font-size: 17px; }
.mary-line.plain p { padding-top: 0; flex: 1; }
.quote-list { display: flex; flex-direction: column; gap: 8px; }
.reply-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.reply-starter { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(9, 54, 122, .16); background: #fff; color: var(--brand); border-radius: 12px; padding: 9px 14px; font-weight: 700; cursor: pointer; min-height: 42px; }
.reply-starter:hover:not(:disabled) { border-color: var(--brand); }
.reply-starter:disabled { opacity: .5; cursor: default; }
.date-pick { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.date-pick .field { flex: 1; min-width: 150px; }
.ask-row { display: flex; gap: 8px; align-items: center; }
.send-small { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.send-small:disabled { background: #B7C3DA; cursor: default; }
.reply-bar { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.reply-bar > span { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Documents, From Mary and Settings, more */
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.folder-head { display: flex; align-items: center; justify-content: space-between; }
.row-check { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 0; }
label.row { cursor: pointer; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop .icon { color: var(--brand); }
.split-actions { display: flex; justify-content: space-between; }
.mary-msg.urgent { box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(232, 163, 69, .6); }
.mary-msg .mary-top > .icon { color: var(--quiet); flex: none; }
.card-title { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.settings-card { gap: 16px; display: flex; flex-direction: column; }
.profile-card { display: flex; align-items: center; gap: 16px; }
.profile-card .grow { flex: 1; min-width: 0; }
.profile-card h2 { font-size: 22px; }
.avatar-initials.big { width: 60px; height: 60px; font-size: 22px; background: var(--pale); box-shadow: none; cursor: default; }
.row-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); flex: none; }
.row.danger, .row.danger .row-icon { color: #A3302B; }
.settings-list .row + .row::before { left: 70px; }
.row-value { font-size: 15px; color: var(--soft-ink); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-title.settings-heading { font-size: 15px; color: var(--soft-ink); margin-top: 6px; }
button.profile-card { width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.settings-end { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px 0 4px; }
.settings-end .link-btn { font-size: 16px; font-weight: 700; min-height: 40px; }
.settings-end .link-btn.danger { color: #A3302B; font-size: 15px; }
.confirm.permission { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.confirm.permission p { color: var(--ink); }
.permission h2 { font-size: 26px; }
.permission h2:focus { outline: none; }
.avatar-initials.mobile-only { display: none; }
@media (max-width: 899px) { .avatar-initials.mobile-only { display: inline-grid; } }
.pill-btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
a.link-btn { text-decoration: none; }

/* Edit expense: one payment date per row, name and remove on top, amount and date under. */
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "name name del" "amt due due"; gap: 8px 10px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pay-name { grid-area: name; min-width: 0; } .pay-amt { grid-area: amt; min-width: 0; } .pay-due { grid-area: due; min-width: 0; }
.pay-del { grid-area: del; display: flex; justify-content: flex-end; }

/* The item you're asking Mary about, over the typing box. */
.item-card { display: flex; align-items: center; width: 100%; background: var(--pale); border: 1px solid var(--line); border-radius: 16px; }
.item-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--soft-ink); font: inherit; border-radius: 16px; }
.item-card-main:disabled { cursor: default; }
.item-card-main .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item-card-main .eyebrow { font-size: 11px; }
.item-card-title { color: var(--ink); font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card-main .row-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card-x { width: 40px; height: 40px; flex: none; border: 0; background: none; color: var(--soft-ink); cursor: pointer; display: grid; place-items: center; border-radius: 12px; }
.suggestion-open { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: 10px; }
.suggestion-open .row-title { display: inline-flex; align-items: center; gap: 4px; }
.suggestion-open .row-title .icon { color: var(--soft-ink); flex: none; }
.item-card-main .eyebrow { color: var(--ink); }

/* Message options and selecting messages, like holding a message on the iPhone. */
.msg-tools.open { opacity: 1; }
.msg-tools .attach-wrap { position: relative; }
.msg-menu { bottom: 36px; top: auto; left: 0; min-width: 220px; }
.msg.mine .msg-menu { left: auto; right: 0; }
.msg.selecting { cursor: pointer; border-radius: 18px; }
.msg.selecting .bubble { pointer-events: none; }
.msg.selected .bubble { box-shadow: 0 0 0 2px var(--link); }
.select-dot { flex: none; align-self: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b8c6e0; display: grid; place-items: center; background: #fff; color: #fff; }
.select-dot.on { background: var(--link); border-color: var(--link); }
.msg.mine .select-dot { order: 9; }
.select-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; flex-wrap: wrap; }
.select-bar .grow { flex: 1; min-width: 0; text-align: center; }
/* A conversation in the list, with its options. */
.chat-row { position: relative; display: flex; align-items: center; }
.chat-row.open { z-index: 5; }
.chat-row .chat-item { flex: 1; min-width: 0; }
.chat-row-more { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .12s; }
.chat-row:hover .chat-row-more, .chat-row:focus-within .chat-row-more, .chat-row.open .chat-row-more { opacity: 1; }
/* The options button takes the place of the time and checkmark while it shows; on a touch screen it always shows beside them. */
@media (hover: hover) { :is(.chat-row:hover, .chat-row:focus-within, .chat-row.open) :is(.time, .chat-on) { visibility: hidden; } }
@media (hover: none) { .chat-row-more, .msg-tools { opacity: 1; } .chat-row .chat-item { padding-right: 52px; } }
.file-icon.saved { color: var(--brand); }
.saved-msg { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.saved-msg p { margin: 0; white-space: pre-wrap; user-select: text; }
.already-logged { background: #fff; border: 1px solid rgba(232, 177, 96, .55); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.already-logged p { margin: 0; }
.toast-undo { border: 0; background: none; color: #9EC2FF; font-weight: 800; font-size: 15px; cursor: pointer; padding: 4px 6px; margin-left: 4px; }
.quick-days { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-days .btn { flex: 1 1 120px; }
.chat-list-tools { display: inline-flex; align-items: center; gap: 2px; }
.chat-banner .grow { flex: 1; min-width: 0; }
.field-with-button { display: flex; gap: 8px; align-items: flex-end; }
.field-with-button > :first-child { flex: 1; min-width: 0; }
.permission-warn { font-size: 15px; text-align: center; margin: 0; }
/* Inbox rows with quick actions, sorting, and the step picker. */
.email-item { position: relative; }
.email-item.open { z-index: 5; }
.email-item + .email-item::before, .email-item + .row::before { content: ''; position: absolute; top: 0; left: 72px; right: 18px; height: 1px; background: var(--line); }
.email-more { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .12s; }
.email-item:hover .email-more, .email-item:focus-within .email-more, .email-item.open .email-more { opacity: 1; }
.email-item:hover .row-chevron, .email-item:focus-within .row-chevron, .email-item.open .row-chevron { opacity: 0; }
@media (hover: none) { .email-more { opacity: 1; -webkit-tap-highlight-color: transparent; } .email-item .row-chevron { visibility: hidden; } }
.inbox-tools { display: flex; align-items: center; gap: 6px; }
.inbox-tools .search { flex: 1; min-width: 0; }
.organize-pop { padding: 14px; gap: 12px; min-width: 250px; }
.step-pick .row + .row::before { left: 18px; }
.confirm.permission .note { color: var(--soft-ink); font-size: 13px; }

/* Sign in: the way in for new couples */
.auth-new { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-or { font-weight: 700; color: var(--soft-ink); font-size: 15px; }
.auth-join { font-weight: 700; color: var(--deep); text-decoration: none; padding: 8px; }
.auth-join:hover { text-decoration: underline; }
.auth-title { display: flex; flex-direction: column; gap: 6px; }

/* Onboarding: one layout for every step. Mary and her line, the question, the answers, and the button in the same spots. */
.ob { min-height: 100vh; display: flex; justify-content: center; padding: 0 16px; }
.ob-column { width: min(560px, 100%); min-height: 100vh; display: flex; flex-direction: column; padding: 18px 0 0; }
.ob-top { display: flex; flex-direction: column; gap: 8px; }
.ob-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.ob-back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; color: var(--deep); display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.ob-back:hover { background: rgba(9, 33, 110, .06); }
.ob-count { font-weight: 700; color: var(--soft-ink); font-size: 15px; }
.ob-skip { border: 0; background: none; font-weight: 700; color: var(--soft-ink); font-size: 15px; min-height: 44px; padding: 0 6px; cursor: pointer; }
.ob-progress { height: 6px; border-radius: 3px; background: rgba(9, 33, 110, .09); overflow: hidden; }
.ob-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--action)); transition: width .3s ease; }
.ob-content { flex: 1; padding: 10px 0 24px; }
.ob-question { animation: ob-in .28s ease; }
@keyframes ob-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.ob-bottom { position: sticky; bottom: 0; padding: 14px 0 calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(241, 245, 251, 0), var(--bottom) 26%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ob-bottom:empty { display: none; }
.ob-cta { min-height: 56px; font-size: 17px; }
.ob-mary { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.ob-mary img { width: 92px; height: 92px; object-fit: contain; flex: none; }
.ob-mary p { font-size: 17px; font-weight: 700; color: var(--soft-ink); line-height: 1.4; }
.ob-title { font-size: 32px; margin: 14px 0 18px; }
@media (max-width: 599px) { .ob-title { font-size: 28px; } .ob-mary img { width: 80px; height: 80px; } }
.ob-stack { display: flex; flex-direction: column; gap: 10px; }
.ob-stack.locked { opacity: .7; }
.ob-input { min-height: 56px; font-size: 17px; border-radius: 16px; border-width: 1.5px; }
.ob-hint { font-size: 14.5px; color: var(--soft-ink); font-weight: 600; padding: 2px 4px 0; }
.ob-problem { font-size: 14.5px; color: var(--amber); font-weight: 700; padding: 8px 4px 0; }
.ob-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 17px; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ob-option:hover { border-color: #c5d2ea; }
.ob-option.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 6px 16px rgba(9, 33, 110, .1); }
.ob-circle { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B3C0DA; display: grid; place-items: center; flex: none; color: #fff; background: #fff; padding: 0; }
.ob-option.on .ob-circle, .ob-circle.on { background: var(--brand); border-color: var(--brand); }
.ob-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-tile { min-height: 52px; font-size: 15.5px; padding: 0 12px; gap: 10px; }
.ob-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-pair .menu-field .input { min-height: 56px; border-radius: 16px; font-size: 17px; }
.ob-sub-field { display: flex; flex-direction: column; gap: 4px; }
.ob-sub-field > span, .ob-caption { font-size: 12.5px; font-weight: 800; color: var(--soft-ink); }
.ob-money { position: relative; display: block; }
.ob-money > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 17px; color: var(--ink); pointer-events: none; }
.ob-money > span.ob-dim { color: var(--quiet); }
.ob-money .ob-input { padding-left: 30px; }
.ob-money.small > span { left: 0; font-size: 16px; }
.ob-money.small .ob-bare { padding-left: 12px; }
.ob-box { display: flex; flex-direction: column; gap: 1px; padding: 8px 14px 6px; min-height: 60px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: text; min-width: 0; }
.ob-box:focus-within { border-color: rgba(6, 77, 240, .5); box-shadow: 0 0 0 3px rgba(6, 77, 240, .14); }
.ob-bare { border: 0; outline: none; background: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); width: 100%; padding: 2px 0; min-width: 0; }
.ob-bare::placeholder { color: var(--quiet); font-weight: 600; }
.ob-bare:disabled { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.ob-due { display: flex; align-items: center; gap: 4px; }
.ob-clear { border: 0; background: none; color: var(--quiet); width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; flex: none; border-radius: 50%; }
.ob-password { position: relative; display: block; }
.ob-password .ob-input { padding-right: 70px; }
.ob-show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--link); font-weight: 700; padding: 8px; cursor: pointer; }
.ob-agree { display: flex; align-items: flex-start; gap: 12px; width: 100%; font-size: 15px; line-height: 1.45; }
.ob-agree .ob-circle.big { width: 28px; height: 28px; cursor: pointer; margin-top: -2px; }
.ob-agree a { font-weight: 700; }
.ob-agree-text { cursor: pointer; }
.ob-quiet-link { font-weight: 700; color: var(--soft-ink); font-size: 15px; text-decoration: none; padding: 4px; }
.ob-quiet-link:hover { text-decoration: underline; }
.ob-steps { display: flex; gap: 18px; overflow-x: auto; padding: 14px 2px 0; scrollbar-width: none; }
.ob-steps span { font-weight: 700; font-size: 15px; color: var(--quiet); white-space: nowrap; padding-bottom: 7px; border-bottom: 3px solid transparent; }
.ob-steps span.on { color: var(--ink); border-bottom-color: var(--gold); }
.ob-steps span.saved { color: var(--green); }
.ob-steps + .ob-title { margin-top: 8px; }
.ob-center { display: flex; justify-content: center; }
.ob-settings .ob-content { display: flex; flex-direction: column; gap: 16px; }
.ob-settings .ob-title { margin: 0; }
.ob-account-head { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.ob-gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* The welcome tour */
.ob-welcome-inner { width: min(1080px, 100%); min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 18px 0 0; }
.ob-welcome-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.ob-login { font-weight: 700; color: var(--soft-ink); text-decoration: none; padding: 10px 6px; font-size: 16.5px; }
.ob-login:hover { color: var(--deep); }
.ob-tour { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 8px 0; }
.ob-tour-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px 48px; width: 100%; animation: ob-in .45s ease; }
.ob-tour-page img { width: min(380px, 100%); height: auto; justify-self: end; grid-row: span 2; }
.ob-headline { font-size: 54px; line-height: 1.08; letter-spacing: -.025em; align-self: end; }
.ob-marked { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 55%, transparent) 62%, color-mix(in srgb, var(--gold) 55%, transparent) 90%, transparent 90%); padding: 0 2px; }
.ob-sub { font-size: 19px; color: var(--soft-ink); max-width: 440px; align-self: start; }
.ob-sub strong { color: var(--ink); }
.ob-dots { display: flex; }
.ob-dots button { width: 26px; height: 26px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.ob-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(77, 99, 145, .3); transition: background .3s; }
.ob-dots button.on span { background: var(--deep); }
.ob-welcome-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(440px, 100%); justify-self: center; padding: 10px 0 calc(22px + env(safe-area-inset-bottom)); }
.ob-join { font-weight: 700; color: var(--deep); text-decoration: none; padding: 12px; font-size: 16px; }
.ob-join:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .ob-tour-page { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .ob-tour-page img { justify-self: center; width: min(280px, 72vw); grid-row: auto; }
  .ob-headline { font-size: 38px; align-self: auto; }
  .ob-sub { font-size: 17px; justify-self: center; }
}
@media (max-height: 760px) and (max-width: 899px) { .ob-tour-page img { width: min(220px, 60vw); } .ob-headline { font-size: 34px; } }

/* The Wedding Pass: navy, gold and the couple's own ticket. Its pale words mix in a blue-gray, not the gray of words on white. */
.ob-pass { --pass-mist: #4D6391; min-height: 100vh; color: #fff; display: flex; justify-content: center; padding: 0 20px;
  background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--action) 70%, var(--deep)) 0, var(--deep) 45%, color-mix(in srgb, var(--deep) 72%, #000) 100%) fixed, var(--deep); }
.ob-pass-inner { width: min(1040px, 100%); display: flex; flex-direction: column; }
.ob-pass-top { display: flex; justify-content: flex-end; padding-top: 14px; min-height: 58px; }
.ob-notnow { border: 0; background: none; color: color-mix(in srgb, var(--pale) 75%, var(--pass-mist)); font-weight: 700; font-size: 16.5px; padding: 10px 4px; cursor: pointer; }
.ob-notnow:hover { color: #fff; }
.ob-pass-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 10px 0 40px; }
.ob-pass-hero { position: relative; display: flex; flex-direction: column; }
.ob-pass-mary { position: absolute; top: -34px; right: -6px; width: 170px; height: auto; pointer-events: none; }
.ob-pass-kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.ob-pass-title { font-size: 46px; font-weight: 700; line-height: 1.04; letter-spacing: -.02em; margin-top: 8px; display: flex; flex-direction: column; position: relative; }
.ob-ticket-wrap { margin-top: 34px; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); position: relative; }
.ob-ticket { --notch: 137px; position: relative; overflow: hidden; border-radius: 22px; color: var(--ink);
  background: linear-gradient(135deg, #fff 0, color-mix(in srgb, var(--gold-wash) 70%, #fff) 100%);
  -webkit-mask: radial-gradient(circle 13px at 0 var(--notch), #0000 97%, #000 100%) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--notch), #0000 97%, #000 100%) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 var(--notch), #0000 97%, #000 100%) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--notch), #0000 97%, #000 100%) right / 51% 100% no-repeat; }
.ob-ticket-top { height: 136px; padding: 17px 21px 0; display: flex; gap: 10px; }
.ob-ticket-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-ticket-kicker, .ob-ticket-foot { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: color-mix(in srgb, var(--gold) 55%, var(--amber)); }
.ob-ticket-names { font-family: var(--heading); font-weight: 700; font-size: 30px; line-height: 1.15; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-ticket-line { font-weight: 700; font-size: 15.5px; color: var(--soft-ink); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-ticket-count { display: flex; flex-direction: column; align-items: flex-end; padding-top: 14px; flex: none; }
.ob-ticket-count span { font-weight: 800; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.ob-ticket-count small { font-weight: 700; font-size: 13px; color: var(--soft-ink); margin-top: 3px; }
.ob-ticket-tear { height: 0; border-top: 2px dashed color-mix(in srgb, var(--gold) 45%, #fff); margin: 0 18px; }
.ob-ticket-foot { display: flex; justify-content: space-between; gap: 8px; padding: 14px 21px 17px; white-space: nowrap; }
.ob-ticket-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); transform: translateX(-120%); animation: ob-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes ob-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ob-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ob-points li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.45; color: color-mix(in srgb, var(--pale) 82%, var(--pass-mist)); }
.ob-points li .icon { color: var(--gold); flex: none; transform: translateY(3px); }
.ob-points strong { color: #fff; }
.ob-pass-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; }
.ob-pass-message { color: color-mix(in srgb, var(--gold) 60%, #fff); font-weight: 700; font-size: 14.5px; text-align: center; display: flex; align-items: center; gap: 8px; }
.ob-pass-message .spinner { width: 16px; height: 16px; border-width: 2px; }
.ob-see { border: 0; background: none; color: color-mix(in srgb, var(--gold) 60%, #fff); font-weight: 800; font-size: 16px; padding: 8px; cursor: pointer; }
.ob-see:hover { text-decoration: underline; }
.btn-gold { min-height: 58px; font-size: 18px; font-weight: 800; color: var(--deep); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 55%, #fff), var(--gold)); box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 40%, transparent); }
.btn-gold:hover:not(:disabled) { box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 55%, transparent); }
.btn-gold .spinner { width: 18px; height: 18px; border-width: 2px; border-color: rgba(9, 33, 110, .2); border-top-color: var(--deep); }
.ob-fine { font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--pale) 60%, var(--pass-mist)); }
.ob-fine-link { border: 0; background: none; color: #fff; font-weight: 800; font-size: 14px; padding: 6px; cursor: pointer; }
.ob-fine-link:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .ob-pass { padding: 0 16px; }
  .ob-pass-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 0; align-items: start; }
  .ob-pass-mary { width: 128px; top: -2px; right: -10px; }
  .ob-pass-top { min-height: 48px; padding-top: 6px; position: relative; z-index: 1; }
  .ob-pass-title { font-size: 40px; }
  .ob-points li { font-size: 16.5px; }
  /* The fade sits in the bar's top padding, so its first line (a message) is always on the solid part, never over a selling point. */
  .ob-pass-actions { position: sticky; bottom: 0; margin: -10px -16px 0; padding: 30px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--deep) 72%, #000) 26px); }
}
@media (max-width: 380px) { .ob-ticket-names { font-size: 25px; } .ob-ticket-count span { font-size: 32px; } }
.ob-features { gap: 18px; }
.ob-feature { display: flex; gap: 16px; align-items: center; }
.ob-feature img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.ob-feature h3 { font-size: 20px; margin-bottom: 4px; }
.ob-feature p { color: var(--soft-ink); font-size: 15.5px; }
.ob-feature strong { color: var(--ink); }
.ob-after { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--soft-ink); padding: 4px 18px 0; }

/* Your MeetMary email */
.ob-address { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; border: 2px solid var(--deep); background: #fff; }
.ob-address > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-address-text { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.ob-copy { border: 0; border-radius: 11px; background: var(--deep); color: #fff; font-weight: 800; font-size: 14.5px; min-height: 40px; padding: 0 16px; cursor: pointer; flex: none; }
.ob-copy.done { background: var(--green); }
.ob-mail-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.ob-mail-steps h2 { font-family: var(--body); font-size: 17px; font-weight: 800; }
.ob-mail-steps p { color: var(--soft-ink); font-size: 15px; font-weight: 600; }
.ob-mail { margin-top: 8px; padding: 10px 14px; border-radius: 15px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--soft-ink); }
.ob-mail-line { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-mark-mary { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--gold) 45%, transparent) 55%); padding: 0 2px; }
.ob-mail-address { font-size: 12.5px; color: var(--quiet); overflow: hidden; text-overflow: ellipsis; }
.ob-waiting, .ob-got { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; margin: 20px 4px 12px; }
.ob-got { color: var(--green); }
.ob-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: ob-pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes ob-pulse { 0%, 100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .ob-question, .ob-tour-page { animation: ob-fade .3s ease; }
  .ob-ticket-shine { display: none; }
}
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }

/* Mary's "Let's finish setting up" list, and the pages its rows open */
.setup-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 3px 8px rgba(10, 33, 112, .05); padding: 14px 16px 4px; display: flex; flex-direction: column; }
.setup-card.tight { padding: 4px 16px; }
.setup-head { display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 10px 0; margin: -10px 0; cursor: pointer; text-align: left; color: var(--ink); }
.setup-head h3 { font-size: 17.5px; font-weight: 600; flex: 1; min-width: 0; }
.setup-count { font-size: 13.5px; font-weight: 800; color: var(--soft-ink); white-space: nowrap; }
.setup-head .icon { color: var(--quiet); align-self: center; }
.setup-bar { height: 6px; border-radius: 3px; background: var(--line); margin: 10px 0 8px; overflow: hidden; }
.setup-bar span { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
.setup-rows { display: flex; flex-direction: column; }
.setup-row { display: flex; align-items: center; position: relative; }
.setup-row + .setup-row::before, .setup-card.tight > * + *::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--line) 70%, transparent); }
.setup-card.tight > * { position: relative; }
.setup-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 0; min-height: 44px; text-align: left; cursor: pointer; color: var(--ink); }
.setup-main:disabled { cursor: default; }
.setup-ring { width: 21px; height: 21px; border-radius: 50%; border: 2px solid #B3C0DA; flex: none; }
.setup-title { font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.setup-detail { font-weight: 600; font-size: 13.5px; color: var(--soft-ink); }
.setup-code { border: 0; border-radius: 11px; background: var(--deep); color: #fff; font-weight: 800; font-size: 14.5px; min-height: 36px; padding: 0 12px; margin-left: 8px; cursor: pointer; flex: none; white-space: nowrap; }
.setup-x { width: 44px; height: 44px; border: 0; background: none; color: var(--quiet); display: grid; place-items: center; justify-items: end; cursor: pointer; flex: none; padding: 0; }
.setup-x:hover { color: var(--deep); }
.setup-use { font-weight: 800; font-size: 14.5px; color: var(--brand); flex: none; }
.setup-already { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.setup-already .ob-caption { padding-left: 4px; }
.setup-line { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; cursor: pointer; text-align: left; color: var(--ink); width: 100%; font: inherit; }
.share-rows { margin-bottom: 4px; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.share-row > .icon { color: var(--brand); width: 26px; }
.invite-code { margin-top: 18px; }
.invite-line { font-family: var(--body); font-weight: 800; font-size: 18px; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 380px) { .invite-line { font-size: 15.5px; } }
.invite-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.invite-steps h2 { font-family: var(--body); font-size: 16.5px; font-weight: 800; }
.invite-steps p { color: var(--soft-ink); font-size: 14.5px; font-weight: 600; }
.invite-new { text-decoration: underline; font-size: 14.5px; font-weight: 700; min-height: 44px; }
.setup-card.elsewhere { margin-top: 18px; padding: 16px; gap: 3px; }

/* Mary's tour: the page dims, an outline circles each stop, and Mary's card explains it. */
.tour { position: fixed; inset: 0; z-index: 75; }
.tour-hole { position: fixed; pointer-events: none; border-radius: 18px; box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(9, 33, 110, .62); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease, border-radius .35s ease, box-shadow .25s ease; }
.tour.light .tour-hole { box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(9, 33, 110, .3); }
.tour-hole.none { box-shadow: 0 0 0 9999px rgba(9, 33, 110, .62); }
.tour-welcome { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 26px 22px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; animation: rise .2s ease; }
.tour-welcome img { width: 118px; height: 118px; object-fit: contain; }
.tour-welcome h2 { font-size: 24px; }
.tour-welcome p { color: var(--soft-ink); margin-bottom: 8px; }
.tour-card { position: fixed; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 8px; animation: fade .18s ease; }
.tour-card p { font-size: 15px; color: var(--ink); }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.tour-card.below .tour-arrow { top: -6px; }
.tour-card.above .tour-arrow { bottom: -6px; }
.tour-head { display: flex; gap: 10px; align-items: center; }
.tour-head > div { display: flex; flex-direction: column; min-width: 0; }
.tour-head h2 { font-size: 18px; }
.tour h2:focus { outline: none; }
.tour-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft-ink); }
.tour-actions { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.tour-count { flex: 1; font-size: 13px; font-weight: 700; color: var(--soft-ink); }
.tour-quiet { border: 0; background: none; padding: 0 10px; min-height: 36px; font-weight: 700; color: var(--brand); cursor: pointer; border-radius: 10px; }
.tour-welcome .tour-quiet { min-height: 44px; }
.tour-example { position: fixed; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 8px 28px 16px; background: var(--bottom); overflow: hidden; max-width: none; }
@media (max-width: 599px) { .tour-example { padding: 8px 12px 12px; } }
.tour-example > .msg { width: 100%; max-width: 840px; margin: 0 auto; }
.tour-in { animation: rise .25s ease; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card, .tour-welcome, .tour-in { transition: none; animation: none; } }
