:root {
    color-scheme:dark;
    --bg:#171816;
    --surface:#222320;
    --line:#393a35;
    --ink:#f8f5ed;
    --muted:#b9bab1;
    --lime:#dcff68;
    --lav:#c1a4ed;
    --paper:#faf6ed;
    --black:#171815;
    --radius:23px;
    font:16px/1.45 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    min-height:100vh;
}

button,input,textarea,select {
    font:inherit;
}

a {
    color:inherit;
    text-decoration:none;
}

button,summary,select {
    cursor:pointer;
}

button {
    color:inherit;
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline:3px solid #9985f0;
    outline-offset:3px;
}

h1,h2,h3,p {
    margin:0;
}

h1,h2,.number,.hero-sum,.folder strong,.modal-total b {
    letter-spacing:-.055em;
}

h1 {
    font-size:clamp(2.2rem,4.8vw,4.35rem);
    line-height:1.02;
    font-weight:750;
}

h2 {
    font-size:clamp(1.45rem,2.4vw,2.05rem);
    line-height:1.12;
}

button,a,summary {
    -webkit-tap-highlight-color:transparent;
}

.icon {
    flex:none;
    vertical-align:middle;
}

.wrap {
    width:min(1512px,100%);
    padding:0 clamp(16px,4.5vw,74px) 72px;
    margin:auto;
}

.mast {
    min-height:90px;
    display:flex;
    align-items:center;
    gap:clamp(18px,3vw,48px);
    border-bottom:1px solid var(--line);
}

.logo {
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:900;
    font-size:31px;
    letter-spacing:-.085em;
    line-height:1;
}

.logo .icon {
    width:39px;
    height:39px;
    stroke-width:1.9;
}

.topnav,.head-actions,.pill,.text-link,.month-select,.month-select span,.hero-label,.section-head,.legend,.chart-heading,.folder-name,.folder-foot,.who,.avatars,.modal-total,.due,.rule-row,.author,.primary,.flash,.amount-line,.extras summary,.file-choice,.paper-form>summary,.heading,.mobile-nav a {
    display:flex;
    align-items:center;
}

.topnav {
    gap:3px;
}

.topnav a,.pill {
    border-radius:99px;
    padding:10px 17px;
    font-weight:600;
    font-size:.91rem;
}

.topnav a:hover,.topnav a:focus-visible {
    background:var(--surface);
}

.topnav a[aria-current],.accent {
    background:var(--lime);
    color:var(--black);
}

.head-actions {
    margin-left:auto;
    gap:16px;
}

.pill {
    gap:7px;
    justify-content:center;
    min-height:42px;
    border:1px solid var(--line);
    white-space:nowrap;
}

.pill:not(.accent):hover {
    border-color:var(--muted);
}

.pill .icon,.text-link .icon {
    width:17px;
    height:17px;
}

.avatar {
    width:31px;
    height:31px;
    border-radius:50%;
    color:var(--black);
    display:inline-grid;
    place-items:center;
    font-size:.83rem;
    line-height:1;
    font-weight:750;
}

.u1 {
    background:#c4a6ee;
}

.u2 {
    background:#a5e0b9;
}

.account {
    position:relative;
}

.account summary,.extras summary,.paper-form summary {
    list-style:none;
}

.account summary::-webkit-details-marker,.extras summary::-webkit-details-marker,.paper-form summary::-webkit-details-marker {
    display:none;
}

.account summary {
    padding:4px;
}

.account summary .avatar {
    width:39px;
    height:39px;
    font-size:1rem;
}

.account-box {
    position:absolute;
    right:0;
    top:100%;
    background:var(--surface);
    border:1px solid var(--line);
    padding:15px;
    border-radius:15px;
    z-index:8;
    min-width:170px;
    box-shadow:0 10px 30px #0003;
}

.account-box button,.quiet,.danger {
    background:none;
    border:0;
    padding:6px 0;
    text-decoration:underline;
    text-underline-offset:3px;
}

.heading,.section-head,.chart-heading,.folder-name,.folder-foot {
    justify-content:space-between;
    gap:14px;
}

.heading {
    margin:37px 0 25px;
}

.month-select {
    border-radius:60px;
    background:#f4efdf;
    color:var(--black);
    padding:3px;
}

.month-select a {
    display:grid;
    place-items:center;
    width:36px;
    height:37px;
    border-radius:50%;
}

.month-select a:hover {
    background:#e1dbca;
}

