/* Clear blue and turquoise, with white working surfaces. */
:root{--navy:#143c57;--blue:#1260d6;--green:#007b67;--red:#be3453;--muted:#587383;--line:#d8e8ee;background:#e9f4f8;color:#193d50}.shell{background:#f5fafc;box-shadow:0 16px 80px #2783a314}.app-header{border-bottom-color:#e3eef4}.brand-icon{background:linear-gradient(140deg,#357de6,#10ada7);color:white;box-shadow:0 5px 15px #159ea626}.eyebrow{color:#14818d}.hero-card{background:linear-gradient(125deg,#e3f1ff 0%,#e0f8f4 100%);color:#163d5a;box-shadow:0 12px 28px #219db010;border:1px solid #cce9ed}.hero-card:after{color:#208fc90b}.hero-card .eyebrow{color:#086f87}.hero-card .muted{color:#466d7c}.hero-card .primary{background:linear-gradient(110deg,#1769dd,#078990);color:#fff;box-shadow:0 5px 12px #168bba24}.primary{background:linear-gradient(110deg,#1769dd,#1478cd);box-shadow:0 5px 12px #227dc51c}.summary{background:linear-gradient(125deg,#e6f2ff,#e0f7f0);color:#153f5a;border:1px solid #cce6ed;box-shadow:0 8px 22px #168cab0b}.summary .muted,.summary dt{color:#466d7c}.summary .profit{color:#007560}.summary .loss{color:#ba3152}.summary .total{border-color:#b6dce2}.summary .neutral{color:#42667c}.participant-list .selected,.count-grid .selected{background:linear-gradient(120deg,#2678dc,#138b9e);border-color:transparent}.tabs{background:#eef6f9}.tabs .selected{color:#1665b4}.quick button{background:#eaf5fe;color:#245e9b}.avatar{background:#e8f7f5;color:#0b7b75}.card,.payment{border-color:#e0ebf0;box-shadow:0 3px 12px #17687d04}.home-note .number{background:#e4f5f4;color:#087c7a;border-radius:10px;display:grid;place-items:center;width:30px;height:30px;padding:0}.tag{background:#e8f5fa;color:#226683}.sticky{background:linear-gradient(#f5fafcdd,#f5fafc)}.result-person .final{background:#edf8f7}.per-person{flex-wrap:wrap}.mini-totals p{font-size:clamp(.95rem,4.5vw,1.2rem)}.summary dd{font-size:clamp(1rem,4.8vw,1.25rem)}.large-money{font-size:clamp(1.25rem,6.4vw,2.1rem)}.history-card .row{flex-wrap:wrap}.result-person .final{flex-wrap:wrap}.summary .total{flex-wrap:wrap}.app-header a{letter-spacing:0}.payment .amount{color:#126b9d}button:focus-visible,input:focus-visible{outline-color:#2686c6}button[disabled]{box-shadow:none}.history-entry .mt{margin-top:6px}.intro{margin-bottom:22px}.hero-card{margin-top:20px}summary::after{content:'＋';margin-left:auto;padding-left:10px;color:#36849d}details[open]>summary::after{content:'−'}

.sticky.stack{position:static}

/* Keep the numeric keyboard usable for losses too. */
.adjust-row{grid-template-columns:minmax(0,1fr) 52px 20px}.adjust-row>label{grid-column:1/-1}.adjust-row>button{padding:10px;font-size:1.3rem}.adjust-row input{min-width:0}#settlement-error,#unit-error,#adjust-live{scroll-margin-block:24px}

.allocation-summary .row{flex-wrap:wrap}.allocation-summary .notice{margin-bottom:12px}#adjustment>h2{margin-bottom:16px}

.recovery-choice{background:#fff;border:2px solid var(--line);text-align:left;padding:20px;color:var(--navy)}.recovery-choice strong{display:block;font-size:1.2rem}.recovery-choice span{display:block;font-size:.9rem;font-weight:400;line-height:1.8;margin-top:8px;color:var(--muted)}.recovery-choice.selected{border-color:var(--blue);background:#e9f5ff}.adjust-row{grid-template-columns:minmax(0,1fr) 96px 20px}.adjust-step-controls{display:grid;gap:6px}.adjust-step-controls button{min-height:48px;font-size:.875rem;padding:8px 4px;touch-action:manipulation}
