/* THIS IS FLORIDA: Bill Splitter and Tip Calculator */
.app [hidden] { display: none !important; }
.sp-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; align-items: start; }
.sp-layout > * { min-width: 0; }
.editor fieldset { min-width: 0; }
.sp-money { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; font-size: 1.2rem; font-weight: 700; }
.sp-money input { margin-top: 0; font-size: 1.2rem; }
#q-sub, #q-tax, #q-custom, #q-people { font-size: 1.2rem; }
.sp-group { display: flex; flex-wrap: wrap; gap: .4rem; margin: .55rem 0; }
.sp-tips .sp-seg { flex: 1 1 4.2rem; font-size: 1.05rem; }
.app button.sp-seg { flex: 1 1 auto; min-width: 44px; }
.app button.sp-seg[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.app button.sp-seg[aria-pressed="true"]::before { content: "\2713  "; }
.sp-stepper { display: flex; align-items: stretch; gap: .4rem; max-width: 16rem; }
.editor .sp-stepper input { margin-top: 0; text-align: center; flex: 1 1 auto; min-width: 0; }
.app .sp-stepper button { min-width: 52px; font-size: 1.4rem; line-height: 1; }
.editor label.sp-check { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; font-weight: 600; }
.editor .sp-check input { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; margin: 0; accent-color: var(--brand); }
.sp-results { background: var(--card); border: 2px solid var(--brand); border-radius: .7rem; padding: 1rem 1.1rem; position: sticky; top: .75rem; }
.sp-rh { margin: 0 0 .5rem; font-size: 1.2rem; }
.sp-lines { margin: 0; }
.sp-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: 1.1rem; }
.sp-lines dt { color: var(--muted); }
.sp-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-lines .sp-total { border-bottom: 0; font-size: 1.35rem; }
.sp-lines .sp-total dt { color: var(--ink); font-weight: 700; }
.sp-share { margin: .8rem 0 .4rem; padding: .8rem; background: #e6f2ec; border-radius: .6rem; text-align: center; }
.sp-share-l { margin: 0; font-weight: 700; font-size: 1.05rem; }
.sp-big { margin: .2rem 0 0; font-size: clamp(2.1rem, 9vw, 3.2rem); font-weight: 800; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-note { margin: .6rem 0 0; line-height: 1.5; font-size: 1.02rem; }
.sp-warn { color: var(--danger); font-weight: 600; }
.sp-person { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 .6rem; }
.sp-person label { flex: 1 1 12rem; }
.sp-person button { margin: .55rem 0; }
.sp-item { border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: .6rem; }
.sp-item:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.sp-item-row { display: flex; flex-wrap: wrap; gap: 0 .6rem; }
.sp-iname { flex: 2 1 12rem; }
.sp-iprice { flex: 1 1 7rem; }
.editor fieldset.sp-who { border: 0; padding: 0; margin: 0 0 .3rem; background: transparent; display: flex; flex-wrap: wrap; gap: .4rem; }
.editor .sp-who legend { padding: 0; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.editor label.sp-chip { margin: 0; padding: .3rem .8rem .3rem .6rem; border: 1px solid #8fa79c; border-radius: 999px; background: #fff; overflow-wrap: anywhere; }
.editor label.sp-chip:has(input:checked) { background: #e6f2ec; border-color: var(--brand); }
.sp-item-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.sp-people-out { list-style: none; margin: .8rem 0 0; padding: 0; }
.sp-people-out li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.sp-pn { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.sp-pt { font-weight: 800; font-size: 1.6rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.sp-pd { flex-basis: 100%; color: var(--muted); font-size: .92rem; }
.sp-summary { margin-top: 1rem; }
.sp-summary label { display: block; font-weight: 700; margin-bottom: .25rem; }
.sp-summary textarea { display: block; width: 100%; box-sizing: border-box; min-height: 12rem; padding: .55rem .65rem; border: 1px solid #8fa79c; border-radius: .4rem; font: .95rem/1.45 Consolas, "Courier New", monospace; color: var(--ink); background: #fff; resize: vertical; }
.sp-summary .toolbar { margin-top: .5rem; }
.tips h2 { margin-top: 1.4rem; }
.tips a { display: inline-block; min-height: 44px; line-height: 44px; }
.sp-taxnote a, .foot a, .kicker a { display: inline-block; min-height: 44px; line-height: 44px; }
.tips ul li { margin: .15rem 0; }
#tax-facts:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
