/* v0.8.04 canonical main-tab stylesheet. Form/dialog/subpage styles stay in huanar.css.
   Direct component definitions only; old copies must be removed, never stacked. */
:root{--hn-tab-ink:#243e30;--hn-tab-muted:#60786a;--hn-tab-soft:#f2f9f3;--hn-tab-line:#e2eee3;--hn-tab-accent:#27a35d;--hn-font-body:14px;--hn-font-heading:15px;--hn-font-caption:12px;--hn-font-amount:18px;--hn-home-shortcut-height:67px}
body{background:#fbfdfb;color:var(--hn-tab-ink)}
#app{max-width:780px;padding-left:clamp(12px,3.5vw,24px);padding-right:clamp(12px,3.5vw,24px);padding-bottom:calc(102px + env(safe-area-inset-bottom))}
.top{justify-content:flex-start;margin-bottom:14px}
.brand img{width:clamp(162px,46vw,200px);object-position:left center}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]){font-size:var(--hn-font-body);line-height:1.55;color:var(--hn-tab-ink)}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .card{background:#fff;border:1px solid var(--hn-tab-line);border-radius:15px;padding:13px;margin:9px 0;box-shadow:none}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) :is(.section-head h2,.shortcut-head h2,.card>h2){font-size:var(--hn-font-heading);font-weight:650;line-height:1.45}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) :is(.kicker,.sub,.date-label,.money-box small,.quick small){font-size:var(--hn-font-caption)}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) :is(.primary,.secondary){font-size:14px;border-radius:11px}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .section-head{margin:15px 0 8px}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea){font-size:14px;min-height:43px}
/* v0.8.02: canonical Home / Details / Analysis styles. Root tabs have one owner per component. */
/* Shared picker and date controls are intrinsic elements, not decorative unicode. */
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-financial-ledger{flex:0 1 var(--hn-ledger-trigger-width);min-width:0;max-width:48%;width:var(--hn-ledger-trigger-width);z-index:12}
/* The finance pages only constrain available width; shared trigger appearance lives in huanar.css. */
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-financial-ledger .scope-trigger{width:min(var(--hn-ledger-trigger-width),100%);min-width:0;max-width:100%;}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-financial-ledger .scope-menu{top:calc(100% + 5px);right:0;width:var(--hn-ledger-dropdown-width);min-width:var(--hn-ledger-dropdown-width);max-width:var(--hn-ledger-dropdown-width)}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .month-trigger:not(.hn-finance-date .month-trigger){width:auto;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;min-height:38px;padding:6px 9px;border:0;border-radius:10px;font-weight:650;font-size:14px;line-height:1.2;white-space:nowrap}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-month-calendar{display:inline-flex;flex:0 0 18px;width:18px;height:18px;align-items:center;justify-content:center}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-month-calendar svg{display:block;width:18px;height:18px}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-month-text{display:inline-block;flex:0 1 auto;color:inherit;font-size:inherit;line-height:1.2}
/* Shared root-tab header: date LEFT, wallet/account RIGHT on one unwrapped row. */
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-period-ledger-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:9px;min-width:0}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-period-ledger-row > :first-child{min-width:0;flex:0 1 auto}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-period-ledger-row > .hn-financial-ledger{flex:0 1 var(--hn-ledger-trigger-width);margin-left:auto;min-width:0;max-width:49%}
#content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-period-ledger-row .month-control{width:auto;min-width:0}
/* Home: single soft panel, curved top-green band, compact date row. */
.hn-finance-panel{--hn-finance-date-font:18px;--hn-finance-ribbon-width:max(168px,31%);position:relative;isolation:isolate;overflow:visible;border:1px solid #dbeadb;border-radius:23px;padding:12px 15px 0;background:radial-gradient(ellipse at 99% 98%,#e0f9ce 0,transparent 44%),linear-gradient(110deg,#fafff8 0%,#fff 55%,#f6fbf3 100%);box-shadow:0 10px 28px rgba(26,88,44,.09);margin:6px 0 16px}
.hn-finance-panel::before{content:"";position:absolute;top:0;left:0;width:var(--hn-finance-ribbon-width);height:64px;border-radius:22px 0 0 0;background:url("summary_wave.svg") left top/100% 100% no-repeat;z-index:0;pointer-events:none}
.hn-finance-panel::after{content:"";position:absolute;right:13px;bottom:42px;width:54px;height:51px;pointer-events:none;opacity:.22;background:radial-gradient(ellipse at 65% 30%,#85d75a 0 19%,transparent 20%),radial-gradient(ellipse at 27% 66%,#85d75a 0 26%,transparent 27%);transform:rotate(-24deg);z-index:0}
.hn-finance-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:39px;height:39px;margin:0 0 2px;position:relative;z-index:2}
.hn-finance-date{min-width:0;display:flex;align-items:flex-start;justify-content:flex-start;flex:0 0 var(--hn-finance-ribbon-width);width:var(--hn-finance-ribbon-width);max-width:var(--hn-finance-ribbon-width);font-size:var(--hn-finance-date-font);line-height:1;padding-left:0}
.hn-finance-date .hn-finance-date-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;max-width:100%;width:100%;height:32px;min-height:32px;background:transparent;color:#fff;font-size:inherit;font-weight:700;line-height:1.15;border:0;outline:0;box-shadow:none;appearance:none;border-radius:0;padding:2px 0;text-align:left;text-shadow:0 1px 1px #15572822;white-space:nowrap}
.hn-finance-date .hn-month-text{color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.hn-finance-date .hn-month-calendar{display:inline-flex;flex:0 0 20px;width:20px;height:20px;align-items:center;justify-content:center;color:#fff}
.hn-finance-date .hn-month-calendar svg{display:block;width:20px;height:20px}
/* Home date sits at the upper-left of the green wave, independent of the ledger selector. */
.hn-finance-panel .hn-finance-date{transform:translate(-4px,-5px)}
.hn-finance-date .hn-finance-date-button:focus-visible .hn-month-text{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.hn-finance-head .hn-financial-ledger{max-width:calc(100% - var(--hn-finance-ribbon-width) - 10px)}
.hn-finance-body.hn-without-budget{display:block;padding:13px 8px 16px}
/* Transactions and analysis reuse the same home finance panel, with no budget ring. */
.hn-finance-panel.hn-finance-shared{margin-top:0;margin-bottom:13px}
.hn-finance-shared .hn-finance-head{margin-bottom:6px}
.hn-finance-shared .hn-finance-body{padding:7px 4px 14px}
.hn-finance-shared .hn-finance-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-items:center}
.hn-finance-shared .hn-finance-pair{display:contents}
.hn-finance-shared .hn-finance-net{display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;border-radius:0;padding:0;text-align:center}
.hn-finance-shared .hn-finance-net strong{font-size:clamp(11px,2.1vw,18px)}
.hn-finance-shared .hn-finance-numbers strong{font-size:clamp(10px,2.15vw,19px);letter-spacing:-.35px}
.hn-finance-shared .hn-finance-date{max-width:var(--hn-finance-ribbon-width)}
/* Date picker geometry belongs to .hn-finance-date-button on all three tabs.
   Details uses a date-range dialog; analysis uses the month/year dialog. */
.hn-finance-body{position:relative;z-index:1;display:grid;grid-template-columns:minmax(92px,30%) minmax(0,1fr);align-items:center;gap:12px;padding:3px 3px 11px}
.hn-finance-ring{width:min(100%,149px);aspect-ratio:1;border-radius:50%;background:conic-gradient(#4bb922 var(--hn-progress),#dcefd0 var(--hn-progress));padding:9px;box-sizing:border-box;margin-inline:auto;display:grid;place-items:center}
.hn-finance-ring-inner{background:#fffefb;border-radius:50%;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center}
.hn-finance-ring-inner small{font-size:clamp(10px,1.4vw,12px);color:#355d3e}
.hn-finance-ring-inner strong{font-size:clamp(20px,3vw,30px);font-weight:750;letter-spacing:-.5px;color:#165733;white-space:nowrap}
.hn-finance-numbers{display:flex;flex-direction:column;gap:10px;min-width:0}
.hn-finance-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(7px,2vw,24px)}
.hn-finance-pair>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.hn-finance-numbers small{font-size:clamp(10px,1.45vw,14px);display:flex;align-items:center;justify-content:flex-start;gap:4px;color:#34503d;margin-bottom:5px;white-space:nowrap}
.hn-finance-numbers strong{font-size:clamp(15px,2.55vw,26px);font-weight:750;letter-spacing:-.35px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.08;font-variant-numeric:tabular-nums}
.hn-income-arrow,.hn-expense-arrow{display:inline-grid;place-items:center;border-radius:50%;color:#fff;background:#24a75f;flex:0 0 16px;width:16px;height:16px}.hn-expense-arrow{background:#ed6d55}.hn-income-arrow svg,.hn-expense-arrow svg{width:11px;height:11px;display:block}
.hn-finance-net{background:linear-gradient(95deg,#edf9e7,#e0f5d9);border-radius:999px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;gap:5px 10px;min-width:0}
.hn-finance-net small{margin:0;font-size:clamp(10px,1.55vw,14px)}
.hn-net-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;color:#228e3f}
.hn-net-icon svg{display:block;width:19px;height:19px}
.hn-finance-net strong{color:#12643b;font-size:clamp(15px,2.75vw,27px)}
.hn-budget-toggle{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;width:calc(100% + 30px);margin:0 -15px;padding:8px 15px;border:0;border-top:1px solid #dfebe0;background:linear-gradient(90deg,#fcfff9 15%,#e3f8d7 100%);text-align:left;color:#244e35;font-size:13px;font-weight:650;cursor:pointer;border-radius:0 0 22px 22px;min-height:39px}
.hn-budget-toggle-label{display:inline-flex;align-items:center;gap:9px}
.hn-budget-target{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;color:#229b48}
.hn-budget-target svg{width:20px;height:20px;display:block}
.hn-budget-chevron{width:18px;height:18px;flex:0 0 18px;display:inline-flex;align-items:center;justify-content:center;margin-right:3px;transition:transform .16s ease}
.hn-budget-chevron svg{width:18px;height:18px;display:block}
.hn-budget-toggle[aria-expanded="true"] .hn-budget-chevron{transform:rotate(180deg)}
.hn-budget-detail{position:relative;z-index:1;padding:12px 5px 14px}.hn-budget-detail[hidden]{display:none}
.hn-budget-bar{height:7px;overflow:hidden;border-radius:20px;background:#dcebdc}.hn-budget-bar span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#32b962,#1b9354)}
.hn-budget-figures{display:flex;justify-content:space-between;gap:12px;margin-top:12px}.hn-budget-figures>div{min-width:0;flex:1}.hn-budget-figures small{display:block;color:#62806b;font-size:10px}.hn-budget-figures strong{display:block;color:#17653e;font-size:clamp(11px,2.4vw,15px);white-space:nowrap}
.hn-budget-edit{border:0;background:transparent;color:#267b48;font-size:11px;padding:10px 0 0}.hn-budget-warning{font-size:12px;color:#94773b;padding:10px 5px}.hn-budget-warning button{background:none;border:0;color:#188749;font-size:12px}
#content[data-hn-main-tab="home"] .shortcut-section{margin-top:15px}
#content[data-hn-main-tab="home"] .shortcut-head{margin-bottom:9px}
/* Homepage shortcuts: the ONLY visual definitions of .quick-grid/.quick. */
#content[data-hn-main-tab="home"] .quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#content[data-hn-main-tab="home"] .quick{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:var(--hn-home-shortcut-height);text-align:left;background:#f3f9f4;color:#24553a;border:1px solid #e7efe8;border-radius:12px;padding:9px 12px;box-shadow:none;overflow:hidden}
#content[data-hn-main-tab="home"] .quick::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;background:#55b67c;border-radius:0 4px 4px 0}
#content[data-hn-main-tab="home"] .quick .quick-symbol{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;margin:0;background:#e8f5e9;border-radius:10px;color:#208c52;font-size:18px;line-height:1}
#content[data-hn-main-tab="home"] .quick strong{min-width:0;font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;white-space:normal}
#content[data-hn-main-tab="home"] .quick small{font-size:10px;line-height:1.3}
#content[data-hn-main-tab="home"] .quick:focus-visible{outline:2px solid #229a54;outline-offset:2px}
/* Details: the ledger selector belongs in the header, never as a standalone row. */
#content[data-hn-main-tab="transactions"] .hn-details-tools{display:grid;gap:9px;margin:7px 0 10px;padding:0;background:transparent;border:0;box-shadow:none}
.hn-details-period-text{overflow:hidden;text-overflow:ellipsis;min-width:0;font-variant-numeric:tabular-nums}
.hn-details-chevron{display:inline-flex;width:13px;height:13px;flex:0 0 13px;align-items:center;justify-content:center;margin-left:1px}
.hn-details-chevron svg{display:block;width:13px;height:13px}
/* The four transaction filters and month/year switch share a segmented control. */
/* Single in-dialog date range selector (no embedded start/end fields). */
.hn-range-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;color:#5b7867}
.hn-range-preview>span{display:grid;gap:4px;padding:9px;border:1px solid #dae9dd;border-radius:10px;font-size:12px;min-width:0}
.hn-range-preview>span.active{border-color:#2ca45f;background:#eff9ee}
.hn-range-preview strong{font-size:13px;color:#214d36;font-variant-numeric:tabular-nums}
.hn-range-dialog .calendar-day.hn-range-between{background:#e1f2e3;border-radius:3px}
.hn-range-dialog .date-picker-bottom button:disabled{opacity:.4;cursor:not-allowed}
.hn-tx-search{display:flex;align-items:center;gap:9px;background:#f8faf9;border:1px solid #dfebe2;border-radius:11px;padding:0 11px;height:42px}.hn-tx-search .hn-search-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;color:#6b8273}.hn-tx-search .hn-search-icon svg{width:19px;height:19px;display:block}.hn-tx-search input{border:0;outline:0;background:transparent;width:100%;min-width:0;height:100%;font-size:13px;color:#234432}
#content[data-hn-main-tab="transactions"] .date-label{font-size:12px;margin:12px 2px 6px;color:#346e46;background:#edf8ef;padding:6px 10px;border-radius:9px}
#content[data-hn-main-tab="transactions"] #tx-results .card{margin:0 0 9px;padding:2px 12px}
#content[data-hn-main-tab="transactions"] .tx{min-height:50px;padding:8px 0;gap:8px}
#content[data-hn-main-tab="transactions"] .tx-icon{width:32px;height:32px;font-size:16px;border-radius:50%;background:#edf7ee}
#content[data-hn-main-tab="transactions"] .tx-info strong{font-size:12px}#content[data-hn-main-tab="transactions"] .tx-info small{font-size:11px;color:#667d6c}
#content[data-hn-main-tab="transactions"] .tx-money{font-size:13px}
/* Analysis: month/year toggle and month/account in one horizontal row. */
.hn-analysis-controls{margin:7px 0 12px;display:flex;flex-direction:column;gap:10px}
.hn-analysis-switch,.hn-period-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#eef6ef;padding:4px;border-radius:22px}
.hn-period-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.hn-analysis-switch button,.hn-period-options button{min-width:0;min-height:39px;border:0;border-radius:20px;background:transparent;color:#42614c;font-size:13px;font-weight:600}
.hn-analysis-switch button.active,.hn-period-options button.active{background:#259f53;color:#fff;font-weight:700}
.hn-analysis-period{display:flex;align-items:center;justify-content:flex-start;min-width:0;width:100%}
.hn-analysis-chart{background:#fff;border:1px solid #dfece4;border-radius:19px;padding:16px 15px 15px;margin:0 0 14px;box-shadow:0 5px 18px #1f57330a}
.hn-analysis-section-title{font-size:13px;font-weight:650;color:#2d5139;margin-bottom:8px}
.hn-chart-legend{display:flex;justify-content:flex-end;gap:12px;font-size:11px;color:#679077}.hn-chart-legend span:first-child{color:#1c9758}.hn-chart-legend span:last-child{color:#e56e5c}
.hn-chart-bars{height:205px;padding-top:24px;border-bottom:1px solid #dfece2;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain}
.hn-chart-grid{display:flex;align-items:stretch;gap:6px;height:100%;width:100%}
.hn-chart-grid-month{min-width:315px}
.hn-chart-grid-year{min-width:810px}
.hn-chart-column{flex:1;display:flex;flex-direction:column;min-width:0;align-items:center;gap:5px}
.hn-chart-pair{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%;min-height:0;background:repeating-linear-gradient(to top,transparent 0,transparent 30px,#f0f5f0 31px)}
.hn-chart-bar-item{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;width:44%;max-width:27px;min-height:0}
.hn-chart-bar-figure{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:10px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2;z-index:1;text-shadow:0 1px #fff}
.hn-chart-bar-figure.positive{color:#128248}.hn-chart-bar-figure.negative{color:#d25f4c}
.hn-chart-bar-fill{display:block;width:100%;height:100%;border-radius:5px 5px 0 0}
.hn-bar-income{background:linear-gradient(#77c99a,#2c9f60)}.hn-bar-expense{background:linear-gradient(#ffae9d,#ed806b)}
.hn-chart-column small{color:#667c6e;font-size:11px;white-space:nowrap}
.hn-analysis-chart-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.hn-chart-total{color:#406a4c;font-size:12px;font-variant-numeric:tabular-nums}
.hn-chart-empty{margin:0;padding:28px 8px;color:#607b6a;font-size:13px;text-align:center}
#content[data-hn-main-tab="reports"] .card{border-radius:15px}
#content[data-hn-main-tab="reports"] .report-tabs{background:#f3f8f3;border-radius:12px;padding:4px;gap:4px}
#content[data-hn-main-tab="reports"] .report-tab{font-size:13px;border-radius:9px}
#content[data-hn-main-tab="reports"] .donut{width:min(200px,62vw)}
/* Member and all subpages inherit one canonical UI from feature_navigation.css. */
#content[data-hn-main-tab="member"] .profile-display-name{font-size:15px}
#content[data-hn-main-tab="member"] .member-plan-badge{font-size:13px}
/* Subscription — compact, with no decorative page heading. */

#content[data-hn-main-tab="subscription"] .subscription-grid{gap:10px}
#content[data-hn-main-tab="subscription"] .sub-plan{border:1px solid #e4ede5;border-radius:14px;background:#fff;padding:11px 12px;box-shadow:none}
#content[data-hn-main-tab="subscription"] .sub-plan.featured{background:#f5fbf5;border-color:#acd9b7}
#content[data-hn-main-tab="subscription"] .sub-plan-top h2{font-size:14px;margin:8px 0 5px}
#content[data-hn-main-tab="subscription"] .sub-price{font-size:15px;margin-bottom:10px}
#content[data-hn-main-tab="subscription"] .sub-features{padding-top:10px;gap:7px}
#content[data-hn-main-tab="subscription"] .sub-features li{font-size:12px;line-height:1.45}
#content[data-hn-main-tab="subscription"] .sub-plan-action{margin-top:10px}
#content[data-hn-main-tab="subscription"] .sub-details{border:1px solid #e8eee8;border-radius:15px;padding:16px;margin-top:13px}
/* Original five branded PNG images are intentionally unchanged. */
#bottom-nav.bottom{position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:0;z-index:20;width:min(100%,760px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:#f8fff6f5;border:1px solid #d8edd5;border-bottom:0;border-radius:17px 17px 0 0;box-shadow:0 -3px 14px #2e573611;backdrop-filter:blur(12px)}
#bottom-nav.bottom button{box-sizing:border-box;height:65px;min-height:65px;padding:3px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;overflow:hidden;border:0;border-radius:13px;background:transparent;box-shadow:none;color:#42644e}
#bottom-nav.bottom button.active{background:#e9f7e8;color:#196e3f}
#bottom-nav.bottom.hidden,#bottom-nav.bottom button[hidden]{display:none}
#bottom-nav.bottom button::before,#bottom-nav.bottom button::after{content:none;display:none}
#bottom-nav.bottom button .tab-icon-img{display:block;position:relative;width:43px;height:43px;min-width:0;min-height:0;max-width:43px;max-height:43px;object-fit:contain;transform:none;filter:none;opacity:1;flex:0 0 auto;margin:0}
#bottom-nav.bottom button .tab-label{position:static;display:block;background:transparent;border:0;box-shadow:none;color:inherit;border-radius:0;font-size:11px;font-weight:600;line-height:1.1;padding:0;margin:-2px 0 0;min-height:0;height:auto}
html[data-hn-theme="dark"] #bottom-nav.bottom{background:#21392b;border-color:#395a43}
html[data-hn-theme="dark"] #bottom-nav.bottom button.active{background:#315a3b;color:#baf1c7}
@media(max-width:390px){
 #app{padding-left:12px;padding-right:12px}
 #bottom-nav.bottom button{height:62px;min-height:62px}
 #bottom-nav.bottom button .tab-icon-img{width:clamp(33px,11vw,42px);height:clamp(33px,11vw,42px)}
 :root{--hn-home-shortcut-height:64px}
 .hn-finance-panel{--hn-finance-date-font:16px;--hn-finance-ribbon-width:max(155px,41%);padding:11px 11px 0;border-radius:19px}
 .hn-finance-panel::before{height:51px;width:var(--hn-finance-ribbon-width);border-radius:18px 0 0 0}
 .hn-finance-head{height:36px;min-height:36px;gap:7px;margin-bottom:3px}
 #content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-financial-ledger .scope-trigger{padding:6px 8px;gap:5px;min-height:33px;font-size:11px}
 #content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-financial-ledger .hn-ledger-icon{flex-basis:17px;width:17px;height:17px}
 #content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-financial-ledger .hn-ledger-icon svg{width:17px;height:17px}
 .hn-finance-body{grid-template-columns:minmax(84px,31%) minmax(0,1fr);gap:10px;padding:3px 0 8px}
 .hn-finance-ring{padding:7px}
 .hn-finance-numbers{gap:10px}
 .hn-finance-pair{grid-template-columns:1fr;gap:8px}
 .hn-finance-pair>div{align-items:flex-start;text-align:left}
 .hn-finance-numbers small{font-size:10px;gap:2px;margin-bottom:3px;justify-content:flex-start}
 .hn-finance-numbers strong{font-size:clamp(14px,4.05vw,18px);letter-spacing:-.25px;line-height:1.08}
 .hn-income-arrow,.hn-expense-arrow{width:13px;height:13px;flex-basis:13px;font-size:10px}
 .hn-finance-net{padding:7px 9px;gap:3px 5px}
 .hn-finance-net strong{font-size:clamp(16px,4.7vw,20px)}
 .hn-finance-net small{font-size:10px}
 .hn-net-icon{width:14px;height:14px;flex-basis:14px}.hn-net-icon svg{width:14px;height:14px}
 .hn-budget-toggle{width:calc(100% + 22px);margin:0 -11px;min-height:38px;padding:7px 13px;border-radius:0 0 18px 18px;font-size:12px}
 .hn-budget-chevron{margin-right:2px}
 #content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-period-ledger-row{gap:6px}
 #content[data-hn-main-tab]:not([data-hn-main-tab=""]) .hn-period-ledger-row > .hn-financial-ledger{max-width:46%}
 #content[data-hn-main-tab="home"] .quick{min-height:var(--hn-home-shortcut-height);padding:8px 11px;gap:9px}
 #content[data-hn-main-tab="home"] .quick .quick-symbol{flex-basis:34px;width:34px;height:34px;min-height:34px}
 #content[data-hn-main-tab="home"] .quick strong{font-size:14px;line-height:1.3}
}

@media(max-width:520px){
 .hn-finance-shared .hn-finance-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
 .hn-finance-shared .hn-finance-net{flex-direction:column;align-items:center;justify-content:center;padding:0;border-radius:0}
 .hn-finance-shared .hn-finance-body{padding:7px 0 11px}
 .hn-finance-shared .hn-finance-date{max-width:var(--hn-finance-ribbon-width)}
 .hn-finance-shared .hn-finance-numbers strong{font-size:clamp(12px,3.1vw,16px)}
 .hn-finance-shared .hn-finance-net strong{font-size:clamp(13px,3.3vw,17px)}
}
@media(max-width:340px){.hn-finance-ring-inner strong{font-size:17px}.hn-finance-numbers strong{font-size:10px}.hn-finance-head{gap:4px}}
