:root{color-scheme:dark;--bg:#141716;--surface:#202521;--accent:#d7f5a0;--text:#f0f3ee;--muted:#a6b39e;--border:#353f31;--warning:#e6bc8b;--danger:#efad9e;--mono:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;background:var(--bg);color:var(--text)}
.pocket-page,.pocket-page *{box-sizing:border-box}.pocket-page [hidden]{display:none!important}.pocket-page{margin:0;height:100vh;height:100dvh;overscroll-behavior:none;-webkit-text-size-adjust:100%;background:var(--bg)}.pocket-sprite{position:absolute;width:0;height:0;overflow:hidden}.pocket-page svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.pocket-page button,.pocket-page input,.pocket-page select{font:inherit;color:inherit}.pocket-page button{min-height:44px;min-width:44px;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}.pocket-page button:disabled{opacity:.42;cursor:default}.pocket-page button:focus-visible,.pocket-page input:focus-visible,.pocket-page select:focus-visible,.pocket-page output:focus-visible,.pocket-file-label:focus-within{outline:2px solid var(--accent);outline-offset:3px}.pocket-page button:active:not(:disabled){filter:brightness(1.18);transform:translateY(1px)}
.pocket{max-width:460px;min-height:100%;height:100%;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 24px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:24px;container-type:size}.pocket-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;height:44px}.pocket-header h1{font-size:30px;letter-spacing:-1.6px;line-height:1;font-weight:800;margin:0}.pocket-header h1 span{color:var(--accent)}.pocket-header nav{display:flex;gap:9px;align-items:center}.pocket-history-button{border:0;background:none;display:flex;align-items:center;gap:6px;padding:0 4px;font-size:12px!important;color:var(--muted)!important}.pocket-icon-button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border:1px solid var(--border);border-radius:50%;padding:0;color:var(--muted)!important;flex:none}
.pocket-workspace{display:flex;flex-direction:column;flex:1;min-height:0;gap:16px}.pocket-summary{flex:none}.pocket-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.pocket-summary h2{font-size:11px;letter-spacing:1.8px;color:var(--muted);font-weight:500;margin:0}.pocket-offline{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.pocket-offline>span:first-child{height:5px;width:5px;border-radius:50%;background:var(--warning);flex:none}.pocket-offline.is-ready>span:first-child{background:var(--accent)}.pocket-balance-line{display:flex;align-items:baseline;gap:10px;margin:8px 0 16px;color:var(--accent)}.pocket-balance-line output{font:400 49px/1.12 var(--mono);letter-spacing:-2px;white-space:nowrap;min-width:0}.pocket-balance-value>span{font:22px var(--mono);color:var(--muted)}.pocket-balance-value.is-negative{color:var(--danger)}.pocket-balance-line output.compact{font-size:34px;letter-spacing:-1px}.pocket-balance-line output.very-compact{font-size:clamp(17px,4.9vw,22px);letter-spacing:-.6px}.pocket-totals{display:flex;gap:24px}.pocket-totals>div{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.pocket-totals>div+div{padding-left:24px;border-left:1px solid var(--border)}.pocket-totals span{font-size:12px;color:var(--muted)}.pocket-totals strong{font:400 14px var(--mono);letter-spacing:-.3px;overflow-wrap:anywhere}.pocket-last{border-top:1px solid var(--border);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:56px;margin-top:16px;padding:6px 0}.pocket-last #last-entry{flex:1;min-width:0;display:flex;align-items:center;gap:9px;font-size:12px}.pocket-last .pocket-entry-emoji{font-size:22px}.pocket-last .pocket-last-label{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}.pocket-last .pocket-last-amount{display:block;font:13px var(--mono);overflow-wrap:anywhere}.pocket-first-hint{color:var(--muted);font-size:12px;line-height:1.45}.pocket-last #undo{font-size:12px;color:var(--muted);background:none;border:0;padding:0 6px}.pocket-warning{color:var(--warning)!important;font-size:12px;line-height:1.4}.pocket-summary .pocket-warning{margin:8px 0 0}.pocket-update-shortcut{background:#2b3524;color:var(--accent);border:1px solid var(--border);border-radius:8px;font-size:12px!important;width:100%;margin-top:8px}
.pocket-compose{display:flex;flex-direction:column;flex:1;min-height:0}.pocket-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;height:32px;flex:none}.pocket-entry-heading label{font-size:12px;color:var(--muted)}.pocket-entry-heading label span{font:10px var(--mono);margin-left:7px;color:#7f8d76}.pocket-entry-heading #clear{height:44px;background:none;border:0;color:var(--warning);font:12px var(--mono);margin-right:-8px}.pocket-entry-line{display:flex;align-items:center;gap:12px;min-height:56px;flex:none}.pocket-entry-line output{font:400 38px/1.2 var(--mono);letter-spacing:-1.6px;flex:1;min-width:0;white-space:nowrap}.pocket-entry-line output.compact{font-size:27px;letter-spacing:-.8px}.pocket-entry-line output.very-compact{font-size:20px;letter-spacing:-.5px}.pocket-category-hint{font-size:12px;color:var(--muted);margin:10px 0 8px}.pocket-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex:none}.pocket-category{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0!important;padding:7px 4px;border:1px solid var(--border);background:#1b201c;border-radius:8px;font-size:11px!important;line-height:1.2;height:48px}.pocket-category .pocket-entry-emoji{font-size:22px;line-height:1.2;flex:none}.pocket-category[data-category=taxi]{border-color:#494331}.pocket-category[data-category=food]{border-color:#493a32}.pocket-category[data-category=attractions]{border-color:#30463c}.pocket-category[data-category=souvenirs]{border-color:#4b3540}.pocket-category[data-category=clothes]{border-color:#32424c}.pocket-category[data-category=other]{border-color:#3b3d47}.pocket-category:disabled{opacity:.85}.pocket-feedback{font-size:12px;line-height:1.35;color:var(--warning);margin:8px 0;min-height:16px;flex:none}.pocket-feedback:empty{margin:5px 0;min-height:0}.pocket-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(44px,1fr));gap:8px;min-height:200px;max-height:272px;flex:1;margin-top:auto}.pocket-keypad button{background:var(--surface);border:1px solid #2c322d;border-radius:10px;color:#e4e9e1;font:25px var(--mono);padding:0;display:grid;place-items:center}.pocket-keypad button[data-key=","],.pocket-keypad button[data-key=backspace]{background:#191e1a;color:var(--muted)}
.pocket-dialog{border:1px solid #48513f;background:#1a1f1a;color:#e6ece1;border-radius:24px;width:calc(100% - 28px);max-width:430px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);padding:0 22px 22px;overflow:auto;overscroll-behavior:contain;font-size:14px;line-height:1.55}.pocket-dialog::backdrop{background:#050906bb;backdrop-filter:blur(5px)}.pocket-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:#1a1f1a;padding:18px 0 14px;z-index:1}.pocket-dialog h2{font-size:24px;font-weight:650;letter-spacing:-.6px;margin:0;line-height:1.2}.pocket-dialog h3{font-size:15px;margin:0 0 8px;font-weight:650}.pocket-dialog p{color:#b5bfae;margin:8px 0;overflow-wrap:anywhere}.pocket-dialog .pocket-small{font-size:12px}.pocket-dialog label{display:block;font-size:13px;color:var(--muted);margin:12px 0 6px}.pocket-dialog input:not([type=file]),.pocket-dialog select{width:100%;height:48px;min-width:0;padding:0 12px;font-size:18px;border:1px solid #566645;border-radius:8px;background:var(--bg);color:var(--text)}.pocket-dialog select{font-size:16px}.pocket-primary,.pocket-secondary,.pocket-danger-button{display:block;min-height:44px;width:100%;border-radius:10px;padding:12px 14px;font-size:13px!important;font-weight:650!important;margin-top:10px;cursor:pointer;text-align:center}.pocket-primary{background:var(--accent);color:#223018!important;border:1px solid var(--accent)}.pocket-secondary{background:transparent;color:var(--accent)!important;border:1px solid #566645}.pocket-danger-button{border:1px solid #644b42;background:#302622;color:var(--danger)!important}.pocket-confirm{border-left:2px solid var(--warning);padding-left:12px;margin-top:16px}.pocket-info-section{border-top:1px solid var(--border);padding:18px 0}.pocket-info-footer{border-top:1px solid var(--border);padding-top:18px;font-size:12px;color:var(--muted)}.pocket-file-label{position:relative;overflow:hidden}.pocket-file-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;font-size:16px}.pocket-file-label:has(input:disabled){opacity:.42;cursor:default}.pocket-platforms{display:flex;gap:8px}.pocket-platforms button{flex:1;background:none;border:1px solid var(--border);border-radius:8px;font-size:13px}.pocket-platforms button[aria-pressed=true]{background:#2c3725;border-color:#566645;color:var(--accent)}.pocket-dialog li{padding:8px 0}.pocket-dialog ol{padding-left:24px}.pocket-history-list{margin:16px 0}.pocket-history-row{width:100%;border:0;border-top:1px solid var(--border);background:none;text-align:left;display:flex;align-items:center;gap:10px;padding:14px 0}.pocket-history-row .pocket-entry-emoji{font-size:26px}.pocket-history-row>span:nth-child(2){min-width:0;flex:1}.pocket-history-row strong{display:block;font-size:13px;font-weight:500}.pocket-history-row time{display:block;color:var(--muted);font-size:11px;margin-top:3px}.pocket-history-row .pocket-row-amount{font:13px var(--mono);max-width:48%;overflow-wrap:anywhere;text-align:right}.pocket-row-amount.is-cash{color:var(--accent)}.pocket-no-script{position:fixed;inset:20% 20px auto;background:var(--bg);border:1px solid var(--warning);padding:20px;z-index:10}.pocket-dialog #update-section{scroll-margin-top:80px}
@media(hover:hover){.pocket-keypad button:hover:not(:disabled){background:#2c3528}.pocket-category:hover:not(:disabled){background:#293126}.pocket-history-row:hover{background:#202920}}
@media(max-width:350px){.pocket{padding-left:16px;padding-right:16px}.pocket-header h1{font-size:27px}.pocket-category{gap:4px;font-size:10px!important}.pocket-category .pocket-entry-emoji{font-size:20px}.pocket-entry-line{gap:7px}.pocket-entry-line output.very-compact{font-size:18px}.pocket-totals{gap:12px}.pocket-totals>div+div{padding-left:12px}}
@media(max-height:750px){.pocket{padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:calc(8px + env(safe-area-inset-bottom));gap:14px}}
@container(max-height:690px){.pocket-workspace{gap:8px}.pocket-balance-line{margin:6px 0 10px}.pocket-balance-line output{font-size:42px}.pocket-balance-line output.compact{font-size:30px}.pocket-balance-line output.very-compact{font-size:19px}.pocket-last{margin-top:10px;min-height:48px;padding:2px 0}.pocket-entry-line{min-height:48px}.pocket-category-hint{margin:5px 0 6px}.pocket-category{height:44px}.pocket-keypad{min-height:188px;gap:4px}.pocket-entry-heading{height:28px}.pocket-feedback{font-size:11px;margin:5px 0}}
@container(max-height:580px){.pocket-summary-heading{margin-bottom:2px}.pocket-balance-line{margin:2px 0 6px}.pocket-balance-line output{font-size:36px}.pocket-balance-line output.compact{font-size:28px}.pocket-balance-line output.very-compact{font-size:17px}.pocket-last{margin-top:6px}.pocket-totals>div{gap:2px}.pocket-totals strong{font-size:12px}.pocket-entry-line output{font-size:30px}.pocket-entry-line output.compact{font-size:24px}.pocket-entry-line output.very-compact{font-size:18px}.pocket-entry-heading{height:22px}.pocket-categories{gap:4px}.pocket-feedback:empty{margin:3px 0}.pocket-workspace{gap:4px}}
@media(orientation:landscape) and (max-height:600px){.pocket{max-width:950px;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));gap:8px}.pocket-workspace{flex-direction:row;gap:24px;align-items:center}.pocket-summary{width:36%;flex:none}.pocket-compose{width:64%;height:100%;min-width:0;display:grid;grid-template-columns:1fr 1fr;column-gap:12px;grid-template-rows:24px 48px 20px 1fr auto}.pocket-entry-heading{grid-column:1;height:24px}.pocket-entry-line{grid-column:1;flex-wrap:wrap;align-content:center;gap:4px;min-height:0}.pocket-entry-line output{font-size:23px;flex-basis:100%;line-height:1.1}.pocket-entry-line output.compact{font-size:19px}.pocket-entry-line output.very-compact{font-size:16px}.pocket-category-hint{grid-column:1;font-size:10px;align-self:end;margin:38px 0 0;line-height:1.1}.pocket-categories{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-self:end;margin-top:30px}.pocket-category{height:44px;font-size:9px!important;flex-direction:column;gap:1px;padding:2px}.pocket-category .pocket-entry-emoji{font-size:17px}.pocket-keypad{grid-column:2;grid-row:1/6;height:100%;min-height:188px;gap:4px}.pocket-keypad button{font-size:21px}.pocket-feedback{grid-column:1;max-height:32px;overflow:auto;font-size:10px;margin:3px 0 0}.pocket-totals{flex-direction:column;gap:7px}.pocket-totals>div{flex-direction:row;justify-content:space-between;gap:6px}.pocket-totals>div+div{padding:0;border:0}.pocket-totals strong{font-size:12px}.pocket-offline{display:none}.pocket-last{margin-top:10px;gap:2px}.pocket-last #last-entry{font-size:10px;gap:4px}.pocket-last .pocket-last-amount{font-size:10px}.pocket-last .pocket-entry-emoji{font-size:18px}.pocket-last #undo{font-size:10px;min-width:44px;padding:0}.pocket-first-hint{font-size:11px}.pocket-balance-line output{font-size:32px}.pocket-balance-line output.compact{font-size:24px}.pocket-balance-line output.very-compact{font-size:14px}.pocket-balance-line{gap:5px}.pocket-balance-value>span{font-size:15px}.pocket-summary h2{font-size:10px}.pocket-summary .pocket-warning{font-size:10px}.pocket-update-shortcut{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.pocket-page *{scroll-behavior:auto}.pocket-page button:active:not(:disabled){transform:none}}
.pocket-header nav{gap:5px}.pocket-header .pocket-history-button{font-size:11px!important;gap:4px}.pocket-header .pocket-history-button svg{width:17px;height:17px}.pocket-header h1{font-size:28px}.pocket-periods{display:flex;gap:6px}.pocket-periods button{flex:1;min-width:0;background:none;border:1px solid var(--border);border-radius:8px;font-size:12px}.pocket-periods button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#223018}.pocket-period-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0}.pocket-period-nav button{background:none;border:1px solid var(--border);border-radius:50%;font-size:25px;width:44px;flex:none}.pocket-period-nav strong{text-align:center;font-size:12px;font-weight:500}.pocket-stats-totals{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pocket-stats-totals span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.pocket-stats-totals strong{font:20px var(--mono);color:var(--accent);overflow-wrap:anywhere}.pocket-stats-totals>div+div strong{color:#e6bc8b}.pocket-stat-net{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:12px 0;border-bottom:1px solid var(--border)}.pocket-stat-net strong{font:12px var(--mono);text-align:right;overflow-wrap:anywhere}.pocket-chart-legend{display:flex;gap:18px;margin:18px 0 8px;font-size:11px;color:var(--accent)}.pocket-chart-legend>span+span{color:#e6bc8b}.pocket-chart{display:flex;align-items:end;gap:6px;height:145px;border-bottom:1px solid var(--border);padding:0 0 4px}.pocket-chart-column{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center}.pocket-chart-bars{width:100%;height:120px;display:flex;align-items:end;justify-content:center;gap:2px}.pocket-chart-bar{width:42%;max-width:18px;background:var(--accent);border-radius:2px 2px 0 0}.pocket-chart-bar.is-spent{background:#e6bc8b}.pocket-chart-label{font-size:9px;white-space:nowrap;color:var(--muted);height:20px;display:flex;align-items:end}.pocket-chart:has(>.pocket-chart-column:nth-child(15)) .pocket-chart-column:nth-child(even) .pocket-chart-label{visibility:hidden}.pocket-chart:has(>.pocket-chart-column:nth-child(15)){gap:2px}.pocket-chart-details{margin:12px 0;font-size:12px}.pocket-chart-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--muted)}.pocket-chart-details summary:before{content:'＋';margin-right:8px}.pocket-chart-details[open] summary:before{content:'−'}.pocket-table-wrap{overflow:auto}.pocket-table-wrap table{border-collapse:collapse;width:100%;font-size:11px}.pocket-table-wrap th,.pocket-table-wrap td{text-align:right;border-bottom:1px solid var(--border);padding:8px 4px}.pocket-table-wrap th:first-child{text-align:left}.pocket-stats-heading{margin-top:22px!important}.pocket-stat-category{margin:16px 0}.pocket-stat-category>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px}.pocket-stat-category strong{font:11px var(--mono);text-align:right;overflow-wrap:anywhere}.pocket-category-bar{height:4px;background:var(--surface);margin-top:8px;border-radius:3px;overflow:hidden}.pocket-category-bar span{display:block;height:100%;border-radius:3px}
@media(max-width:350px){.pocket-header{gap:5px}.pocket-header h1{font-size:25px}.pocket-header nav{gap:2px}.pocket-header .pocket-history-button{flex-direction:column;justify-content:center;gap:2px;font-size:9px!important;padding:0 4px}.pocket-stats-totals strong{font-size:16px}}
@media(max-height:680px){.pocket{gap:5px}.pocket-category-hint{display:none}.pocket-entry-line{min-height:44px}.pocket-categories{margin-top:4px}.pocket-feedback.is-success{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}.pocket-totals>div{gap:2px}.pocket-last{margin-top:5px}.pocket-entry-heading{height:20px}}
@media(orientation:landscape) and (max-height:600px){.pocket-workspace{gap:16px;align-items:stretch}.pocket-summary{width:28%;align-self:center}.pocket-compose{width:auto;flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:20px 78px minmax(132px,1fr) auto;column-gap:12px}.pocket-entry-line{grid-column:1;grid-row:2;min-height:78px;align-content:start;gap:2px}.pocket-entry-line output{font-size:23px}.pocket-category-hint{display:none}.pocket-categories{grid-column:1;grid-row:3;margin:0;align-self:stretch;gap:3px;grid-template-rows:repeat(3,minmax(44px,1fr))}.pocket-category{height:auto;flex-direction:row;gap:3px;font-size:10px!important}.pocket-keypad{grid-row:1/5;max-height:none;min-height:188px}.pocket-feedback{grid-row:4}.pocket-feedback:empty{margin:0}.pocket-entry-heading{grid-row:1;height:20px}.pocket-last{flex-wrap:wrap}.pocket-last #undo{margin-left:auto}.pocket-balance-line output{font-size:24px}.pocket-balance-line output.compact{font-size:18px}.pocket-balance-line output.very-compact{font-size:12px}}
.pocket-entry-heading{height:44px}
@media(max-height:620px) and (orientation:portrait){.pocket-totals>div{flex-direction:row;align-items:baseline;gap:4px}.pocket-totals{gap:8px}.pocket-totals>div+div{padding-left:8px}.pocket-totals span{font-size:10px}.pocket-totals strong{font-size:11px}.pocket-balance-line{margin-top:0;margin-bottom:2px}.pocket-last{min-height:44px;margin-top:4px}.pocket-entry-heading{height:44px}}
@media(orientation:landscape) and (max-height:600px){.pocket-compose{grid-template-rows:44px 72px minmax(132px,1fr) auto}.pocket-entry-heading{height:44px}.pocket-entry-line{min-height:72px}.pocket-entry-line output{line-height:1.1}}

.pocket-chart-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding-top:7px}

.pocket-balance-line{align-items:center;gap:12px}.pocket-balance-value{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1}.pocket-balance-line #add-cash{width:44px;height:44px;flex:none;align-self:center;display:grid;place-items:center;border:1px solid #657b4c;background:#2a3524;color:var(--accent);border-radius:50%;padding:0}.pocket-balance-line #add-cash svg{width:25px;height:25px}.pocket-dialog #cash-amount{font:26px var(--mono);height:56px}.pocket-dialog #cash-feedback:empty{margin:0}.pocket-entry-line output{flex-basis:auto}
@media(orientation:landscape) and (max-height:600px){.pocket-summary{width:34%}.pocket-balance-line{gap:8px}.pocket-balance-value{gap:4px}.pocket-balance-line output{font-size:20px}.pocket-balance-line output.compact{font-size:15px}.pocket-balance-line output.very-compact{font-size:10px}.pocket-balance-value>span{font-size:12px}.pocket-compose{grid-template-rows:44px 34px minmax(132px,1fr) auto}.pocket-entry-line{min-height:34px;align-content:center}}

/* Local language controls and installation guide follow the existing INFO layout. */
.pocket-language-options{display:flex;gap:8px}.pocket-language-options button{flex:1;border:1px solid var(--border);background:transparent;border-radius:8px;font-size:13px;padding:10px}.pocket-language-options button[aria-pressed=true]{background:var(--accent);color:#223018;border-color:var(--accent)}
.pocket-install-steps li>strong,.pocket-install-steps li>span{display:block}.pocket-install-steps li>span{color:var(--muted);font-size:12px;margin-top:4px}.pocket-dialog .pocket-install-offline{border-top:1px solid var(--border);padding-top:14px;color:var(--accent)}
.pocket-entry-heading label .pocket-field-label{font:inherit;margin:0;color:inherit}