.month-select span {
    gap:8px;
    font-size:.92rem;
    font-weight:650;
}

.overview-grid {
    display:grid;
    grid-template-columns:1.13fr 1fr;
    gap:16px;
}

.hero,.panel,.card-paper,.paper-form {
    border-radius:var(--radius);
}

.hero {
    color:var(--black);
    background:var(--lime);
    padding:clamp(20px,2.4vw,35px);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.hero-label {
    gap:10px;
    font-weight:650;
    font-size:1.1rem;
}

.hero-sum {
    font-size:clamp(2.3rem,5vw,5.25rem);
    line-height:1.08;
    font-weight:700;
    margin:11px 0 2px;
    overflow-wrap:anywhere;
}

.hero>p {
    font-size:.93rem;
}

.hero-breakdown {
    margin-top:22px;
    padding-top:15px;
    border-top:1px solid #17181538;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 16px;
}

.hero-breakdown span,.hero-breakdown strong {
    display:block;
}

.hero-breakdown span {
    font-size:.78rem;
}

.hero-breakdown strong {
    font-size:clamp(1rem,1.5vw,1.35rem);
    letter-spacing:-.04em;
}

.panel {
    background:var(--surface);
    border:1px solid var(--line);
    padding:clamp(16px,2.1vw,29px);
}

.chart {
    display:flex;
    flex-direction:column;
}

.chart-heading {
    flex-wrap:wrap;
}

.legend {
    gap:12px;
    font-size:.78rem;
    color:var(--muted);
}

.legend span:before {
    content:"";
    display:inline-block;
    width:9px;
    height:9px;
    background:var(--lime);
    border-radius:3px;
    margin-right:5px;
}

.legend span+span:before {
    background:var(--lav);
}

.plot {
    display:flex;
    min-height:154px;
    flex:1;
    gap:5%;
    padding:18px 4% 0;
}

.plot-col {
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    text-align:center;
}

.bars {
    flex:1;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:5px;
    border-bottom:1px solid #626457;
    background:repeating-linear-gradient(0deg,transparent 0,transparent calc(33.33% - 1px),#ffffff0d calc(33.33% - 1px),#ffffff0d 33.33%);
}

.bar {
    width:clamp(9px,2vw,32px);
    height:var(--height);
    border-radius:6px 6px 0 0;
    background:var(--lime);
}

.bar.expense {
    background:var(--lav);
}

.axis {
    font-size:.78rem;
    color:var(--muted);
    margin-top:7px;
}

.section-head {
    margin:30px 0 15px;
}

.text-link {
    gap:6px;
    font-size:.85rem;
    color:var(--muted);
}

.text-link:hover {
    text-decoration:underline;
}

.folder-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
}

.lilac {
    --tint:#c5a7ea;
}

.blue {
    --tint:#a3cbe2;
}

.peach {
    --tint:#f6bd91;
}

.mint {
    --tint:#a9dbb8;
}

.butter {
    --tint:#e9da98;
}

.rose {
    --tint:#efb9bd;
}

.periwinkle {
    --tint:#b6c3ed;
}

.sand {
    --tint:#dbcbb5;
}

.folder {
    position:relative;
    display:flex;
    align-items:flex-end;
    min-height:155px;
    padding-top:22px;
    color:var(--black);
    isolation:isolate;
    transition:transform .16s;
}

.folder:hover {
    transform:translateY(-3px);
}

.sheet {
    position:absolute;
    background:linear-gradient(170deg,#fffaf0,#ded6c6);
    border:1px solid #fff7;
    right:7%;
    left:12%;
    height:68%;
    bottom:22%;
    border-radius:6px;
    z-index:-1;
}

.s1 {
    transform:rotate(-2deg);
}

.s2 {
    bottom:25%;
    right:10%;
    transform:rotate(-3deg);
}

.s3 {
    bottom:28%;
    right:13%;
    transform:rotate(-4deg);
}

.cover {
    border-radius:0 16px 17px 17px;
    padding:19px 17px 14px;
    position:relative;
    background:linear-gradient(130deg,#ffffff20,transparent 65%),var(--tint);
    width:100%;
    box-shadow:inset 0 1px #fff5;
}

.cover:before,.cat-pick>span:before,.modal-surface:before {
    content:"";
    position:absolute;
    background:var(--tint);
    left:0;
    bottom:calc(100% - 1px);
    width:43%;
    height:17px;
    clip-path:polygon(0 100%,0 45%,4% 8%,8% 0,80% 0,87% 14%,96% 89%,100% 100%);
}

.folder-name {
    font-size:clamp(1.05rem,1.6vw,1.5rem);
    font-weight:700;
    letter-spacing:-.035em;
}

.folder-name .icon {
    width:16px;
}

.folder strong {
    font-size:clamp(1.2rem,2.35vw,2.2rem);
    line-height:1.1;
    display:block;
    margin:5px 0 12px;
}

.folder-foot {
    font-size:.8rem;
    min-height:25px;
}

.avatars .avatar {
    width:25px;
    height:25px;
    border:1px solid #17181544;
    font-size:.72rem;
    margin-left:-4px;
}

.due-list {
    padding:3px 20px;
}

.due,.rule-row {
    gap:14px;
    padding:13px 0;
}

.due+.due,.rule-row+.rule-row {
    border-top:1px solid var(--line);
}

.due-icon {
    border-radius:12px;
    background:var(--tint);
    display:grid;
    place-items:center;
    color:var(--black);
    width:40px;
    height:40px;
    flex:none;
}

.due-label {
    flex:1;
}

.due small,.rule-row small,.record small {
    display:block;
    color:var(--muted);
    font-size:.8rem;
}

.due time,.rule-date {
    color:var(--muted);
    font-size:.88rem;
}

.due>b {
    min-width:95px;
    text-align:right;
}

.empty,.intro {
    color:var(--muted);
    font-size:.95rem;
}

.empty {
    padding:17px 0;
}

.mobile-nav {
    display:none;
}

.light,.card-paper,.paper-form,.folder-modal {
    color-scheme:light;
    --bg:var(--paper);
    --surface:#f3eee4;
    --ink:var(--black);
    --line:#d6cfc2;
    --muted:#68675e;
    color:var(--ink);
}

.light {
    background:var(--paper);
}

.light .topnav a[aria-current] {
    background:var(--black);
    color:var(--paper);
}

.entry-card,.auth {
    max-width:530px;
    margin:38px auto 0;
}

.entry-card h1,.auth h1 {
    margin-bottom:22px;
}

.entry-card h1 {
    font-size:clamp(2.6rem,4.5vw,3.9rem);
}

.stack,.stack fieldset:not(.cat-select),.stack label:not(.cat-pick):not(.file-choice),.field,.filters label {
    display:grid;
    gap:6px;
}

.stack {
    gap:17px;
}

.stack label,.field,.cat-select legend,.filters label {
    font-size:.89rem;
    font-weight:650;
}

.stack input:not([type=radio]):not([type=file]),.stack textarea,.stack select,.filters select {
    width:100%;
    min-width:0;
    background:transparent;
    color:var(--ink);
    border:1.3px solid #aca99c;
    border-radius:11px;
    min-height:46px;
    padding:10px 12px;
    line-height:1.25;
    font-size:16px;
    font-weight:450;
}

.stack input[type=date] {
    appearance:none;
    -webkit-appearance:none;
    display:block;
}

.stack input::placeholder,.stack textarea::placeholder {
    color:#807e73;
}

.stack textarea {
    resize:vertical;
    min-height:86px;
}

.stack fieldset {
    min-width:0;
    margin:0;
    border:0;
    padding:0;
}

.stack label.amount {
    display:block;
    background:var(--lime);
    color:var(--black);
    border-radius:20px;
    padding:18px 22px 16px;
}

.amount-line {
    gap:4px;
}

.stack .amount-line input {
    border:0!important;
    color:var(--black)!important;
    padding:1px 0!important;
    font-size:clamp(2.9rem,6vw,4.4rem)!important;
    letter-spacing:-.055em;
    font-weight:700!important;
    min-width:0;
}

.stack .amount-line input::placeholder {
    color:#4e5c29;
}

.amount-line b {
    font-size:clamp(2.5rem,5vw,3.8rem);
    line-height:1;
}

.cat-select legend {
    margin-bottom:6px;
}

.cat-scroll {
    display:flex;
    gap:9px;
    overflow-x:auto;
    padding:12px 2px 4px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#d3cdbf transparent;
}

.cat-pick {
    flex:0 0 29%;
    cursor:pointer;
    min-width:97px;
    position:relative;
    scroll-snap-align:start;
}

.cat-pick>span {
    display:flex;
    gap:5px;
    align-items:center;
    justify-content:space-between;
    padding:14px 9px 8px;
    background:var(--tint);
    color:var(--black);
    border-radius:0 8px 9px 9px;
    position:relative;
    font-weight:650;
    font-size:.94rem;
}

.cat-pick input {
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
}

.cat-pick>span:before {
    height:9px;
}

.cat-pick input:not(:checked)+span {
    --tint:#e5dccd;
}

.cat-pick input:focus-visible+span {
    outline:3px solid #7962bf;
}

.cat-pick .icon {
    width:17px;
    height:17px;
    border-radius:50%;
    padding:2px;
    background:var(--black);
    color:white;
    opacity:0;
}

.cat-pick input:checked+span .icon {
    opacity:1;
}

.pair,.extras {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.author {
    gap:8px;
    padding:7px 10px;
    border:1.3px solid #aca99c;
    min-height:46px;
    border-radius:11px;
    font-weight:500;
}

.author .avatar {
    width:25px;
    height:25px;
}

.extras {
    align-items:start;
}

.extras summary,.file-choice {
    background:#eae3d7;
    min-height:44px;
    border-radius:11px;
    justify-content:center;
    gap:8px;
    font-weight:600;
    font-size:.88rem;
    cursor:pointer;
}

.extras textarea {
    margin-top:6px;
}

.file-choice {
    position:relative;
    padding:7px;
    overflow:hidden;
}

.file-choice span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.file-choice input {
    position:absolute;
    inset:0;
    opacity:0;
    width:100%;
    cursor:pointer;
}

.file-choice:focus-within {
    outline:3px solid #9985f0;
}

.primary {
    background:var(--black);
    color:white;
    border:0;
    width:100%;
    border-radius:13px;
    min-height:51px;
    justify-content:center;
    gap:12px;
    font-size:1.06rem;
    font-weight:650;
}

.primary:hover {
    background:#353630;
}

.delete-form {
    text-align:right;
    margin-top:16px;
}

.danger {
    color:#9a372f;
}

.flash,.alert {
    border-radius:12px;
    margin:15px 0;
    padding:12px 17px;
    font-weight:600;
}

.flash {
    background:#c5e9cd;
    color:#183020;
    gap:8px;
}

.alert {
    background:#ffdad2;
    color:#612319;
}

.auth {
    background:#fffdf6;
    padding:clamp(22px,3.4vw,44px);
    border:1px solid var(--line);
    margin-top:7vh;
}

.auth h1 {
    font-size:clamp(2rem,4vw,3rem);
}

.brand-tab {
    background:var(--lime);
    border-radius:14px;
    width:47px;
    height:47px;
    display:grid;
    place-items:center;
    margin-bottom:22px;
}

.brand-tab svg {
    width:29px;
    height:29px;
}

.auth fieldset {
    border-top:1px solid var(--line);
    padding-top:10px;
}

.auth fieldset legend {
    padding-right:12px;
    font-weight:700;
}

.auth fieldset label {
    margin:4px 0;
}

.folder-modal {
    padding:20px 0 0;
    background:transparent;
    border:0;
    width:min(760px,94vw);
    max-height:90dvh;
    overflow:auto;
    overscroll-behavior:contain;
}

.folder-modal::backdrop {
    background:#100e0c80;
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
}

.modal-surface {
    position:relative;
    background:var(--paper);
    border-radius:0 24px 24px 24px;
    padding:clamp(20px,3.5vw,42px);
}

.modal-surface:before {
    width:34%;
    height:16px;
}

.modal-surface h2 {
    font-size:2.85rem;
}

.modal-surface>p {
    color:var(--muted);
}

.close {
    position:absolute;
    right:15px;
    top:15px;
    border:0;
    border-radius:50%;
    width:36px;
    height:36px;
    background:#eae4d9;
    display:grid;
    place-items:center;
}

.modal-total {
    gap:18px;
    margin:16px 0 20px;
}

.modal-total b {
    font-size:clamp(2rem,4vw,3.2rem);
}

.modal-total span {
    padding-left:17px;
    border-left:1px solid var(--line);
}

.modal-add {
    margin:22px auto 0;
    background:var(--tint);
    width:fit-content;
    padding-inline:22px;
}

.record {
    display:grid;
    grid-template-columns:.95fr 2.35fr 1fr 1.05fr;
    gap:10px;
    align-items:start;
    padding:14px 0;
    border-bottom:1px solid var(--line);
    font-size:.93rem;
}

.record:last-child {
    border:0;
}

.record time {
    color:var(--muted);
}

.record-label,.who,.rule-row>div {
    min-width:0;
    overflow-wrap:anywhere;
}

.record-amount {
    text-align:right;
}

.record-amount b {
    white-space:nowrap;
}

.record a {
    font-size:.75rem;
    text-underline-offset:3px;
    text-decoration:underline;
}

.record .note {
    color:var(--ink);
    margin-top:3px;
}

.record-amount a {
    display:block;
    color:var(--muted);
}

.who {
    gap:7px;
    font-size:.86rem;
}

.who .avatar {
    width:25px;
    height:25px;
    flex:none;
}

.table-th {
    font-size:.77rem;
    color:var(--muted);
    font-weight:650;
    padding-top:2px;
}

.table-th span:last-child {
    text-align:right;
}

.filters {
    display:flex;
    align-items:end;
    gap:12px;
    flex-wrap:wrap;
    margin:16px 0 20px;
}

.filters select {
    background:var(--surface);
    border-color:var(--line);
    min-height:42px;
}

.filters button {
    background:var(--lime);
    color:var(--black);
    border:0;
}

.income-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    align-items:start;
}

.income-summary {
    background:#b8dfbf;
    color:var(--black);
}

.number {
    font-size:clamp(2.6rem,4.8vw,4.5rem);
    font-weight:750;
}

.income-summary p {
    display:flex;
    justify-content:space-between;
    gap:10px;
}

.income-summary hr {
    border:0;
    border-top:1px solid #17181533;
    margin:12px 0;
}

.income-summary a {
    color:var(--black);
    margin-top:19px;
}

.paper-form {
    padding:clamp(18px,2.5vw,30px);
    background:var(--paper);
}

.paper-form>summary {
    font-size:1.3rem;
    font-weight:700;
    gap:8px;
}

.embedded {
    margin:17px 0 0;
    max-width:none;
}

.rule-form {
    margin:24px 0 0;
    max-width:650px;
    scroll-margin-top:20px;
}

.rule-form h2 {
    margin-bottom:20px;
}

.form-hint {
    color:var(--muted);
    font-size:.87rem;
}

.intro {
    margin:-9px 0 18px;
}

.rule-list {
    padding-block:4px;
}

.rule-row>div {
    flex:1;
}

.rule-row b {
    white-space:nowrap;
}

.quiet {
    font-size:.85rem;
    color:var(--muted);
}

[hidden] {
    display:none!important;
}

@media(max-width:980px) {
    .mast {
        gap:12px;
    }
    .topnav a {
        padding:8px 11px;
    }
    .folder-grid {
        gap:9px;
    }
    .cover {
        padding:17px 12px 11px;
    }
    .wrap {
        padding-inline:22px;
    }
    .rule-row {
        flex-wrap:wrap;
    }
    .rule-date {
        font-size:.8rem;
    }
}

@media(max-width:740px) {
    .wrap {
        padding:0 16px calc(86px + env(safe-area-inset-bottom));
    }
    .mast {
        min-height:66px;
    }
    .logo {
        font-size:28px;
    }
    .logo .icon {
        width:35px;
    }
    .mobile-nav {
        position:fixed;
        z-index:5;
        display:flex;
        justify-content:space-around;
        bottom:0;
        left:0;
        right:0;
        background:var(--bg);
        border-top:1px solid var(--line);
        padding:5px 5px calc(5px + env(safe-area-inset-bottom));
        box-shadow:0 -6px 20px #0001;
    }
    .mobile-nav a {
        flex:1;
        flex-direction:column;
        gap:1px;
        justify-content:center;
        padding:4px 2px;
        min-height:45px;
        font-size:.65rem;
        color:var(--muted);
    }
    .mobile-nav a[aria-current] {
        background:var(--lime);
        color:var(--black);
        border-radius:10px;
        font-weight:700;
    }
    .topnav,.add-head {
        display:none;
    }
    .heading {
        align-items:flex-start;
        flex-wrap:wrap;
        margin:24px 0 17px;
    }
    .month-select {
        margin-top:3px;
    }
    .overview-grid,.income-grid {
        grid-template-columns:1fr;
    }
    .hero-sum {
        font-size:3.2rem;
    }
    .hero-breakdown {
        margin-top:15px;
    }
    .chart {
        min-height:210px;
    }
    .plot {
        min-height:125px;
    }
    .folder-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:13px 10px;
    }
    .folder {
        min-height:130px;
    }
    .folder strong {
        font-size:1.45rem;
    }
    .section-head {
        margin:24px 0 10px;
    }
    .section-head .text-link {
        font-size:.76rem;
    }
    .folder-foot {
        font-size:.75rem;
    }
    .entry-card {
        margin-top:19px;
    }
    .entry-card h1 {
        margin-bottom:17px;
    }
    .stack {
        gap:13px;
    }
    .entry-card .primary {
        min-height:51px;
    }
    .embedded {
        margin-top:17px;
    }
    .due {
        gap:8px;
        flex-wrap:wrap;
    }
    .due time {
        font-size:.75rem;
    }
    .due>b {
        min-width:0;
        font-size:.9rem;
    }
    .due-icon {
        width:31px;
        height:31px;
    }
    .due-list {
        padding-inline:12px;
    }
    .table-th {
        display:none;
    }
    .record:not(.table-th) {
        grid-template-columns:minmax(0,1fr) auto;
        gap:4px 8px;
    }
    .record-label {
        grid-row:1;
        grid-column:1;
    }
    .record-amount {
        grid-row:1/3;
        grid-column:2;
    }
    .record time {
        grid-row:2;
        grid-column:1;
        font-size:.77rem;
    }
    .record .who {
        grid-row:3;
        font-size:.77rem;
    }
    .who .avatar {
        width:21px;
        height:21px;
    }
    .modal-total {
        margin:12px 0;
    }
    .rule-row {
        display:grid;
        grid-template-columns:32px minmax(0,1fr) auto;
        gap:4px 8px;
    }
    .rule-row>.due-icon {
        grid-column:1;
        grid-row:1/3;
    }
    .rule-row>div {
        grid-column:2;
        grid-row:1;
    }
    .rule-date {
        grid-row:2;
        grid-column:2;
    }
    .rule-row>b,.rule-row>form {
        grid-column:3;
        text-align:right;
    }
    .rule-row>b {
        grid-row:1;
    }
    .rule-row>form {
        grid-row:2;
    }
    .filters {
        gap:8px;
    }
    .filters label {
        flex:1;
        min-width:110px;
    }
    .filters select {
        font-size:.9rem;
    }
    .auth {
        margin:32px auto;
    }
    .account-box {
        right:-2px;
    }
    .intro {
        margin:0 0 16px;
    }
}

@media(max-width:370px) {
    .wrap {
        padding-inline:12px;
    }
    .cover {
        padding-inline:10px;
    }
    .folder strong {
        font-size:1.3rem;
    }
    .pair,.extras {
        gap:7px;
    }
    .due time {
        display:block;
    }
    .cat-pick {
        min-width:90px;
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
        scroll-behavior:auto!important;
    }
}

.quick-home {
    display:none;
}

.stack .amount-line input {
    width:var(--amount-width,4.2ch)!important;
    max-width:calc(100% - 1.4em);
}

.amount-line {
    gap:.48em;
}

@media(max-width:740px) {
    .view-quick .mobile-nav {
        display:none;
    }
    .quick-home {
        display:flex;
        font-size:.8rem;
        min-height:35px;
        padding:6px 10px;
    }
    .view-quick .head-actions {
        gap:6px;
    }
    .view-quick .mast {
        min-height:57px;
    }
    .view-quick .entry-card h1 {
        font-size:2.45rem;
        margin-bottom:13px;
    }
    .view-quick .entry-card {
        margin-top:15px;
    }
    .view-quick .stack {
        gap:11px;
    }
    .view-quick .wrap {
        padding-bottom:calc(84px + env(safe-area-inset-bottom));
    }
    .view-quick .entry-card .primary {
        position:fixed;
        z-index:4;
        bottom:calc(10px + env(safe-area-inset-bottom));
        width:min(530px,calc(100% - 32px));
        left:50%;
        transform:translateX(-50%);
        box-shadow:0 0 0 9px var(--paper);
    }
    .view-quick .cat-scroll {
        padding-bottom:2px;
        scrollbar-width:none;
    }
    .view-quick .cat-scroll::-webkit-scrollbar {
        display:none;
    }
    .view-quick .stack label.amount {
        padding:14px 18px;
    }
    .view-quick .amount-line input {
        font-size:3rem!important;
    }
}

.estimate {
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:4px 8px;
    flex-wrap:wrap;
    margin-top:14px;
    border-top:1px solid #17181538;
    padding-top:12px;
    font-size:.9rem;
}

.estimate small {
    flex-basis:100%;
    font-size:.76rem;
}

