/* GetCoPlan app styles. Colours match the approved mock-ups. */
:root {
  --g: #1E6B4E;      /* brand green */
  --gs: #E3F0E9;     /* green, soft */
  --ink: #13201B;
  --mut: #56635D;
  --surf: #F1F5F2;
  --line: #DCE4DF;
  --amb: #E8A33D;
  --ambs: #FBEBD3;
  --red: #B3261E;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #FFFFFF; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; color: inherit; }

.shell { max-width: 480px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; }
@media (min-width: 600px) { body { background: var(--surf); } .shell { box-shadow: 0 0 0 1px var(--line); } }

/* Header */
.hd { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 14px; flex: none; }
.hd-row { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.back { width: 44px; height: 44px; border-radius: 22px; background: var(--surf); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.back[hidden] { visibility: hidden; display: flex; }
.hd-title { font-size: 15px; font-weight: 600; text-align: center; flex: 1; padding: 0 8px; }
.hd-count { width: 44px; text-align: right; font-size: 13px; font-weight: 500; color: var(--mut); white-space: nowrap; }
.bar { height: 6px; border-radius: 3px; background: #E3EAE5; overflow: hidden; }
.bar > div { height: 6px; border-radius: 3px; background: var(--g); transition: width 0.25s ease; }

/* Main */
main { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.tb { display: flex; flex-direction: column; gap: 10px; }
.chip { align-self: flex-start; padding: 6px 12px; border-radius: 14px; background: var(--gs); color: var(--g); font-size: 13px; font-weight: 600; }
h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.4px; }
.help { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mut); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surf); font-size: 14px; line-height: 1.5; color: var(--mut); }
.note .i { flex: none; width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--mut); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.sub { font-size: 16px; font-weight: 700; margin-top: 4px; }
.lab { font-size: 14px; font-weight: 600; color: var(--mut); }
.err { font-size: 14px; color: var(--red); font-weight: 500; }

/* Inputs */
.txt { width: 100%; height: 60px; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; font-size: 18px; background: #FFFFFF; }
.txt:focus, .sel:focus { outline: none; border-color: var(--g); }
.field { display: flex; flex-direction: column; gap: 6px; }
.date { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.date .txt { text-align: center; font-size: 20px; padding: 0 10px; }
.sel { width: 100%; height: 60px; padding: 0 16px; border: 2px solid var(--line); border-radius: 16px; font-size: 17px; background: #FFFFFF; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356635D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }

/* Choices: always stacked */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; border-radius: 16px; background: var(--surf); border: 2px solid transparent; cursor: pointer; text-align: left; width: 100%; font-size: 16px; font-weight: 500; line-height: 1.35; }
.opt .r { width: 22px; height: 22px; flex: none; border-radius: 11px; border: 2px solid #9AA8A1; background: #FFFFFF; }
.opt.on { background: var(--gs); border-color: var(--g); }
.opt.on .r { border: 7px solid var(--g); }
.opt.ck { justify-content: flex-start; gap: 14px; padding: 12px 16px; }
.opt.ck .b { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid #9AA8A1; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.opt.ck.on .b { background: var(--g); border-color: var(--g); }
.opt.ck .b svg { display: none; }
.opt.ck.on .b svg { display: block; }

/* Lists */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--surf); text-align: left; cursor: pointer; }
.row .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.row .t b { font-size: 15px; font-weight: 600; }
.row .t span { font-size: 14px; color: var(--g); font-weight: 500; }
.row.static { cursor: default; }
.av { width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--g); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 2px dashed #9AA8A1; border-radius: 16px; background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--g); cursor: pointer; }

/* Footer */
.ft { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border-top: 1px solid #EEF2EF; flex: none; }
.btn { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 28px; background: var(--g); color: #FFFFFF; font-size: 17px; font-weight: 600; border: 0; cursor: pointer; width: 100%; }
.btn:disabled { background: #B9C6BF; cursor: default; }
.link { display: flex; align-items: center; justify-content: center; height: 48px; border: 0; background: none; color: var(--g); font-size: 16px; font-weight: 600; cursor: pointer; width: 100%; }

/* Start screen */
.start { flex: 1; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.wm { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.4px; }
.wm span { color: var(--g); }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks div { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 500; }
.ticks i { width: 26px; height: 26px; flex: none; border-radius: 13px; background: var(--gs); display: flex; align-items: center; justify-content: center; }

.opts.compact { gap: 7px; }
.opts.compact .opt { min-height: 46px; padding: 8px 18px; font-size: 15px; }
.wm b { font-weight: 700; }

.inl { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 8px; margin: 0 3px; border-radius: 10px; background: #FFFFFF; border: 2px solid var(--line); font-weight: 700; font-size: 16px; text-align: center; }
input.inl { width: 52px; border-color: var(--g); }
input.inl:focus { outline: none; }
.step { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 20px; border: 2px solid var(--line); }
.sb { width: 52px; height: 52px; border: 0; border-radius: 26px; background: var(--surf); font-size: 26px; font-weight: 600; cursor: pointer; }
.sn { width: 110px; border: 0; text-align: center; font-size: 36px; font-weight: 700; background: none; }
.sn:focus { outline: none; }
.para { margin: 0; padding: 18px; border-radius: 20px; background: var(--surf); font-size: 16px; line-height: 1.6; }

.warn { padding: 14px 16px; border-radius: 16px; background: var(--ambs); font-size: 14px; line-height: 1.55; color: #5A3B0B; }
.ov { position: fixed; inset: 0; z-index: 10; display: flex; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(19,32,27,0.45); }
.sheet { position: absolute; bottom: 0; width: 100%; max-width: 480px; max-height: 90dvh; overflow-y: auto; padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 700; }
.wi { padding: 14px 16px; border-radius: 16px; background: var(--ambs); }
.wi b { display: block; font-size: 14px; margin-bottom: 4px; }
.wi p { margin: 0; font-size: 14px; line-height: 1.55; color: #5A3B0B; }
.timein { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--mut); }
.timein .txt { width: 160px; height: 52px; font-size: 17px; }
.link.danger { color: var(--red); }

/* Compact sizing so screens fit a phone's visible area with browser bars (tested at 375 x 660) */
.hd { padding: 10px 16px 0; gap: 10px; }
.hd-row { height: 40px; }
.back { width: 40px; height: 40px; border-radius: 20px; }
main { padding: 16px 20px 12px; gap: 12px; }
h1 { font-size: 21px; }
.help { font-size: 14px; line-height: 1.45; }
.tb { gap: 8px; }
.chip { padding: 4px 10px; font-size: 12px; }
.opts { gap: 8px; }
.opt { min-height: 48px; padding: 9px 16px; font-size: 15px; }
.opt.ck { padding: 9px 14px; }
.opts.compact { gap: 6px; }
.opts.compact .opt { min-height: 42px; padding: 7px 16px; font-size: 15px; }
.txt { height: 52px; font-size: 17px; }
.date .txt { font-size: 18px; }
.sel { height: 52px; }
.note { padding: 11px 14px; font-size: 13px; }
.step { padding: 6px; }
.sb { width: 46px; height: 46px; }
.sn { font-size: 30px; }
.ft { padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); }
.btn { height: 52px; }
.link { height: 40px; }
.row { min-height: 56px; padding: 9px 14px; }
.av { width: 38px; height: 38px; font-size: 15px; }
.para { padding: 14px; font-size: 15px; }
.sub { margin-top: 0; font-size: 15px; }
.opts.compact { gap: 5px; }
.opts.compact .opt { min-height: 40px; padding: 6px 16px; }

.sn { display: block; width: auto; min-width: 90px; }
.mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 16px; border: 2px solid var(--line); font-size: 15px; font-weight: 600; color: var(--mut); }
.mini-c { display: flex; align-items: center; gap: 6px; }
.mini-c b { min-width: 44px; text-align: center; font-size: 22px; color: var(--ink); }
.mini .sb { width: 42px; height: 42px; font-size: 22px; }

.sheet { overflow: hidden; }
.sheet > .grab, .sheet > h2, .sheet-ft { flex: none; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.sheet-body .wi { flex: none; }
.sheet-ft { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.sheet-ft .btn { flex: none; }

/* Time section */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surf); }
.card .chip { margin-bottom: 4px; white-space: nowrap; }
.card b { font-size: 16px; }
.card .rng { font-size: 13px; color: var(--mut); }
.card p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.more { align-self: flex-start; border: 0; background: none; padding: 4px 0; color: var(--g); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.res p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.res a, .help a { color: var(--g); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i, .strip i { display: inline-block; border-radius: 3px; }
.legend i { width: 12px; height: 12px; }
.legend .lg-r { margin-left: auto; color: var(--mut); font-weight: 500; }
.pa { background: var(--g); } .pb { background: var(--amb); }
.opts.pat { gap: 7px; }
.opt.patc { align-items: center; min-height: 0; padding: 9px 14px; }
.patc .pt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.patc .pt b { font-size: 15px; } .patc .pt > span:not(.strip) { font-size: 13px; color: var(--mut); font-weight: 500; }
.strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; margin-top: 5px; }
.strip i { height: 10px; } .strip i.gap { margin-left: 3px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.gd { border: 0; border-radius: 12px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #FFFFFF; cursor: pointer; font-family: inherit; }
.gd span { font-size: 11px; font-weight: 600; } .gd b { font-size: 18px; }
.gd.pb { color: #3D2A06; }
.kid { display: flex; flex-direction: column; gap: 6px; }
.box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); }

.res p { font-size: 13.5px; line-height: 1.5; }
.opt.patc { padding: 7px 14px; }
.strip { margin-top: 4px; } .strip i { height: 8px; }
.patc .pt b { font-size: 14.5px; }
.opts.pat { gap: 6px; }
.wi.info { background: var(--surf); } .wi.info p { color: var(--ink); }

/* iOS Safari sizes date and time inputs by their own rules; force them to fit the box */
input[type="date"].txt, input[type="time"].txt { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; box-sizing: border-box; line-height: 48px; }
input[type="date"].txt { width: 100%; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field { min-width: 0; }

/* Our own date and time box, the same on every device and browser */
.pick { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 16px; background: #FFFFFF; cursor: pointer; overflow: hidden; }
.pick:focus-within { border-color: var(--g); }
.pick .pv { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pv.empty { color: var(--mut); font-weight: 500; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; font-size: 16px; }
.pick.small { width: 170px; flex: none; }
.timein { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--mut); }

/* Small screens (short phones, landscape, split screen): tighten further so most screens still fit */
@media (max-height: 620px), (max-width: 340px) {
  .hd { padding-top: 6px; gap: 8px; } .hd-row { height: 36px; } .back { width: 36px; height: 36px; }
  main { padding: 10px 16px 8px; gap: 9px; }
  h1 { font-size: 18px; } .help, .note, .card p, .res p { font-size: 12.5px; }
  .opts { gap: 5px; } .opt { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .opts.compact .opt { min-height: 34px; padding: 4px 14px; font-size: 13.5px; }
  .opt.ck .b { width: 20px; height: 20px; } .opt .r { width: 18px; height: 18px; } .opt.on .r { border-width: 6px; }
  .txt, .sel, .pick { height: 44px; } .chip { font-size: 11px; padding: 3px 8px; }
  .card { padding: 9px 12px; } .note { padding: 8px 12px; }
  .ft { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); } .btn { height: 46px; font-size: 16px; } .link { height: 34px; }
  .row { min-height: 48px; padding: 6px 12px; } .av { width: 32px; height: 32px; }
  .opt.patc { padding: 5px 12px; } .strip i { height: 6px; } .sb { width: 40px; height: 40px; } .sn { font-size: 26px; }
  .mini .sb { width: 36px; height: 36px; }
}

.dt2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt2 .pick { width: 100%; }
.lab.grp { margin-top: 6px; font-size: 13px; text-transform: none; }
/* traditions list: ten choices on one screen */
.opts.compact.tight10 { gap: 3px; } .opts.compact.tight10 .opt { min-height: 32px; padding: 2px 14px; font-size: 14px; }
.opts.compact.tight10 .opt.ck .b { width: 20px; height: 20px; }
.hgrid { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 3px; align-items: center; }
.hgrid .hd { text-align: center; font-size: 11px; font-weight: 600; color: var(--mut); }
.hgrid .wk { font-size: 11px; font-weight: 600; color: var(--mut); line-height: 1.1; }
.hc { border: 0; border-radius: 8px; height: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #FFFFFF; cursor: pointer; font-family: inherit; padding: 0; opacity: .7; }
.hc span { font-size: 10px; font-weight: 600; line-height: 1; } .hc b { font-size: 13px; line-height: 1.1; }
.hc.pb { color: #3D2A06; }
.hc.hol { opacity: 1; box-shadow: 0 0 0 3px #000000; position: relative; z-index: 1; border-radius: 3px; }
.hgrid.dense .hc.hol { box-shadow: 0 0 0 2px #000000; }
.hgrid.dense { gap: 2px; } .hgrid.dense .hc { height: 27px; } .hgrid.dense .hc span { font-size: 9px; } .hgrid.dense .hc b { font-size: 12px; }
.hc.sd { background: #2F5288; color: #FFFFFF; cursor: default; opacity: 1; }
.legend i.sdk { background: #A9C0E3; }
.legend i.phk { background: #2F5288; }
.legend i.holk { background: #FFFFFF; box-shadow: inset 0 0 0 2px #000000; }
.legend:has(.holk) { flex-wrap: wrap; row-gap: 6px; }
.hgrid.dense .hc { height: 25px; }
.hc.sd[data-go] { cursor: pointer; }
textarea.txt.ta { height: auto; min-height: 96px; padding: 12px 16px; font-size: 16px; line-height: 1.45; resize: none; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; }
.card p + p { margin-top: 8px; }
.chip.lock { display: inline-flex; align-items: center; gap: 6px; }
.chip.lock svg { width: 13px; height: 13px; }
.opts.compact.dense { gap: 5px; } .opts.compact.dense .opt { min-height: 40px; padding: 6px 14px; font-size: 14px; line-height: 1.3; }
.opts.compact.dense .opt.ck .b { width: 20px; height: 20px; }
.copies { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 2px; } .copies .more { padding: 3px 0; }

.row.slim { min-height: 0; padding: 8px 14px; }
.row.slim .t span { color: var(--ink, #1E2A24); }
@media (max-height: 600px) { .hgrid.dense .hc { height: 21px; } .hgrid.dense .hc span { font-size: 8px; } .hgrid.dense .hc b { font-size: 11px; } }
main > * { flex-shrink: 0; }
.hc.sd.lt { background: #A9C0E3; color: #142A4D; }
@media (max-height: 700px) { .hgrid.dense .hc { height: 23px; } }
@media (max-height: 600px) { .hgrid.dense .hc { height: 21px; } }
@media (max-height: 600px) { .hgrid.dense .hc { height: 19px; } .hgrid .hc { height: 26px; } .hgrid.dense { gap: 1px; } }
textarea.txt.ta.sm { min-height: 72px; }
@media (max-height: 600px) { .opts.compact.dense .mini { padding: 2px 4px 2px 14px; } .opts.compact.dense .mini .sb { width: 30px; height: 30px; font-size: 18px; } .opts.compact.dense .mini-c b { font-size: 18px; } .opts.compact.dense .opt { min-height: 36px; padding: 5px 12px; } }
@media (max-height: 600px) { .tb .chip:not(.lock) { display: none; } }
.opts.compact.dense.tight { gap: 4px; } .opts.compact.dense.tight .opt { min-height: 36px; padding: 4px 14px; }

/* money */
.splitbox { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surf); }
.sbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; } .sbar span:first-child { background: var(--g); } .sbar span:last-child { background: #E8A33D; }
.slab { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; } .slab b { font-size: 22px; }
.splitbox input[type=range] { width: 100%; accent-color: var(--g); height: 28px; }
.money { display: flex; align-items: center; gap: 8px; } .money span { font-size: 20px; font-weight: 700; } .money .txt { flex: 1; }
.card.note { background: #E3F0E9; display: flex; flex-direction: column; gap: 10px; } .card.note p { font-size: 14px; }
.card.note .mini { background: #FFFFFF; }
.row.tight { min-height: 0; padding: 7px 16px; }
.rows:has(.row.tight) { gap: 6px; } .row.tight { padding: 5px 16px; } .row.tight .t { gap: 0; }
.splitbox { padding: 10px 14px; gap: 6px; } .slab b { font-size: 19px; } .splitbox input[type=range] { height: 24px; }
/* Fixed-text cards (Kevin 10 Nov): one size everywhere, 15px; only very small screens drop to 13px */
@media (max-height: 700px) { .card p { line-height: 1.45; } .card { padding: 10px 14px; } }
@media (max-height: 620px), (max-width: 340px) { .card p { font-size: 13px; line-height: 1.4; } }
/* Ready to send: price box */
.card.price .pr { align-self: stretch; display: flex; align-items: baseline; justify-content: space-between; }
.card.price .pr b { font-size: 16px; color: var(--g, #1E6B4E); }
.card.price .pr span { font-size: 30px; font-weight: 700; color: var(--g, #1E6B4E); }
/* Review mode (the other parent) */
.rvb { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #FBEBD3; font-size: 14px; line-height: 1.45; }
.rvb .av { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--g, #1E6B4E); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.rvb.sug { background: var(--surf, #F1F5F2); color: var(--mut, #56635D); }
.rvb.mine { background: #E3F0E9; }
main.locked .opts, main.locked .mini, main.locked .pick, main.locked .field, main.locked .splitbox { pointer-events: none; }
.btn.ghost { background: #FFFFFF; color: var(--g, #1E6B4E); border: 2px solid var(--g, #1E6B4E); }
.was { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #8A5A12; }
main.locked .opts .mini { display: none; }
.rvb { padding: 8px 12px; }
.ft:has([data-act="rvsuggest"]) .btn, .ft:has([data-act="rvsave"]) .btn { height: 48px; }
.ft:has([data-act="rvsuggest"]) { gap: 6px; }
/* review footer: Continue and Suggest alternative side by side to save height */
.ft.rvf { flex-direction: row; flex-wrap: wrap; }
.ft.rvf .btn { flex: 1 1 0; min-width: 0; font-size: 16px; padding: 0 8px; }
.ft.rvf .link { flex-basis: 100%; }
.row.chg { border: 2px solid #E8A33D; background: #FFFFFF; }
.row .sg { color: #8A5A12 !important; font-weight: 600; }

/* First parent gets the plan back */
.cnt { display: flex; gap: 10px; }
.cnt > div { flex: 1; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.cnt b { font-size: 28px; font-weight: 700; }
.cnt span { font-size: 13px; line-height: 1.35; }
.cnt .g { background: #E3F0E9; } .cnt .g b { color: var(--g, #1E6B4E); }
.cnt .a { background: #FBEBD3; } .cnt .a b { color: #8A5A12; }
.row.sgr { background: #FFFFFF; border: 2px solid #E8A33D; align-items: center; gap: 12px; }
.row.sgr.done { border-color: var(--line, #DCE4DF); }
.ring { flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 11px; border: 2px solid #E8A33D; display: flex; align-items: center; justify-content: center; }
.ring.on { background: var(--g, #1E6B4E); border-color: var(--g, #1E6B4E); }
.ring svg { width: 14px; height: 14px; }
.cmp { display: flex; flex-direction: column; gap: 8px; }
.cmp > div { padding: 12px 16px; border-radius: 16px; background: var(--surf, #F1F5F2); font-size: 14px; color: var(--mut, #56635D); }
.cmp > div b { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; color: var(--ink, #13201B); }
.cmp > div.th { background: #FBEBD3; color: #8A5A12; }
.ft .pair { display: flex; gap: 10px; }
.ft .pair .btn { flex: 1 1 0; min-width: 0; font-size: 16px; padding: 0 8px; }
.ring.amb { background: #E8A33D; border-color: #E8A33D; }
.row.sgr:not(.done) .t > span { color: #8A5A12; }
.cmp .why { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink, #13201B); }
.was.mine { color: #8A5A12; } /* Kevin 10 Nov: amber so it stands out */
/* Signing */
.sigbox { display: flex; flex-direction: column; gap: 4px; }
.sigtop { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--mut, #56635D); }
.link.sm { font-size: 14px; height: auto; padding: 0; width: auto; }
canvas.sig { width: 100%; height: 110px; border: 2px solid var(--g, #1E6B4E); border-radius: 16px; background: #FFFFFF; touch-action: none; }
.signame { border-top: 1px solid var(--line, #DCE4DF); margin: 0 16px; padding-top: 4px; font-size: 14px; text-align: center; color: var(--ink, #13201B); }
@media (max-height: 600px) { canvas.sig { height: 96px; } }
.tb.tc, .help.tc { text-align: center; align-items: center; }
.big { width: 64px; height: 64px; border-radius: 32px; background: #E3F0E9; display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; }
.big svg { width: 30px; height: 30px; } .big.on { background: var(--g, #1E6B4E); }
.sgns { display: flex; flex-direction: column; gap: 8px; }
.sgn { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--surf, #F1F5F2); font-size: 15px; }
.sgn b { color: var(--g, #1E6B4E); font-weight: 600; } .sgn i { color: #8A5A12; font-style: normal; font-weight: 600; }
.warn a, .wi a { color: var(--g, #1E6B4E); font-weight: 600; }
/* Kevin 10 Nov: amber at 10 rounds, red from 20 */
.warn.red, .wi.red { background: #FBE3E1; color: #8C1D18; border-color: #E8A39D; }
.warn.red a, .wi.red a { color: #8C1D18; }
main.locked [data-addmore] { display: none; }
/* Kevin 10 Nov: gecko progress bar with a light green trail */
.bar { position: relative; overflow: visible; }
.bar > div { background: #BFE3CC; }
.bar .gk { position: absolute; top: 50%; width: 24px; height: 24px; transform: translate(-75%, -50%) rotate(135deg); transition: left 0.25s ease; pointer-events: none; }
/* room for the gecko inside the header, without changing the space above the heading */
.hd { padding-bottom: 9px; position: relative; z-index: 2; background: #FFFFFF; }
.hd + main { padding-top: 7px; }
@media (max-height: 600px) { .hd + main { padding-top: 1px; } }
.bar .gk { width: 22px; height: 22px; }
/* Kevin 10 Nov: a time for each day */
.daytimes .dtrow { display: flex; gap: 8px; align-items: stretch; }
.daytimes .dtrow .opt { flex: 1; min-width: 0; }
.daytimes .dtrow .pick { width: 132px; flex: none; }
.daytimes .dtrow .pick { width: 112px; padding: 0 10px; justify-content: center; }
.daytimes .dtrow .pick svg { display: none; }
.daytimes .dtrow .pick .pv { overflow: visible; text-overflow: clip; white-space: nowrap; }
.daytimes + .add { min-height: 44px; padding: 8px; }
.daytimes .dtrow .pick { height: auto; min-height: 0; }
main.locked [data-go="copy"] { display: none; }
.opt-l { font-weight: 400; color: var(--mut, #56635D); font-size: 0.9em; }
/* Special days calendar (Kevin 10 Nov) */
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calnav b { font-size: 15px; }
.cnb { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surf); font-size: 26px; line-height: 1; color: var(--ink, #13201B); cursor: pointer; font-family: inherit; }
.cnb:disabled { opacity: .35; cursor: default; }
span.hc { cursor: default; }
.calbtn { width: 100%; flex: none; }
/* the first parent's answer sits under a time box, not squeezed beside it (Kevin 10 Nov) */
.timein:has(> .was) { flex-wrap: wrap; row-gap: 4px; }
.timein > .was { flex-basis: 100%; text-align: right; margin: 0; }
/* a link inside the review banner (Kevin 10 Nov) */
.rvb .rvlink { margin-left: auto; border: 0; background: none; color: var(--g, #1E6B4E); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0 0 0 8px; white-space: nowrap; }
.ft.rvf .btn.ghost { white-space: normal; line-height: 1.15; }
/* review: compact "Kevin chose this answer" tag (Kevin 10 Nov) */
.tbrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.tbrow .chip { align-self: auto; }
.rvtag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px 3px 3px; border-radius: 14px; background: #FBEBD3; font-size: 13px; font-weight: 600; color: #3D2A06; }
.rvtag .av { flex: none; width: 20px; height: 20px; border-radius: 10px; background: var(--g, #1E6B4E); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.rvtag .rvlink { border: 0; background: none; color: var(--g, #1E6B4E); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0 0 0 4px; white-space: nowrap; }
.rvtag.mine { background: #E3F0E9; color: #13201B; }
.rvtag { line-height: 1.3; }
/* first parent's answer marker sits on the option's last line where it fits (Kevin 10 Nov) */
.opt .was { display: inline-block; margin: 2px 0 0 8px; }
.opt .was { color: #8A5A12 !important; font-size: 13px !important; font-weight: 600 !important; }
/* term dates (Kevin 11 Nov) */
.terms { display: flex; flex-direction: column; gap: 8px; }
.trow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4px 8px; }
.trow b { grid-column: 1 / -1; font-size: 14px; }
.trow > span { display: none; }
.trow .pick { min-width: 0; }
.trow .pick .pv { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend i.sd2 { background: linear-gradient(135deg, #2F5288 50%, #A9C0E3 50%); } /* Kevin 11 Nov: special days come in two shades */
