/* Shared by the website and the bundled Android form. */
#entry-form.entry-composer{display:flex;flex-direction:column;gap:20px;min-width:0}
.entry-composer>.form-field,.entry-composer>.asset-entry-fields{margin:0}
#entry-form.entry-composer .entry-type{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:4px;padding:4px;border:0;border-radius:14px;margin:0}
#entry-form.entry-composer .entry-type label{margin:0;min-width:0;display:block;position:relative;font-size:15px}
#entry-form.entry-composer .entry-type label>span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;border-radius:11px}
#entry-form.entry-composer .entry-type label:has(input:checked){background:transparent}
#entry-form.entry-composer .entry-type input:checked+span{background:var(--accent-soft);color:var(--action);font-weight:700}
.entry-composer .form-field>label,.entry-composer .between>label{display:block;font-size:14px;color:var(--muted);line-height:1.5;margin:0 0 8px}
#entry-form.entry-composer #entry-amount{min-height:64px;font-size:clamp(30px,8vw,40px);font-weight:700;letter-spacing:-1px;border:0;background:transparent;padding:0;box-shadow:none}
.entry-composer .money-input{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.entry-composer .money-input>span{font-size:24px;top:16px;right:0;padding:0 0 0 4px;color:var(--ink)}
.entry-composer #entry-name{background:var(--wash);border:1px solid transparent;font-size:16px;min-height:48px}
.entry-composer .entry-category-field>.between{align-items:baseline}
.entry-composer .entry-category-field>.between .text-button{font-size:12px;min-height:32px;padding:0}
.entry-choice-grid{display:grid;gap:8px;margin-top:8px;min-width:0}
.entry-choice-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.entry-choice-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.entry-composer .entry-choice{position:relative;display:block;min-width:0;margin:0;cursor:pointer}
.entry-choice-input,#entry-form.entry-composer .entry-type input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;margin:0;padding:0;border:0;opacity:0;overflow:hidden;clip-path:inset(50%)}
.entry-choice-face{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;height:100%;padding:10px 8px;border:1px solid #dce1e7;border-radius:12px;background:white;font-size:14px;line-height:1.4;color:var(--ink)}
.entry-choice-name{min-width:0;overflow-wrap:anywhere}
.entry-choice-face>.icon{width:21px;height:21px}
.entry-choice-check{display:none;flex-shrink:0}
.entry-choice-check>.icon{width:16px;height:16px}
.entry-choice-input:checked+.entry-choice-face{border-color:var(--action);background:var(--accent-soft);color:var(--action);font-weight:700}
.entry-choice-input:checked+.entry-choice-face .entry-choice-check{display:block}
.entry-choice-input:checked+.entry-choice-face>.icon{display:none}
.entry-choice-columns-2 .entry-choice-input:checked+.entry-choice-face>.icon{display:block}
.entry-choice-input:checked+.entry-choice-face .icon{filter:invert(30%) sepia(54%) saturate(1078%) hue-rotate(120deg) brightness(90%) contrast(94%)}
.entry-choice-input:focus-visible+.entry-choice-face,#entry-form.entry-composer .entry-type input:focus-visible+span{outline:3px solid var(--action);outline-offset:3px}
.entry-choice-input:disabled+.entry-choice-face{opacity:.5;cursor:default}
.entry-choice-grid[aria-invalid=true]{outline:2px solid var(--negative);outline-offset:4px;border-radius:12px}
.entry-composer .asset-entry-fields{display:flex;flex-direction:column;gap:8px;border-block:1px solid var(--line);padding-block:20px}
.entry-composer .asset-entry-fields>.form-field{margin:0}
.entry-composer .asset-entry-fields>.form-help{font-size:12px;line-height:1.6;margin:0}
.entry-composer .asset-entry-fields>[data-manage-assets]{align-self:flex-start;min-height:36px;padding:4px 0;font-size:12px}
.entry-composer .entry-date-field{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:8px}
.entry-composer .entry-date-field>label{margin:0}
.entry-date-value{text-align:right;font-size:13px;color:var(--muted)}
.entry-date-choices{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px}
.entry-date-choices>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 6px;border:1px solid #dce1e7;border-radius:12px;font-size:14px;line-height:1.4}
.entry-date-choices>button>.icon{width:18px;height:18px}
.entry-date-choices>button:not([data-entry-date=custom]):not([aria-pressed=true])>.icon{visibility:hidden;width:0}
.entry-date-choices>[aria-pressed=true]{background:var(--accent-soft);color:var(--action);border-color:var(--action);font-weight:700}
.entry-composer #entry-date{grid-column:1/-1;font-size:16px}
.entry-composer .entry-scheduled-link{margin:0;border:0}
.entry-composer .entry-scheduled-link>summary{display:flex;align-items:center;gap:6px;min-height:44px;list-style:none;color:var(--action);font-size:14px;cursor:pointer}
.entry-composer .entry-scheduled-link>summary::-webkit-details-marker{display:none}
.entry-composer .entry-scheduled-link>summary>.icon{width:18px;height:18px}
.entry-composer .entry-installment-options{font-size:13px;margin:4px 0}
.entry-composer .entry-installment-options>summary{min-height:44px;align-content:center;cursor:pointer}
.entry-composer .entry-other-actions>summary{min-height:44px;align-content:center;font-size:13px;color:var(--muted);cursor:pointer}
.entry-composer .entry-other-actions>button{display:flex;min-height:44px}
.entry-composer>.dialog-actions{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:12px 0 max(4px,env(safe-area-inset-bottom));background:white;border-top:1px solid var(--line)}
.entry-composer>.dialog-actions>button[type=submit]{width:100%;min-height:52px;border-radius:14px;font-size:16px}
.entry-composer>.dialog-actions>.danger{order:1;min-height:44px}
.entry-composer>.form-error{margin:0}
.native-app dialog.native-sheet .entry-composer>.dialog-actions{position:static;padding:0;border:0}
@media(max-width:360px){.entry-choice-face{padding:10px 5px;gap:4px;font-size:13px}.entry-choice-face>.icon{width:18px;height:18px}.entry-choice-check>.icon{width:14px;height:14px}}
@media(forced-colors:active){.entry-choice-input:checked+.entry-choice-face,.entry-date-choices>[aria-pressed=true]{outline:2px solid Highlight}}
