 *{box-sizing:border-box;}body{margin:0;}button,input,select,textarea{font:inherit;}button{cursor:pointer;-webkit-tap-highlight-color:transparent;}button:focus-visible{outline:2px solid var(--hn-focus-ring);outline-offset:3px;}button:disabled{opacity:.6;cursor:wait;}.round{border:0;background:#e4f3e2;border-radius:100px;width:44px;height:44px;font-size:27px;color:var(--deep);}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#799582;}.card{border-radius:20px;background:white;padding:20px;margin:12px 0;box-shadow:0 5px 24px #183c2210;min-width:0;}.amount{font-size:clamp(29px,7vw,42px);font-weight:800;letter-spacing:-1.5px;margin:11px 0 18px;overflow-wrap:anywhere;}.positive{color:#148c56;}.negative{color:#c76c50;}.sub{font-size:13px;color:#71877a;line-height:1.75;}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 10px;}.section-head h2,.card h2{font-size:18px;margin:0 0 13px;}.section-head h2{margin:0;}.date-label{font-size:13px;color:#64836e;font-weight:750;margin:17px 0 3px;}.rows{display:flex;flex-direction:column;}.tx{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #edf1ed;min-width:0;}.tx:last-child{border-bottom:0;}.tx-button{width:100%;border-top:0;border-left:0;border-right:0;background:transparent;text-align:left;color:inherit;}.tx-icon{width:42px;height:42px;border-radius:13px;background:#e9f6e8;display:grid;place-items:center;color:#259b56;font-size:20px;flex-shrink:0;}.tx-info{flex:1;min-width:0;}.tx-info strong{display:block;overflow-wrap:anywhere;}.tx-info small{font-size:12px;color:#829488;display:block;margin-top:4px;}.tx-money{font-weight:750;font-size:17px;white-space:nowrap;}.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea{display:block;width:100%;max-width:100%;min-width:0;height:var(--hn-control-height);min-height:var(--hn-control-height);border:1px solid #d9e7da;background:#fff;border-radius:13px;padding:0 13px;margin-top:7px;color:#274631;font-size:16px;outline-offset:2px;}.field input:focus-visible,.field select:focus-visible{outline:2px solid #2aa25a;border-color:#2aa25a;}input[type=checkbox],input[type=radio]{width:18px;height:18px;min-width:0;min-height:0;padding:0;margin:0;flex-shrink:0;accent-color:var(--green);vertical-align:middle;} .field:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;} .field>input[type=checkbox]{display:inline-block;flex:0 0 18px;margin-top:3px;}.primary{background:var(--green);color:white;}.secondary{background:#e6f3e4;color:var(--deep);}.wide{width:100%;}.small{padding:8px 10px;min-height:37px;font-size:13px;}.space-top{margin-top:12px;}.empty{text-align:center;color:#7c9381;padding:28px 5px;}.empty span{font-size:32px;display:block;margin-bottom:7px;}.setting{width:100%;border:0;border-bottom:1px solid #edf1ed;background:white;text-align:left;padding:10px 0;color:#284537;display:flex;justify-content:space-between;align-items:center;}.setting:last-child{border-bottom:0;}.setting strong{font-weight:650;}.setting small{display:block;color:#8a9b8e;margin-top:5px;}.chevron{font-size:23px;color:#98af9f;}.profile{display:flex;align-items:center;gap:13px;}.avatar{width:54px;height:54px;border-radius:50%;background:#dcf3d5;color:#298346;display:grid;place-items:center;font-size:26px;}.hidden{display:none!important;}#notice.notice-error,#notice.notice-ok{padding:12px;border-radius:12px;margin:10px 0;}.flower{text-align:center;font-size:55px;color:#62b743;}.check{display:flex;align-items:flex-start;gap:10px;margin:17px 0;font-size:13px;line-height:1.7;}.check>input[type=checkbox]{margin-top:2px;}.check a{color:var(--deep);}.donut{width:min(230px,70vw);aspect-ratio:1;border-radius:50%;margin:20px auto;display:grid;place-items:center;}.donut-hole{width:64%;height:64%;border-radius:50%;background:white;display:grid;place-items:center;text-align:center;padding:10px;}.dot{width:13px;height:13px;border-radius:50%;flex-shrink:0;}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}.dialog-head h2{margin:0;}.close{border:0;background:#f1f5ee;color:#365742;border-radius:50%;width:36px;height:36px;font-size:26px;}dialog{width:min(440px,calc(100vw - 26px));max-height:calc(100dvh - 38px);overflow-y:auto;border:0;border-radius:22px;padding:20px;box-shadow:0 15px 65px #0003;}dialog::backdrop{background:#11281bb0;}.danger-link{display:block;border:0;background:transparent;color:#ba4141;padding:15px;margin:auto;}.note{background:#fff6d7;border-radius:14px;padding:12px;}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}@media (min-width:750px){}@media (max-width:360px){.card{padding:15px}.tx-money{font-size:15px}}


/* v0.6.2: single source of truth for all form controls. */

.field { display:block; width:100%; min-width:0; margin:16px 0; font-size:14px; font-weight:600; line-height:1.5; color:#536d5c; }
.field-caption { display:block; }
.field > input:not([type="checkbox"]), .field > select, .field > textarea{
  box-sizing:border-box; display:block; width:100%; max-width:100%; min-width:0;
  height:var(--control-height); min-height:var(--control-height);
  margin:8px 0 0; padding:0 15px;
  border:1px solid var(--control-border); border-radius:var(--control-radius);
  background:#fff; color:#274631; font:normal 500 16px/normal -apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;
  letter-spacing:normal; text-indent:0; vertical-align:middle;
  -webkit-text-size-adjust:100%; -webkit-box-shadow:none; box-shadow:none;
}
.field > textarea { height:auto; min-height:108px; padding:12px 15px; line-height:1.5; resize:vertical; }
.field > input::placeholder, .field > textarea::placeholder { color:#9ca99e; opacity:1; }
.field > select{
  -webkit-appearance:none; appearance:none; cursor:pointer;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23536d5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 7 5 5 5-5'/%3E%3C/svg%3E");
  background-position:right 14px center; background-repeat:no-repeat; background-size:18px 18px;
}

.field > input[type="date"], .field > input[type="datetime-local"] {
  -webkit-appearance:none; appearance:none; color-scheme:light;
  line-height:normal; text-align:left; font-variant-numeric:tabular-nums;
}
.field > input[type="date"]::-webkit-date-and-time-value,
.field > input[type="datetime-local"]::-webkit-date-and-time-value {text-align:left; min-height:1em;}
.field > input[type="date"]::-webkit-datetime-edit,
.field > input[type="datetime-local"]::-webkit-datetime-edit {padding:0; line-height:normal;}
.field > input[type="date"]::-webkit-calendar-picker-indicator,
.field > input[type="datetime-local"]::-webkit-calendar-picker-indicator {opacity:.8; margin:0 0 0 7px;}
.field > input:focus-visible, .field > select:focus-visible, .field > textarea:focus-visible{border-color:#219c56;outline:2px solid #219c56;outline-offset:2px;}
.primary,.secondary {border-radius:13px;border:0;padding:12px 16px;font-size:16px;font-weight:750;white-space:normal;overflow-wrap:anywhere;min-height:var(--control-height);display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.3;}
.primary.small,.secondary.small {min-height:37px;}
.card > .field:first-child {margin-top:0;}
@media (max-width:360px) { .field > input:not([type="checkbox"]), .field > select{font-size:16px;} }

/* v0.6.3: compact header, four-tab navigation, report-scoped controls */






/* Month control on secondary settings pages only; root tabs own their design in five_tabs.css. */
#content[data-hn-main-tab=""] .month-trigger{width:100%;min-height:50px;height:50px;border:1px solid #d9e7da;background:white;border-radius:13px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:#274631;font-size:16px;font-weight:550;text-align:left;line-height:1;white-space:nowrap;}

.year-line button{height:44px;border:0;background:#e6f3e4;color:#196c40;border-radius:13px;font-size:27px;}
.year-line strong{font-size:20px;}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:8px;}
.month-choice{min-height:52px;background:#f4f8f1;border:1px solid #d9e7da;border-radius:14px;color:#244536;font-weight:650;font-size:16px;}
.month-choice.picked{background:#219c56;border-color:#219c56;color:white;}
.avatar-photo{width:58px;height:58px;object-fit:cover;border-radius:50%;flex-shrink:0;background:#e1f5de;}.profile-main{flex:1;min-width:0;overflow-wrap:anywhere;}

@media (max-width:380px){.scope-select{max-width:62%;min-width:110px}.card{padding:16px}}

/* v0.6.4 — final compact navigation and coherent custom date/month selectors. */






.scope-select{appearance:none;-webkit-appearance:none;border:1px solid #bbdbb6;border-radius:19px;background:#ffffffb8;color:#246946;font-size:13px;font-weight:700;padding:0 27px 0 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23246946' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;flex:0 1 58%;max-width:58%;min-width:0;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:39px;background-color:#ffffffc9;}


.year-choose{border:1px solid #d9e7da!important;background:#fff!important;border-radius:12px!important;font-size:18px!important;font-weight:750;color:#196c40!important;}
.year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 8px;}
.year-choice{min-height:46px;border-radius:12px;border:1px solid #d9e7da;background:#f4f8f1;color:#244536;font-weight:650;}
.year-choice.picked{background:#219c56;color:white;border-color:#219c56;}


@media (max-width:390px){.scope-select{max-width:56%;font-size:12px;padding-left:10px;padding-right:24px}}

/* v0.6.5: member page only — remove global search/ledger, protect LINE ID */

.member-id{flex-wrap:wrap;display:inline-flex;align-items:center;gap:5px;margin-top:6px;}
.member-id span{color:#667b6a;overflow-wrap:anywhere;min-width:0;flex:0 0 auto;font-size:12px;word-break:normal;}
.copy-id-icon,.inline-copy-icon{width:32px;height:32px;border:0;border-radius:9px;background:#e6f3e4;color:#196c40;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 32px;}.inline-copy-icon{margin-left:8px;}
.setting-left{display:flex;align-items:center;gap:12px;min-width:0;}
.setting-icon{width:34px;height:34px;min-width:34px;border-radius:10px;background:#e8f5e6;color:#219c56;font-size:20px;display:grid;place-items:center;line-height:1;}

/* v0.6.6: custom account picker, registration wizard, settings UI */




/* Shared design tokens for ledger and form dropdowns: compact A + B separators. */
:is(.scope-menu button[data-scope],.huanar-select-option){position:relative;display:flex;align-items:center;width:100%;min-height:var(--hn-dropdown-row-height);padding:8px 40px 8px 12px;margin:0;border:0;border-radius:var(--hn-dropdown-row-radius);background:transparent;color:var(--hn-dropdown-ink);font-size:14px;font-weight:550;line-height:1.3;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer;}
:is(.scope-menu button[data-scope],.huanar-select-option):is(.picked,.selected){background:var(--hn-dropdown-picked);color:#126d3d;font-weight:750;}
/* Current item: restrained right-hand tick, rather than a solid highlighted rectangle. */
:is(.scope-menu button[data-scope],.huanar-select-option):is(.picked,.selected)::before{content:"✓";position:absolute;right:12px;top:50%;transform:translateY(-50%);display:block;background:transparent;color:#15884a;font-size:18px;font-weight:800;line-height:1;pointer-events:none;}
:is(.scope-menu button[data-scope],.huanar-select-option):hover:not(:disabled):not(.picked):not(.selected){background:#f1f9ed;}
:is(.scope-menu button[data-scope],.huanar-select-option):focus-visible{outline:2px solid #2c9e63;outline-offset:-2px;}
:is(.scope-menu button[data-scope],.huanar-select-option):disabled{opacity:.45;cursor:not-allowed;}
/* Inset, hairline green separators; selected rows stay clean and highlighted. */
:is(.scope-menu button[data-scope],.huanar-select-option):not(:last-child)::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:1px;background:var(--hn-dropdown-stroke);pointer-events:none;}
#onboarding{max-width:540px;margin:14px auto 90px;}.onboard-head{text-align:center;display:flex;flex-direction:column;gap:10px;}.onboard-title-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;}.onboard-head .flower{font-size:28px;line-height:1;color:#62b743;margin:0;}.onboard-head h1{margin:0;font-size:clamp(28px,6.2vw,38px);line-height:1.22;letter-spacing:-.03em;word-break:keep-all;white-space:nowrap;}.onboard-meta{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;}.onboard-meta strong{font-size:16px;color:#335340;}.onboard-progress{color:#187b43;background:#e6f5e5;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:6px 16px;font-size:13px;font-weight:750;white-space:nowrap;}.onboard-step h2{font-size:19px;margin:15px 0;}.onboard-actions{display:flex;gap:10px;margin-top:22px;}.onboard-actions button{flex:1;}
.category-picks{padding:12px;border:1px solid #d9e7da;border-radius:14px;margin:16px 0;}.category-picks legend{font-size:14px;color:#536d5c;font-weight:650;}.chips{display:flex;flex-wrap:wrap;gap:9px;}.chips label input{position:absolute;opacity:0;}.chips label span{display:block;border:1px solid #d9e7da;border-radius:999px;background:#f5f9f2;padding:7px 12px;color:#39604a;font-size:13px;cursor:pointer;}.chips label input:checked+span{background:#1f9b59;color:white;border-color:#1f9b59;}.chips label input:focus-visible+span{outline:2px solid #126b3f;}
#onboarding input[type="time"],.reminder-time-field input[type="time"]{-webkit-appearance:none;appearance:none;padding:0 15px;line-height:1.2;font-weight:700;letter-spacing:.01em;text-align:left;background:#fff;color:#254c34;}
#onboarding input[type="time"]::-webkit-date-and-time-value,.reminder-time-field input[type="time"]::-webkit-date-and-time-value{min-height:var(--hn-control-height);height:var(--hn-control-height);display:flex;align-items:center;justify-content:flex-start;text-align:left;}
#onboarding input[type="time"]::-webkit-calendar-picker-indicator,.reminder-time-field input[type="time"]::-webkit-calendar-picker-indicator{opacity:.7;}
#onboarding input[type="time"]::-webkit-datetime-edit,.reminder-time-field input[type="time"]::-webkit-datetime-edit{padding:0;line-height:1.2;}
#onboarding input[type="time"]::-webkit-datetime-edit-fields-wrapper,.reminder-time-field input[type="time"]::-webkit-datetime-edit-fields-wrapper{display:flex;align-items:center;}
#onboarding input[type="time"]::-webkit-datetime-edit-hour-field,#onboarding input[type="time"]::-webkit-datetime-edit-minute-field,.reminder-time-field input[type="time"]::-webkit-datetime-edit-hour-field,.reminder-time-field input[type="time"]::-webkit-datetime-edit-minute-field{padding:0;}
@media (max-width:520px){.onboard-title-row{gap:8px;align-items:center;}.onboard-head .flower{font-size:24px;}.onboard-head h1{font-size:clamp(24px,8vw,33px);}}
@media (max-width:360px){.onboard-meta{flex-direction:column;gap:8px;}}
/* v0.7.38 — Registration reminder is a separate opt-in step, with full-width time input. */
#onboarding .onboard-reminder-control{margin:15px 0 18px;}
#onboarding .onboard-reminder-switch{display:flex;align-items:center;gap:14px;min-height:56px;color:#29523b;font-size:16px;font-weight:750;cursor:pointer;}
#onboarding .onboard-reminder-switch input{position:absolute;opacity:0;width:1px;height:1px;}
#onboarding .onboard-reminder-track{position:relative;display:block;width:54px;height:32px;flex:0 0 54px;border-radius:999px;background:#dce7dd;transition:background .15s ease;}
#onboarding .onboard-reminder-track:after{content:"";position:absolute;width:26px;height:26px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 1px 5px #122e1624;transition:transform .15s ease;}
#onboarding .onboard-reminder-switch input:checked + .onboard-reminder-track{background:#239f59;}
#onboarding .onboard-reminder-switch input:checked + .onboard-reminder-track:after{transform:translateX(22px);}
#onboarding .onboard-reminder-switch input:focus-visible + .onboard-reminder-track{outline:3px solid #70bc8b;outline-offset:3px;}
#onboarding #onboard-reminder-time[hidden]{display:none!important;}
#onboarding .reminder-time-field{display:block;width:100%;max-width:100%;}
#onboarding .reminder-time-field input[type="time"]{display:block;width:100%;max-width:100%;min-width:0;height:var(--hn-control-height);min-height:var(--hn-control-height);font-size:16px;margin-top:7px;}
.category-item{display:flex;align-items:center;justify-content:space-between;gap:8px;}.category-item small{display:block;margin-top:5px;color:#839789;font-size:12px;}.category-item>div:last-child{display:flex;align-items:center;gap:6px;}.icon-danger{background:#fff1f0;color:#cf3e3e;border:0;border-radius:10px;font-size:18px;width:37px;height:37px;}


/* Unified boot and tab-loading indicator. Old skeleton tiles were removed in v0.8.01. */
/* 唯一載入元件：首次進站與切換頁面共用，沒有舊骨架與重複頁面 DOM。 */
#hn-loading{display:flex;align-items:center;justify-content:center;min-height:100px;margin:6px 0 14px;padding:10px 12px;background:transparent;border:0}
#hn-loading.hidden{display:none}
#workspace.hn-page-pending #content{display:none}
.hn-loading-status{display:inline-block;color:#5a8067;font-size:14px;font-weight:500;text-align:center}

/* v0.6.8: shared real ledger scope component, no duplicate global ledger/search controls */



.scope-wrap{flex:0 1 auto;max-width:min(55%,230px);min-width:0;width:auto;position:relative;z-index:8;}
/* Escalate both the trigger and its ancestor stacking context only while open. */
.scope-wrap.hn-ledger-menu-open{z-index:60;}
#content .hn-finance-panel.hn-ledger-menu-open{z-index:40;}
#content .manage-card.hn-ledger-menu-open,#content .function-page-head.hn-ledger-menu-open,#content .compact-ledger-row.hn-ledger-menu-open{position:relative;z-index:40;}
.scope-trigger{font-weight:700;align-items:center;width:auto;max-width:100%;min-width:110px;min-height:38px;display:flex;justify-content:center;gap:8px;padding:7px 12px;border:1px solid #cbe7c3;border-radius:24px;background:linear-gradient(100deg,#f2faec,#e1f6d4);color:#174e30;font-size:13px;white-space:nowrap;box-shadow:none;}
.scope-trigger.hn-ledger-dropdown-trigger{width:min(var(--hn-ledger-trigger-width),100%);min-width:0;max-width:100%;}
.scope-trigger .hn-ledger-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;color:#269a42;}
.scope-trigger .hn-ledger-icon svg{width:20px;height:20px;display:block;}
.scope-trigger .hn-ledger-name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.month-control{min-width:0;width:100%;margin:0;}.month-control .field-caption{font-size:13px;color:#536d5c;font-weight:650;margin-bottom:9px;display:none;}






.search-action:focus-visible,.scope-trigger:focus-visible{outline:2px solid #18864d;outline-offset:2px;}
@media (max-width:380px){.scope-trigger{min-width:92px;font-size:11px}.scope-wrap{max-width:53%}}

/* Compact account control on ledger-specific secondary pages; member and personal settings are account-independent */
.compact-ledger-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 13px;padding:0 4px;}
.compact-ledger-label{color:#64816c;font-size:13px;font-weight:600;}
.compact-ledger-row .scope-wrap{max-width:min(70%,260px);}
.compact-ledger-row .scope-trigger{width:auto;min-width:135px;}

/* v0.6.9: quiet, integrated scope selector; custom SVG chevron */



.scope-arrow{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;line-height:1;transition:transform .16s ease;}
.scope-arrow svg{display:block;width:16px;height:16px;}
.scope-trigger[aria-expanded="true"] .scope-arrow{transform:rotate(180deg);}
.scope-menu{position:absolute;padding:6px;background:#fff;display:flex;flex-direction:column;max-height:min(300px,62dvh);overflow:auto;width:var(--hn-ledger-dropdown-width);min-width:var(--hn-ledger-dropdown-width);max-width:var(--hn-ledger-dropdown-width);z-index:60;right:0;top:calc(100% + 5px);border-radius:var(--hn-dropdown-menu-radius);border:1px solid var(--hn-dropdown-stroke);box-shadow:0 14px 30px rgba(24,71,36,.14);}





.inline-ledger-scope{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:160px;flex:0 0 auto;}

.inline-ledger-scope .scope-wrap{max-width:none;width:auto;}
.inline-ledger-scope .scope-trigger{min-width:136px;}
@media (max-width:560px){.inline-ledger-scope{align-items:stretch;min-width:0}.inline-ledger-scope .scope-wrap{width:100%}.inline-ledger-scope .scope-trigger{width:100%}}

/* v0.6.12: fixed date layout and distinct action spacing, plus media capture */



#transaction-form input[type=date]{text-align:left;line-height:normal;padding:0 12px;min-height:50px;}
#transaction-form input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.2em;}
#transaction-form input[type=date]::-webkit-datetime-edit{text-align:left;display:flex;align-items:center;min-height:46px;}

/* v0.6.14 real ledger management */

.book-tabs button{background:transparent;color:#62746b;border:0;border-radius:12px;min-height:46px;font-size:15px;font-weight:700;}
.book-tabs button.selected{background:#23a464;color:#fff;}

.book-transfer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eaf0eb;}.book-transfer-row:last-child{border-bottom:0;}.book-transfer-row small{display:block;color:#809383;font-size:12px;margin-top:4px;}.book-transfer-row b{white-space:nowrap;font-size:14px;}/* v0.7.7: ledger setting actions are independent full-width buttons, never touching. */
.hn-book-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0;}
.hn-book-actions>button{display:block;width:100%;min-width:0;margin:0;min-height:52px;}
/* Keep very long currency amounts within each card instead of widening the viewport. */

.tx-money,.report-currency-amount{min-width:0;max-width:45%;white-space:normal;overflow-wrap:anywhere;text-align:right;}
.book-balance{background:linear-gradient(115deg,#e5f8db,#fff5dc);border-radius:16px;padding:17px;margin-bottom:20px;}.book-balance .amount{font-weight:800;font-size:29px;margin:10px 0;}.book-balance .sub{font-size:12px;line-height:1.6;}


/* v0.6.19 — unified date rendering + streamlined edit form. No native iOS date labels. */

#edit-dialog{width:min(490px,calc(100vw - 24px));padding:24px 22px;max-height:calc(100dvh - 32px);border-radius:27px;}

#edit-dialog .dialog-head h2{flex:1 1 auto;min-width:0;margin:0;max-width:100%;font-size:clamp(21px,5vw,25px);font-weight:800;letter-spacing:-.03em;color:#244b35;line-height:1.32;overflow-wrap:anywhere;white-space:normal;outline:none;}#edit-dialog .dialog-head h2:focus{outline:none;}#edit-dialog .dialog-head .close{flex:0 0 42px;}
#edit-dialog .close{width:42px;height:42px;font-size:25px;background:#eff6ee;}





.tx-editor-section{padding:0 2px;min-width:0;}
.tx-editor-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.tx-editor-form .field{margin:7px 0;font-size:13px;font-weight:700;color:#597462;line-height:1.5;min-width:0;}
.tx-editor-form .field-caption{display:block;min-height:20px;}
.tx-editor-form .field input:not([type=hidden]),.tx-editor-form .field select{height:51px;min-height:51px;margin-top:6px;padding:0 14px;border-radius:14px;border:1px solid var(--edit-border);font-size:16px;font-weight:550;line-height:normal;color:#284c36;background-color:#fff;}
.tx-editor-form .field select{padding-right:38px;}

.tx-editor-form .field-unit{color:#799386;font-weight:500;font-size:12px;}

.tx-editor-remove{margin:12px auto 0;font-size:14px;font-weight:650;}
.custom-date-trigger{width:100%;min-width:0;height:51px;min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:9px;box-sizing:border-box;border:1px solid var(--edit-border);border-radius:14px;padding:0 13px;background:#fff;color:#284c36;text-align:left;font-size:16px;font-weight:550;line-height:1.3;cursor:pointer;margin-top:6px;}


.custom-date-trigger:focus-visible{outline:2px solid #239b58;outline-offset:2px;}

.date-picker-dialog::backdrop{background:#11281b9c;}
.date-picker-top,.date-picker-head,.date-picker-bottom{display:flex;align-items:center;justify-content:space-between;}
.date-picker-top{margin-bottom:12px;font-size:19px;}.date-picker-close{border:0;background:#eef6ee;border-radius:50%;height:35px;width:35px;font-size:22px;color:#446551;}
.date-picker-head{padding:9px 0 15px;}
.date-picker-month{text-align:center;display:flex;flex-direction:column;gap:2px;font-size:13px;color:#6a8d75;}.date-picker-month strong{font-size:19px;color:#24553b;}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}.calendar-weekday{text-align:center;color:#7c9584;font-size:12px;line-height:34px;}.calendar-day{width:100%;aspect-ratio:1;border:0;border-radius:12px;background:transparent;color:#2b4d39;font-size:14px;font-weight:600;}.calendar-day.today{box-shadow:inset 0 0 0 1.5px #9acd9e;}.calendar-day.selected{background:#219c56;color:white;box-shadow:none;}
.date-picker-bottom{gap:10px;margin-top:16px;}.date-picker-bottom button{flex:1;min-height:44px;border-radius:12px;}
@media (max-width:380px){#edit-dialog{padding:19px 16px}.tx-editor-two{gap:9px}.tx-editor-form .field input:not([type=hidden]),.tx-editor-form .field select,.custom-date-trigger{font-size:15px;padding-left:10px;padding-right:10px}.custom-date-icon svg{width:18px;height:18px}}
/* Hidden transport date inputs must not inherit the global visible input styling. */
.field > input[type="hidden"],.tx-editor-form .field > input[type="hidden"]{display:none!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;}

/* v0.6.20: page-independent transient notifications and recurring rule actions */
#notice.notice-ok,#notice.notice-error{position:fixed;z-index:120;top:calc(env(safe-area-inset-top,0px) + 20px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(88vw,460px);margin:0!important;padding:12px 20px!important;border-radius:999px!important;box-shadow:0 10px 36px #173d2422;font-size:14px!important;font-weight:700;line-height:1.5;text-align:center;pointer-events:none;animation:notice-appear .2s ease-out;}
#notice.notice-ok{background:#e6f5e8;color:#156e3c;border:1px solid #bfe6c9;}
#notice.notice-error{background:#fff0eb;color:#a63c35;border:1px solid #f5d0c5;}
@keyframes notice-appear{from{opacity:0;transform:translate(-50%,-9px)}to{opacity:1;transform:translate(-50%,0)}}
.utility-actions{display:flex;align-items:flex-end;gap:7px;flex-direction:column;}.utility-amount{white-space:nowrap;color:#264b37;font-size:16px;}.utility-buttons{display:flex;gap:7px;}.utility-buttons button{display:grid;place-items:center;border:0;border-radius:11px;background:#e8f4e8;color:#216b43;width:39px;height:37px;min-height:37px;}.utility-buttons button:focus-visible{outline:2px solid #249b56;outline-offset:2px;}.utility-buttons .recurring-remove{background:#f1f3ef;color:#64786b;}

/* v0.6.22 - Daily reminder switch: interactive component, not a hidden overlay */
.reminder-setting-line{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.reminder-setting-line strong{display:block;font-size:15px;color:#254c34;}
.reminder-setting-line small{display:block;margin-top:5px;color:#799183;font-size:12px;font-weight:400;}
.member-reminder-line{border-top:1px solid #e8ede7;border-bottom:1px solid #e8ede7;padding:11px 0;}
.member-reminder-line .setting-left{flex:1 1 auto;min-width:0;white-space:nowrap;}
/* v0.8.46: unobtrusive inline time label; native picker stays accessible on phones and desktop. */
.member-reminder-time-field{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 86px;width:86px;min-width:86px;max-width:86px;height:34px;min-height:34px;align-self:center;margin:0;border:0;border-radius:9px;background:#eaf4ea;box-sizing:border-box;overflow:hidden;cursor:pointer;}
.member-reminder-time-display{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#2c6043;font-family:inherit;font-size:15px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;}
.member-reminder-time-field input.member-reminder-time{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;opacity:0;z-index:1;cursor:pointer;-webkit-appearance:none;appearance:none;}
.member-reminder-time-field:focus-within{background:#e1f0e2;}.member-reminder-time-field:has(input:focus-visible){outline:2px solid #2a9d5c;outline-offset:1px;}
.member-reminder-time-field:has(input:disabled){opacity:.65;cursor:wait;}
@media(max-width:380px){.member-reminder-line{gap:7px;padding-inline:8px;}.member-reminder-line .setting-left{gap:5px;}.member-reminder-time-field{flex-basis:80px;width:80px;min-width:80px;max-width:80px;}}
.reminder-switch{position:relative;flex:0 0 54px;width:54px;height:33px;display:block;cursor:pointer;touch-action:pan-y;user-select:none;-webkit-user-select:none;}
.reminder-switch input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer;margin:0;z-index:2;}
.reminder-switch-track{display:block;position:absolute;inset:0;border-radius:999px;background:#d7dfd9;transition:background .18s ease;}
.reminder-switch-thumb{display:block;position:absolute;left:3px;top:3px;width:27px;height:27px;border-radius:50%;background:white;box-shadow:0 1px 4px #133c242b;transition:transform .18s ease;}
.reminder-switch input:checked+.reminder-switch-track{background:#21a25d;}
.reminder-switch input:checked+.reminder-switch-track .reminder-switch-thumb{transform:translateX(21px);}
.reminder-switch input:focus-visible+.reminder-switch-track{outline:3px solid #a8d9b4;outline-offset:3px;}
.reminder-switch input:disabled+.reminder-switch-track{opacity:.6;}
@media (prefers-reduced-motion:reduce){.reminder-switch-track,.reminder-switch-thumb{transition:none}}

/* v0.6.24 — Four original branded PNG navigation icons. */










/* v0.6.27 — Shared brand header: use tightly trimmed original logo art.
   This is one global header layout, NOT page-specific CSS hiding. */

.top{justify-content:space-between;padding-bottom:4px;min-height:0;display:flex;align-items:center;padding:0;margin:0 0 10px;gap:0;}
.brand{display:block;flex:0 0 auto;line-height:0;}
.brand img{display:block;width:190px;max-width:min(64vw,230px);height:auto;object-fit:contain;object-position:left center;}
#content>.card:first-child{margin-top:0;}
#workspace:not(.hidden) #content{margin-top:0;}
@media (min-width:750px){.top{margin-bottom:12px}.brand img{width:205px;max-width:230px}}
@media (max-width:360px){.brand img{width:166px}.top{margin-bottom:8px}}


/* v0.6.28 — One reusable management layout for books / family, no CSS hiding. */
.manage-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:4px 0 14px;min-width:0;}
.manage-head-copy{min-width:0;flex:1;}

.manage-head p{margin:0;color:#789180;font-size:12px;line-height:1.5;}
.manage-scope{flex:0 1 auto;min-width:0;max-width:48%;}
.manage-scope .inline-ledger-scope{display:flex;flex-direction:column;gap:2px;align-items:flex-end;margin:0;}

.manage-scope .scope-wrap{max-width:100%;min-width:0;}
.manage-scope .scope-trigger{max-width:100%;min-width:0;}
.manage-scope .scope-trigger .hn-ledger-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.manage-card-head p{font-size:12px;color:#819586;line-height:1.6;margin:4px 0 0;}
.manage-list{display:flex;flex-direction:column;}
.manage-book-item{display:flex;align-items:center;gap:8px;min-width:0;}
.manage-book-mark,.manage-action-icon{flex:0 0 34px;height:34px;border-radius:10px;background:#eaf6e7;color:#219857;display:grid;place-items:center;font-size:18px;}
.manage-book-details{min-width:0;flex:1;display:flex;align-items:center;flex-wrap:nowrap;gap:5px;}
.manage-book-details strong{display:block;font-size:15px;line-height:1.45;color:#264b35;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.manage-book-details small{display:block;color:#849789;font-size:12px;line-height:1.45;margin-top:3px;}
.hn-book-state{display:inline-flex;gap:5px;font-size:15px;line-height:1;color:#1f9355;white-space:nowrap;vertical-align:middle;margin-left:7px;}
.hn-family-member .manage-book-details{display:block;}
.hn-family-member .manage-book-details strong{display:block;}
.hn-family-member .manage-outline-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;}
.manage-outline-btn{border:1px solid #dceadf;color:#28744b;background:#f5fbf4;border-radius:10px;min-height:44px;white-space:nowrap;padding:7px 10px;font-size:13px;font-weight:700;}
.manage-outline-btn span{margin-left:6px;color:#86a28d;}
.manage-primary{margin-top:14px;min-height:47px;}
.manage-action{display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;text-align:left;color:#264b35;}
.manage-action>span:nth-child(2){flex:1;min-width:0;}
.manage-action strong{display:block;font-size:15px;}
.manage-action small{display:block;font-size:12px;color:#849789;margin-top:3px;}
.manage-chevron{color:#87a591;font-size:23px;}
.manage-form .field{font-size:13px;font-weight:650;margin:12px 0;color:#607e67;}
.manage-form .field input,.manage-form .field select{font-weight:500;margin-top:8px;}
.book-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;background:#f5f7f3;padding:6px;border-radius:16px;margin-bottom:8px;}
@media (max-width:390px){.manage-card{padding:16px}.manage-head{gap:7px}.manage-head p{font-size:11px}.manage-scope{max-width:47%}.manage-head h1{font-size:19px}.manage-book-item{gap:8px}.manage-book-details strong{font-size:16px}.manage-outline-btn{font-size:13px;padding:7px 9px}}

/* v0.6.29 — Unified membership-service rows and protected account deletion */
.member-service-link{display:flex;text-decoration:none;color:inherit;min-height:68px;}
.member-service-link .setting-icon{display:flex;align-items:center;justify-content:center;}
.member-service-link:focus-visible,.member-delete-trigger:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:8px;}
.member-delete-trigger{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 16px;border:1px solid #eab8b5;border-radius:13px;color:#b33d35;background:#fffafa;font-weight:750;font-size:15px;}
.member-delete-mark{display:inline-flex;align-items:center;justify-content:center;}

.erase-warning{background:#fff5f2;border:1px solid #f2cfca;border-radius:14px;padding:14px 16px;color:#80392e;line-height:1.7;font-size:14px;}
.erase-warning strong{display:block;font-size:16px;}.erase-warning p{margin:8px 0 0;}
.erase-agreement{margin:12px 0 18px;display:flex;align-items:center;gap:9px;line-height:1.5;}
.erase-confirm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;}.erase-confirm-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#456250;font-size:14px;font-weight:700;line-height:1.5;}.erase-confirm-label strong{color:#28503a;}.erase-confirm-input{display:flex;gap:10px;align-items:center;}.erase-confirm-input input{margin-top:0;}.erase-copy-note{margin:8px 0 0;color:#708678;font-size:12px;line-height:1.5;}
.member-delete-confirm{border:none;border-radius:13px;background:#bc4035;color:white;min-height:50px;font-weight:750;font-size:15px;}


/* v0.6.30: Account erase errors must remain readable inside the native dialog top layer. */
.erase-result{margin:12px 0 14px;padding:12px 14px;border:1px solid #e7a5a0;background:#fff0ee;color:#92332c;border-radius:12px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
.erase-result.hidden{display:none;}
.member-delete-confirm:disabled{opacity:.45;cursor:wait;}

/* v0.6.35: mobile-first subscription overview; informative only, no payment controls. */






.sub-head .sub{margin:0;}
.subscription-grid{display:grid;grid-template-columns:1fr;gap:13px;}
.sub-plan{background:#fff;border:1px solid #e5eee3;border-radius:22px;padding:23px 20px;box-shadow:0 8px 25px #1b4d2410;display:flex;flex-direction:column;}
.sub-plan.featured{background:linear-gradient(135deg,#e6f8d9,#fff9e5);border-color:#c9e9bd;}
.sub-plan-top h2{font-size:23px;color:#1b4930;margin:12px 0 9px;}.sub-tag{display:inline-block;background:#e4f4e2;border-radius:99px;padding:6px 12px;font-size:12px;font-weight:700;color:#208650;}
.sub-plan.featured .sub-tag{background:#219c56;color:white;}.sub-price{font-size:20px;font-weight:800;color:#1d653f;margin-bottom:13px;}
.sub-features{list-style:none;padding:14px 0 0;margin:0;border-top:1px solid #e5eee3;display:grid;gap:12px;flex:1;}
.sub-features li{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;color:#365b44;}.sub-features li span{font-weight:800;color:#229e59;}
.sub-disclaimer{color:#718a79;font-size:12px;line-height:1.7;margin:18px 0 12px;}
.sub-plan-action{margin-top:auto;width:100%;display:flex;align-items:stretch;min-width:0}.sub-plan-action>button,.sub-plan-action>.sub-current,.sub-plan-action>.sub-coming{box-sizing:border-box;display:flex;width:100%;height:42px;min-height:42px;max-height:42px;margin:0;padding:0 10px;align-items:center;justify-content:center;text-align:center;border-radius:11px;font-size:13px;font-weight:750;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sub-plan-action>button{border:0}.sub-current,.sub-coming{background:#e8f4e7;color:#26784a;}.sub-coming{background:#edf1ec;color:#748778;}
.sub-details{background:white;border-radius:20px;margin-top:17px;padding:21px;}.sub-details h2{font-size:18px;margin:0 0 12px;}.sub-detail-row{padding:13px 0;border-top:1px solid #edf1ea;}.sub-detail-row strong{font-size:14px;}.sub-detail-row p{font-size:13px;line-height:1.8;color:#6b8272;margin:5px 0 0;}.sub-legal{text-align:center;font-size:12px;line-height:1.9;color:#779383;margin:16px 0;}.sub-legal a{color:#247a4b;}
@media (min-width:900px){#app:has(.subscription-grid){max-width:1100px}.subscription-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sub-plan{padding:22px 18px}}
@media (max-width:360px){.sub-plan{padding:18px 15px}}

/* v0.6.40: five tabs align with main content */






/* v0.6.41 — consistent in-app dropdowns for all LIFF forms; full-width, no OS-native popup */
.huanar-select-shell{position:relative;display:block;width:100%;min-width:0;margin-top:8px;}
.huanar-select-shell .huanar-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;pointer-events:none!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;}
.huanar-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:100%;min-height:50px;height:auto;margin:0;padding:10px 14px 10px 16px;border:1px solid #cbe7c3;border-radius:24px;background:linear-gradient(100deg,#f2faec,#e1f6d4);color:#174e30;text-align:left;font-size:16px;font-weight:600;line-height:1.4;white-space:normal;cursor:pointer;}
.huanar-select-trigger:hover{border-color:#9dcba9;background:linear-gradient(100deg,#f3fbef,#d9f2d1);}
.huanar-select-trigger:focus-visible{outline:2px solid #229e58;outline-offset:2px;}
.huanar-select-trigger[aria-expanded="true"]{border-color:#259d5c;box-shadow:0 0 0 2px #229e5820;}
.huanar-select-trigger:disabled{background:#f1f5f1;color:#879b8a;cursor:not-allowed;}
.huanar-select-value{flex:1;min-width:0;overflow-wrap:anywhere;}
.huanar-select-chevron{flex:0 0 18px;width:18px;height:18px;background:center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233c7554' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");}


#chat-rule-form > .primary,#chat-rule-form > .secondary{display:flex;width:100%;max-width:100%;min-height:50px;}
#chat-rule-form > button + button{margin-top:12px;}
#chat-rule-cancel[hidden]{display:none!important;}
@media (max-width:360px){.huanar-select-trigger{font-size:16px;padding-left:12px}}

/* v0.6.42 — Larger, centered year navigation arrows with comfortable touch targets. */
.year-line{display:grid;align-items:center;text-align:center;margin:12px 0 18px;grid-template-columns:54px minmax(0,1fr) 54px;gap:10px;}
.year-line #year-prev,.year-line #year-next{display:flex;align-items:center;justify-content:center;width:54px;height:50px;min-width:54px;padding:0;border-radius:14px;background:#e6f3e4;color:#17673c;touch-action:manipulation;}
.year-line #year-prev svg,.year-line #year-next svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.year-line #year-prev:focus-visible,.year-line #year-next:focus-visible{outline:3px solid #1a9d56;outline-offset:3px;}
@media (max-width:360px){.year-line{grid-template-columns:50px minmax(0,1fr) 50px;gap:8px}.year-line #year-prev,.year-line #year-next{width:50px;min-width:50px}}


/* v0.6.43 — legible typography, accessible five-tab navigation and custom home shortcuts. */
@media (max-width:749px){
  body{font-size:16px;line-height:1.6;-webkit-text-size-adjust:100%}
  #content[data-hn-main-tab=""] :is(.sub,.card .sub,.manage-head p,.manage-card-head p,.setting small,.manage-action small,.manage-book-details small,.reminder-setting-line small,.category-item small,.tx small){font-size:14px;line-height:1.55}
  .card h2,.section-head h2,.shortcut-head h2{font-size:19px}
  .field,.manage-form .field{font-size:15px}
  .setting strong,.manage-action strong,.tx strong{font-size:16px}
  
  
  
  
  
}

.shortcut-section{margin:14px 0 21px;}
.shortcut-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 2px 12px;}
.shortcut-head h2{margin:0;color:#224a35;font-size:18px;}
#edit-shortcuts{border:1px solid #cfe3d1;border-radius:12px;background:#f7fcf5;color:#197c49;font-size:14px;font-weight:750;padding:9px 13px;min-height:40px;cursor:pointer;}
#edit-shortcuts:focus-visible{outline:2px solid #208f51;outline-offset:2px;}






/* v0.6.44 — profile ID beside nickname; proportional mobile time picker. */
.profile-name-row{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;flex-wrap:nowrap;}
.profile-display-name{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 86px);}
.profile-name-row .member-id{display:inline-flex;align-items:center;flex:0 0 auto;gap:4px;margin:0;white-space:nowrap;}
.profile-name-row .member-id span{font-size:12px;white-space:nowrap;flex:none;}
.profile-name-row .copy-id-icon{width:22px;height:28px;flex:0 0 22px;border:0;border-radius:0;background:transparent;color:#426f57;padding:0;box-shadow:none;appearance:none;-webkit-appearance:none;}
.profile-name-row .copy-id-icon:focus-visible{outline:2px solid #208f51;outline-offset:2px;border-radius:3px;}
.reminder-time-field{width:min(100%,260px);max-width:100%;font-size:15px;}
.reminder-time-field input[type=time]{display:block;width:100%;min-width:0;max-width:100%;height:48px;min-height:48px;font-size:18px;font-weight:650;line-height:1.4;padding:8px 12px;color:#254c34;box-sizing:border-box;}
@media (max-width:749px){.reminder-time-field{width:min(100%,220px)}.reminder-time-field input[type=time]{font-size:18px}.profile-name-row{gap:7px}.profile-display-name{max-width:calc(100% - 74px)}.profile-name-row .member-id span{font-size:13px}.profile-name-row .copy-id-icon{width:22px;height:28px;flex-basis:22px}}
@media (max-width:360px){.profile-name-row{gap:5px}.profile-name-row .member-id span{font-size:12px}.profile-name-row .copy-id-icon{width:22px;height:28px;flex-basis:22px}}


/* v0.6.45: consistent home tiles and touch/mouse drag-and-drop shortcut editor */




























/* v0.6.47 — Drag preview follows the pointer; selected and available tiles have identical dimensions. */








/* v0.6.48：底部五個導覽按鈕沿用會員上傳的原始立體圖示，統一圖像尺寸。 */





/* v0.6.49：底部五個分頁只顯示會員提供的立體圖像（原圖內已有標題），隱藏重複文字並放大圖示。 */







/* v0.6.50 — Five simplified, text-free 3D branded icons. Elegant floating tab bar without a full selected rectangle. */














/* v0.6.51 — brand-tinted bottom dock + visible finger-following drag preview */






/* v0.6.52 — First paint is useful: lightweight placeholders avoid the logo-only blank screen. */





@media  (prefers-reduced-motion:reduce){}
/* v0.6.52 — Larger branded navigation icons on phones without overflowing five columns. */



/* v0.6.53 — visible navigation captions below existing no-text 3D icons.
   Keep each tab one accessible button and avoid touching route/data logic. */





@media (max-width:749px){
 
 
 
 
 #app{padding-bottom:calc(124px + env(safe-area-inset-bottom))}
}

@media (min-width:750px){#app{padding-bottom:135px}}


/* v0.6.54 — Keep the drag preview in the modal top layer; horizontal actions. */





/* v0.6.55 — streamlined UI and larger readable text across member LIFF pages.
   Transaction details, amounts, field labels, errors and destructive confirmations stay visible. */

#app{max-width:760px;margin:auto;padding:18px 18px 110px;padding-top:10px;line-height:1.48;}
.card h2, .section-head h2, .shortcut-head h2{font-size:clamp(19px,4.4vw,23px);line-height:1.36;}
.manage-head h1{line-height:1.3;margin:0 0 4px;color:#234b35;letter-spacing:-.03em;font-size:clamp(22px,5vw,27px);}
.manage-card-head h2{margin:0;color:#234c36;line-height:1.4;}
.setting strong, .manage-action strong, .manage-book-details strong{font-size:clamp(17px,3.8vw,19px);line-height:1.42;}



.field,.field-caption{font-size:16px;line-height:1.5;}
.field > input:not([type="checkbox"]),.field > textarea,.field > select,.huanar-select-trigger{font-size:17px;}
.primary,.secondary,.manage-outline-btn{font-size:16px;}
.tx-info strong, .category-item strong, .utility-tx strong{font-size:17px;}
.tx-info small,.category-item small,.manage-book-details small,.date-label{font-size:14px;}

#notice{font-size:15px;}
@media (max-width:749px){
  .setting strong,.manage-action strong,.manage-book-details strong{font-size:18px}
  .setting{min-height:54px;padding:9px 0}
  .setting-icon{width:38px;height:38px;min-width:38px;font-size:22px}
  
  
  .field,.field-caption{font-size:16px}
  .field > input:not([type="checkbox"]),.field > select,.field > textarea{font-size:17px}
}


/* v0.6.56 — Home quick-access visual refresh */














/* Drag handles vertically centred, numbers removed */






/* Member plan status — actual launch is still free testing, no charge state inferred */
.member-plan-line{display:flex;align-items:center;gap:7px;margin-top:5px;min-width:0;}
.member-plan-badge{display:inline;color:#477762;font-size:13px;font-weight:600;line-height:1.5;white-space:normal;padding:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;}

/* Legacy page skeleton removed: one shared loading status is defined above. */












@media  (prefers-reduced-motion:reduce){}

/* v0.6.57: share invitation controls; keep current bottom-navigation captions unchanged */
.invite-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;}
.invite-actions button{min-width:0;white-space:normal;min-height:47px;font-weight:700;}
#invite-code{font-size:15px;overflow:hidden;text-overflow:ellipsis;}
@media (max-width:390px){.invite-actions{gap:8px}.invite-actions button{padding:10px 7px;font-size:14px}}


/* v0.6.59 — stable viewport-fixed navigation, larger 3D icons and preserved Chinese labels.
   Navigation is intentionally a direct body child, outside #app scroll/content wrappers. */

html,body{min-width:0;}
#app:has(#content[data-hn-main-tab=""]){padding-bottom:calc(var(--huanar-dock-height) + env(safe-area-inset-bottom,0px) + 26px);}




@media (max-width:390px){
 :root{--huanar-dock-height:102px}
 
}
@media (max-width:350px){
 :root{--huanar-dock-height:94px}
 
 
}
@media (min-width:750px){:root{--huanar-dock-height:104px}}
/* Hide the dock while the member is registering or the page has not authenticated. */


/* v0.6.60 — aligned date/time controls and one-tap invite-code copy */
.invite-code-control{display:flex;align-items:center;position:relative;width:100%;margin-top:7px;min-width:0;}
.invite-code-field .invite-code-control input{margin-top:0!important;padding-right:64px!important;min-width:0;flex:1;font-family:inherit;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;}
.invite-code-copy{flex:none;position:absolute;right:5px;top:50%;transform:translateY(-50%);width:42px;height:40px;min-height:40px;border:0;border-radius:11px;background:#e6f5e7;color:#208c50;display:grid;place-items:center;cursor:pointer;z-index:1;}
.invite-code-copy:focus-visible{outline:2px solid #209957;outline-offset:1px;}
/* All generated dates use the same size and typography regardless of form location. */
.field>.custom-date-trigger,.custom-date-trigger{height:50px;min-height:50px;width:100%;max-width:100%;box-sizing:border-box;margin-top:7px;border-radius:13px;font-size:16px;font-weight:600;padding:0 14px;line-height:1.35;}
.custom-date-text{display:block;text-align:left;line-height:1.3;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;}
.custom-date-icon{color:#398657;flex:none;display:inline-flex;align-items:center;justify-content:center;}
.field>input[type=time],.field>input[type=datetime-local],.field>input[type=month]{box-sizing:border-box;min-width:0;max-width:100%;min-height:50px;height:50px;border:1px solid #d9e7da;border-radius:13px;background:#fff;color:#274631;font-size:16px;font-weight:600;line-height:normal;padding:0 14px;font-variant-numeric:tabular-nums;}
.field>input[type=time]::-webkit-date-and-time-value,.field>input[type=datetime-local]::-webkit-date-and-time-value{text-align:left;}
.date-picker-dialog{width:min(370px,calc(100vw - 30px));padding:19px;border:0;border-radius:23px;background:white;color:#244536;box-shadow:0 22px 80px #0924144d;max-width:calc(100vw - 28px);box-sizing:border-box;}.date-picker-head>button{border:0;border-radius:12px;background:#edf7ea;color:#187b46;width:46px;height:46px;font-size:29px;flex:none;}
@media (max-width:480px){.field>.custom-date-trigger,.custom-date-trigger,.field>input[type=time],.field>input[type=datetime-local],.field>input[type=month]{font-size:16px;min-height:50px;height:50px}.reminder-time-field{width:min(100%,220px);max-width:100%}.date-picker-dialog{padding:16px}.date-picker-top{font-size:19px}.date-picker-month strong{font-size:20px}}

/* v0.6.61: transaction editor follows a single clear, ordered column. */
.tx-editor-form{display:flex;flex-direction:column;gap:9px;}
.tx-editor-form .tx-editor-section{padding:0 2px;}
.tx-editor-form .tx-editor-section>.field{margin:4px 0 8px;}
.tx-editor-form .tx-editor-two>.field{margin:4px 0 8px;}
.tx-editor-form .tx-editor-save{min-height:53px;border-radius:15px;font-size:16px;box-shadow:0 5px 12px rgba(25,131,70,.10);margin-top:12px;}

/* v0.6.65: preserve native wheel/touch scrolling inside the custom category picker. */
.huanar-select-popup{position:fixed;z-index:2147483646;background:#fff;border:1px solid var(--hn-dropdown-stroke);box-shadow:0 14px 30px #1f4b2c24;border-radius:var(--hn-dropdown-menu-radius);padding:6px;box-sizing:border-box;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;}

/* v0.6.67: four clear metrics, two equal columns on mobile and desktop. */






/* v0.6.68: compact overview heading; quick actions icon + title on one line */






/* v0.6.69 — income/expense analysis, accessible drill-down and consistent reminder label. */
.report-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:5px;background:#edf5eb;border-radius:14px;}
.report-tab{appearance:none;border:0;border-radius:11px;padding:12px 8px;min-height:46px;color:#3b6650;background:transparent;font-size:16px;font-weight:750;}
.report-tab.selected{color:#14653c;background:#fff;box-shadow:0 2px 8px #214d2518;}
.report-tab:focus-visible,.report-category:focus-visible{outline:3px solid #2aa25a;outline-offset:2px;}
.report-category{width:100%;min-height:62px;border:0;border-bottom:1px solid #edf1ed;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:12px 2px;}
.report-category.is-open{background:#f4faf2;}
.report-category .tx-info strong{font-size:16px;}
.report-category .tx-info small{font-size:14px;}
.report-category b{white-space:nowrap;font-size:16px;}
.report-chevron{color:#7b9b87;font-size:24px;line-height:1;transition:transform .16s;}
.report-category.is-open .report-chevron{transform:rotate(90deg);}
.report-detail{margin-top:16px;padding:14px;border:1px solid #d9e9da;border-radius:15px;background:#f8fbf7;}
.report-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.report-detail-head h3{margin:0;font-size:17px;color:#24543c;}
.report-close{border:0;background:#e6f3e4;color:#236b43;border-radius:10px;min-height:36px;padding:7px 11px;font-weight:700;}
.report-detail-total{font-size:14px;color:#56735d;margin:7px 0 3px;}
.report-tx .tx-money{font-size:15px;}
@media (max-width:390px){.report-detail{padding:11px}.report-category .tx-info strong{font-size:15px}.report-category b{font-size:15px}}

/* v0.6.73: reminder actions are readable text buttons; do not squeeze Chinese characters. */
.utility-buttons [data-reminder-edit],.utility-buttons [data-reminder-remove]{width:auto;min-width:60px;height:38px;padding:0 12px;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;font-size:14px;font-weight:650;}
.utility-buttons [data-reminder-remove]{background:#fff0ef;color:#b93f3c;}
.utility-tx .tx-info{min-width:0;overflow-wrap:anywhere;}

/* v0.6.77: accessible recurring controls, budget actions and function heading */
.function-page-title{font-weight:800;font-size:clamp(1.3rem,3vw,1.7rem);color:#164c38;margin:4px 0 12px;line-height:1.4;}
.recurring-backfill-row{display:flex;flex-direction:column;gap:9px;}
.recurring-checkbox,.recurring-delete-choice{display:flex;gap:10px;align-items:flex-start;line-height:1.5;white-space:normal;}
.recurring-checkbox input,.recurring-delete-choice input{flex:0 0 auto;width:20px;height:20px;margin-top:2px;accent-color:#229f61;}
.recurring-delete-dialog{display:grid;gap:12px;}
.recurring-delete-dialog p{margin:0;}
.recurring-delete-choice{border:1px solid #d8e5da;border-radius:12px;padding:12px;}
.recurring-delete-dialog .utility-buttons{justify-content:stretch;display:flex;gap:10px;}





/* v0.6.78 — 按鈕文字不可因固定寬度而逐字直排；確認動作使用品牌綠色。 */
.utility-buttons button:not([data-recurring-edit]):not([data-recurring-remove]) { width:auto; min-width:68px; height:auto; min-height:40px; padding:8px 14px; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; word-break:keep-all; flex-shrink:0; }

.recurring-delete-dialog .utility-buttons .recurring-stop-confirm { background:#219c56; color:#fff; font-weight:750; opacity:1; }
.recurring-delete-dialog .utility-buttons .recurring-stop-confirm:disabled { background:#a8c9b1; color:#fff; opacity:1; }
.recurring-delete-dialog .utility-buttons .recurring-stop-cancel { background:#e6f3e4; color:#196c40; }
.recurring-delete-dialog .utility-buttons button {min-height:44px;white-space:nowrap;min-width:0;width:auto;flex:1 1 0;padding:12px 8px;}
.compact-ledger-label:empty { display:none; }


/* v0.6.80 — 單一頁面標題，帳本選單在右側且手機版維持同列。 */
.function-page-head{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin:5px 0 14px;}
.function-page-head.hn-budget-toolbar{justify-content:space-between;}
.function-page-head.hn-budget-toolbar .month-control{flex:0 1 auto;width:auto;max-width:52%;margin:0;}
.function-page-head.hn-budget-toolbar .month-trigger{display:inline-flex;align-items:center;justify-content:flex-start;min-height:38px;max-width:100%;white-space:nowrap;}
.function-page-head.hn-budget-toolbar .compact-ledger-row{margin-left:auto;}
.function-page-head .function-page-title{min-width:0;flex:1 1 auto;margin:0;line-height:1.3;}
.function-page-head .compact-ledger-row{display:flex;align-items:center;justify-content:flex-end;flex:0 1 45%;width:auto;max-width:45%;min-width:0;margin:0;padding:0;}
.function-page-head .compact-ledger-row .compact-ledger-label{display:none;}
.function-page-head .scope-wrap{width:auto;max-width:100%;min-width:0;}
.function-page-head .scope-trigger{width:100%;min-width:0;max-width:100%;white-space:nowrap;display:flex;align-items:center;gap:8px;}
.function-page-head .scope-trigger > span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.function-page-head .scope-arrow{flex-shrink:0;}

@media (max-width:420px){.function-page-head{gap:8px}.function-page-head .compact-ledger-row{flex-basis:48%;max-width:48%}.function-page-head .scope-trigger{font-size:12px;padding:7px 9px}}

/* v0.6.84 — 首頁四格餘額下方的簡潔月預算進度 */


















/* v0.6.85: budget summary occupies the full row below the four balance cards. */







.budget-rollover-choice{display:flex;align-items:center;gap:12px;margin:16px 0;font-weight:700;color:#164d35;}
.budget-rollover-choice input{width:20px;height:20px;accent-color:#219d5e;flex-shrink:0;}
.budget-conflict{padding:14px;border-radius:12px;color:#9d3c30;background:#fff0ed;margin-bottom:14px;}
.budget-delete-button{margin-top:10px;}


/* v0.6.86: 月預算小標題與上方四格數據標題統一 */


/* v0.6.95: canonical form and action typography (same controls on desktop and LIFF). */
:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#244536;background:#f7faf4;--green:#219c56;--deep:#196c40;--yellow:#ffe89a;--hn-control-height:52px;--hn-focus-ring:#228e55;--hn-touch-target:44px;--control-radius:13px;--control-border:#d9e7da;--edit-border:#dce9de;--edit-green:#1e9253;font-size:17px;--huanar-dock-height:110px;--control-height:52px;--hn-field-font:16px;--hn-button-font:16px;--hn-label-color:#536d5c;--hn-dropdown-row-height:44px;--hn-dropdown-menu-radius:17px;--hn-dropdown-row-radius:11px;--hn-dropdown-stroke:#dcebdc;--hn-dropdown-picked:transparent;--hn-dropdown-ink:#244c34;--hn-ledger-dropdown-width:min(250px,82vw);--hn-ledger-trigger-width:150px;}
.field,.tx-editor-form .field{font-size:var(--hn-field-font);line-height:1.5;color:var(--hn-label-color);font-weight:650;}
.field > input:not([type="checkbox"]):not([type="hidden"]), .field > select, .field > textarea, .field > .huanar-select-shell{
 font-size:var(--hn-field-font);min-width:0;max-width:100%;width:100%;
}
.field > input:not([type="checkbox"]):not([type="hidden"]),.field > select,
.field > input[type=time],.field > input[type=datetime-local],.field > input[type=month],.field > .huanar-select-shell{
 min-height:var(--control-height);height:var(--control-height);
}
.tx-editor-form .field input:not([type="hidden"]):not([type="checkbox"]),
.tx-editor-form .field select,.huanar-select-trigger,.custom-date-trigger,
.field > .custom-date-trigger{font-size:var(--hn-field-font);min-height:var(--control-height);height:var(--control-height);}
.primary,.secondary,.tx-editor-form .tx-editor-save{font-size:var(--hn-button-font);min-height:var(--control-height);line-height:1.3;}
/* Keep action words together, but permit the action GROUP to wrap on narrow screens. */
.utility-buttons,.category-item>div:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:flex-end;min-width:0;}
.utility-buttons button,.category-item>div:last-child button{white-space:nowrap;word-break:keep-all;flex-shrink:0;}
.utility-tx,.category-item{min-width:0;gap:12px;}
.utility-tx .tx-info,.category-item>div:first-child{min-width:0;overflow-wrap:anywhere;}
@media (max-width:390px){
 .utility-tx{align-items:flex-start;flex-wrap:wrap}
 .utility-actions{margin-left:auto;min-width:0}
 .tx-editor-two,.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tx-editor-form .field input:not([type="hidden"]),
 .tx-editor-form .field select,.custom-date-trigger{font-size:16px}
 .function-page-head .function-page-title{font-size:clamp(20px,5.5vw,24px)}
}
/* A modal is independently scrollable when the virtual keyboard reduces the visual viewport. */
#edit-dialog,.date-picker-dialog{overscroll-behavior:contain;scrollbar-gutter:stable;overflow-x:hidden;overflow-y:auto;max-width:calc(100vw - 24px);}
#edit-dialog .tx-editor-form,#edit-dialog .tx-editor-section,#edit-dialog .field,#edit-dialog .grid2,#edit-dialog .tx-editor-two{min-width:0;max-width:100%;}
#edit-dialog .dialog-head{margin-bottom:17px;align-items:center;position:sticky;top:0;z-index:2;background:#fff;padding:2px 0 10px;box-shadow:0 1px 0 #edf2ec;}
#edit-dialog :is(input,select,textarea,button):focus-visible{scroll-margin-block:18px;outline-offset:2px;}
/* Keep labels and the numbers inside balance cards consistently readable. */





/* v0.7.00 — true decorative dock graphics; the button remains interactive. */


/* Group every ledger switcher using the same personal/shared headings. */
.scope-menu .scope-menu-group{display:flex;flex-direction:column;gap:0;min-width:0;}
.scope-menu .scope-menu-group+.scope-menu-group{margin-top:4px;padding-top:5px;border-top:1px solid var(--hn-dropdown-stroke);}
.scope-menu .scope-menu-heading{padding:5px 12px 3px;font-size:12px;line-height:1.3;font-weight:750;color:#66816e;white-space:nowrap;}
.scope-menu .scope-menu-group button{width:100%;min-width:0;}

/* v0.7.6: native hidden attribute must override responsive bottom-nav display. */


/* v0.7.13: equal-width multilingual navigation; never let long labels overlap. */





/* v0.7.16 — multilingual content-fit pass for member pages and dialogs.
   Card height follows text, not a fixed Chinese-only row; controls keep readable sizes. */
#content,#onboarding,#edit-dialog,#edit-dialog form,#content .card,#content .setting,#content .setting-left,#content .manage-action,#content .manage-book-details,#content .utility-tx,#content .category-item,#content .report-category,#content .report-detail,#content .hn-draggable-card,#content .hn-card-body,#content .hn-choice,#content .function-page-head,#content .section-head{min-width:0;max-width:100%;}
#content :is(.setting strong,.manage-action strong,.manage-book-details strong,.category-item strong,.hn-card-body strong,.report-detail-head h3,.report-category .tx-info strong,.tx-info strong,.function-page-title,.shortcut-head h2,.section-head h2),#edit-dialog :is(h2,h3,.field-caption,.sub),#content :is(.setting small,.manage-action small,.hn-sort-name,.hn-choice){
 overflow-wrap:anywhere;word-break:normal;white-space:normal;line-height:1.45;
}
#content .setting-left, #content .manage-action, #content .hn-card-body,
#content .report-detail-head {min-width:0;}
#content .setting .chevron, #content .setting-icon {flex-shrink:0;}
/* Preserve readable amounts; never replace currency symbols or trim the value. */
#content .tx-money, #content .report-category b {max-width:46%;white-space:normal;text-align:end;overflow-wrap:anywhere;}
#content .report-tabs {min-width:0;}
#content .report-tab {min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35;}





#content .member-plan-line {flex-wrap:wrap;}
#content .member-plan-badge {white-space:normal;overflow-wrap:anywhere;}
/* Shortcut cards: long Thai/Vietnamese/German-style labels wrap naturally.
   Keep the handle separate and reserve a dedicated column for it. */







/* The drag preview is positioned by pointer coordinates; preserve its grid inside the top layer. */



#hn-action-dock button{min-width:0;min-height:50px;height:auto;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35;padding-block:10px;}
@media (max-width:420px){
 
 
 
 
 
 
 #content .function-page-head{align-items:flex-start;}
 #content .utility-buttons{flex-wrap:wrap;}
}

@media (max-width:350px){
 html,body{max-width:100%;overflow-x:clip;}
 #app{max-width:100%;}
 
}





























/* Installment planner: clear add action and transparent scheduled amounts. */
.installment-form{display:grid;gap:4px;min-width:0;}
.installment-form .field{min-width:0;margin:8px 0;color:#44654f;font-weight:700;}
.installment-monthly-reset{display:inline-flex;align-items:center;justify-content:center;margin-top:8px;padding:5px 9px;border:1px solid #bedbc4;border-radius:8px;background:#f4faf2;color:#246645;font-size:13px;min-height:34px;}
.installment-estimate{border-radius:14px;background:#e9f7e7;border:1px solid #c4e5c9;padding:14px 16px;color:#246847;font-weight:750;line-height:1.5;margin:10px 0 3px;}
.installment-explain,.installment-page-note{line-height:1.65;margin:10px 0 16px;}
.installment-list{margin-top:15px;}
.installment-list .installment-item{display:flex;gap:12px;align-items:center;min-width:0;}
.installment-item-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere;}
.installment-remove-summary{border:1px solid #d5e9d7;background:#f3faf2;border-radius:14px;padding:14px 16px;color:#315640;line-height:1.55;overflow-wrap:anywhere;}.installment-remove-summary strong{display:block;font-size:18px;}.installment-remove-summary p{margin:7px 0 0;font-size:14px;}.installment-remove-explain{margin:15px 0 9px;line-height:1.7;}
.installment-item-body strong{font-size:17px;line-height:1.4;color:#244b35;}
.installment-item-total{font-size:17px;font-weight:750;color:#1d7c4c;}
.installment-item-meta{font-size:14px;color:#547361;}
.installment-item-body small{font-size:13px;color:#718778;}.installment-item-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex:0 0 auto;}.installment-item-actions button{min-width:60px;min-height:38px;padding:7px 9px;}.installment-delete{color:#a84339;background:#fff1ee;border:1px solid #f0c5bc;}@media (max-width:390px){.installment-list .installment-item{gap:7px;padding:10px;}.installment-item-actions button{min-width:52px;font-size:12px;padding:6px;}.installment-item-body strong,.installment-item-total{font-size:15px;}.installment-item-meta{font-size:12px;}}
.installment-empty{padding-bottom:12px;}
.installment-empty .primary{min-height:52px;}

/* v0.7.44 shared iOS-safe month picker and installment opt-in. */
.installment-form .field>input[type="month"][data-customized-month]{display:none!important;}
.installment-form .field>.custom-month-trigger{display:flex;width:100%;max-width:100%;min-width:0;min-height:52px;height:52px;align-items:center;justify-content:space-between;line-height:1.25;text-align:left;font-weight:650;font-size:16px;margin-top:7px;box-sizing:border-box;}
.installment-form #installment-monthly[readonly]{color:#315e45;background:#f2f8f0;font-weight:750;opacity:1;}
.installment-post-option{display:flex;align-items:flex-start;gap:12px;margin:14px 0 8px;padding:15px;border:1px solid #cae4cb;background:#f5faf4;border-radius:14px;cursor:pointer;}
.installment-post-option>input{width:22px;height:22px;min-width:22px;margin:3px 0 0;accent-color:#209c55;}
.installment-post-option>span{display:flex;flex-direction:column;gap:5px;min-width:0;}
.installment-post-option strong{color:#244e37;font-size:16px;line-height:1.4;}
.installment-post-option small{color:#64806b;font-size:13px;line-height:1.6;font-weight:500;}
.month-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0;}
.month-picker-cell{border:1px solid #d3e5d6;border-radius:12px;background:#f7faf5;color:#315c41;min-height:48px;padding:8px 4px;font-weight:700;font-size:16px;}
.month-picker-cell.selected{background:#219c56;color:white;border-color:#219c56;}
.month-picker-cell:focus-visible{outline:2px solid #188e4d;outline-offset:2px;}
/* Shortcut editor: single canonical style (v0.7.21). No historical overrides. */
#edit-dialog:not([open]){display:none!important;}
#edit-dialog[open]:has(.shortcut-customizer){box-sizing:border-box;display:flex;flex-direction:column;width:min(600px,calc(100vw - 22px));max-width:calc(100vw - 22px);height:min(690px,calc(100dvh - 28px));min-height:0;max-height:calc(100dvh - 28px);padding:clamp(14px,3.5vw,24px);overflow:visible;scrollbar-width:none;-ms-overflow-style:none;}#edit-dialog[open]:has(.shortcut-customizer)>.dialog-head{display:none;}#edit-dialog[open]:has(.shortcut-customizer)>.shortcut-customizer{display:block;flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 2px 4px;}
#edit-dialog[open]:has(.shortcut-customizer)::-webkit-scrollbar,
#edit-dialog .shortcut-pool::-webkit-scrollbar{display:none;width:0;height:0;}
.shortcut-customizer{width:100%;min-width:0;}
.shortcut-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin:0 0 12px;}.shortcut-editor-heading .shortcut-editor-title{flex:1 1 auto;min-width:0;margin:0;font-size:clamp(17px,4.2vw,23px);line-height:1.3;}.shortcut-editor-close{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:#edf5ec;color:#2e6245;font-size:30px;line-height:1;display:grid;place-items:center;padding:0;}
/* v0.7.51 — Close X controls never show a selection/focus outline after tapping.
   Preserve a subtle background shade for keyboard focus without a box-shaped ring. */
:is(button.close,button.date-picker-close,button.shortcut-editor-close,button.report-close){
  -webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;
  user-select:none;-webkit-user-select:none;
}
:is(button.close,button.date-picker-close,button.shortcut-editor-close,button.report-close):is(:focus,:focus-visible,:active){
  outline:none!important;outline-offset:0!important;box-shadow:none!important;
}
:is(button.close,button.date-picker-close,button.shortcut-editor-close,button.report-close):focus-visible{filter:brightness(.94);}

.shortcut-editor-title{font-size:clamp(19px,4.4vw,23px);line-height:1.36;letter-spacing:.01em;margin:16px 0 10px;color:#22533a;overflow-wrap:anywhere;}
.shortcut-drop-grid,.shortcut-pool{--hn-shortcut-tile-height:var(--hn-home-shortcut-height,67px);--hn-shortcut-tile-font:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:var(--hn-shortcut-tile-height);align-items:stretch;gap:10px;min-width:0;}
.shortcut-drop-grid{background:#f4faf2;border:1px dashed #a7d7b0;border-radius:18px;padding:10px;}
.shortcut-pool{max-height:min(270px,34dvh);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;padding:3px 1px 8px;}
.shortcut-tile{position:relative;display:flex;align-items:center;gap:7px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--hn-shortcut-tile-height);min-height:var(--hn-shortcut-tile-height);max-height:var(--hn-shortcut-tile-height);padding:9px 30px 9px 9px;border:1px solid #d5e5d5;border-radius:15px;text-align:left;background:#fff;color:#254d35;font-weight:750;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y;cursor:grab;box-shadow:0 2px 7px #225e2d0b;}
.shortcut-tile:active{cursor:grab;}
.shortcut-selected{background:linear-gradient(145deg,#e0f3df,#f0f9ed);border-color:#b7dcbf;}
.shortcut-available{background:#fff;}
.shortcut-tile-icon{display:grid;place-items:center;flex:0 0 23px;min-width:23px;width:23px;font-size:20px;line-height:1.2;color:#27884b;}
.shortcut-tile-name{display:block;flex:1 1 0;min-width:0;max-width:100%;width:auto;white-space:normal;word-break:normal;overflow-wrap:anywhere;line-break:auto;font-size:var(--hn-shortcut-tile-font);line-height:1.3;overflow:visible;}
.shortcut-handle{position:absolute;top:50%;right:6px;left:auto;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;flex:none;width:20px;height:30px;color:#699b80;font-size:18px;line-height:1;pointer-events:none;}
.shortcut-tile.drag-source{opacity:.27;}
.shortcut-tile.drop-here{outline:2px dashed #1e9952;outline-offset:-3px;background:#d2f0d9;}
.shortcut-drag-ghost{position:fixed;z-index:2147483647;width:var(--drag-tile-width);height:var(--drag-tile-height);min-height:0;max-height:none;box-sizing:border-box;pointer-events:none;transform:translateY(-3px);filter:none;opacity:1;visibility:visible;box-shadow:0 8px 22px rgba(22,91,46,.24);border:2px solid #33a864;background:#ecfaeb;margin:0;transition:none;}
.shortcut-editor-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:18px;min-width:0;}
.shortcut-editor-actions>button{min-width:0;min-height:50px;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.35;padding-block:10px;}
.shortcut-customizer .sub{line-height:1.65;}
@media (max-width:390px){.shortcut-drop-grid,.shortcut-pool{gap:8px;}.shortcut-drop-grid{padding:8px;}.shortcut-tile{gap:6px;padding:9px 26px 9px 7px;}.shortcut-handle{right:3px;}}
@media (max-width:350px){.shortcut-drop-grid,.shortcut-pool{grid-template-columns:minmax(0,1fr);}}

/* v0.7.40 — data-driven onboarding questions, consistent with built-in controls. */
.hn-onboarding-custom{margin:17px 0;min-width:0;}
.hn-custom-label{font-size:16px;font-weight:750;color:#365b45;line-height:1.45;margin-bottom:8px;}
.hn-onboarding-custom>input,.hn-onboarding-custom>select{width:100%;min-height:var(--hn-control-height);border-radius:13px;border:1px solid #d9e7da;background:#fff;color:#274631;padding:11px 14px;font-size:16px;box-sizing:border-box;}
.hn-custom-choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:7px;}
.hn-custom-choice{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:12px;border:1px solid #d3e7d7;background:#f7fbf5;color:#345e43;cursor:pointer;font-size:15px;font-weight:650;max-width:100%;overflow-wrap:anywhere;}
.hn-custom-choice input{width:19px;height:19px;flex:0 0 19px;min-height:0;accent-color:var(--green);margin:0;}
.hn-custom-choice:has(input:checked){background:#e3f5e3;border-color:#36a76a;color:#126e3c;}
#onboarding .field select[hidden]{display:none!important;}


/* v0.7.50 — Hide visual scrollbars across LIFF functional scroll areas while preserving scrolling. */
html,body,#app,dialog,.date-picker-dialog,.scope-menu,.huanar-select-popup,.shortcut-pool,#edit-dialog[open]:has(.shortcut-customizer)>.shortcut-customizer{scrollbar-width:none;-ms-overflow-style:none;}
html::-webkit-scrollbar,body::-webkit-scrollbar,#app::-webkit-scrollbar,dialog::-webkit-scrollbar,.date-picker-dialog::-webkit-scrollbar,.scope-menu::-webkit-scrollbar,.huanar-select-popup::-webkit-scrollbar,.shortcut-pool::-webkit-scrollbar,#edit-dialog[open]:has(.shortcut-customizer)>.shortcut-customizer::-webkit-scrollbar{display:none;width:0;height:0;background:transparent;}

/* v0.7.52: missing installment SQL is a non-destructive read-only state. */
.installment-setup-note{margin:0 0 16px;border:1px solid #e4d0a7;background:#fff8e7;color:#624d25;line-height:1.6;}
.installment-setup-note strong{display:block;margin-bottom:6px;}
.installment-setup-note p{margin:0;}
.installment-setup-note code{font-size:.92em;overflow-wrap:anywhere;}

/* v0.7.93: entitlement-only lock indicator; global-off items remain hidden. */
.hn-plan-lock{display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;margin-left:.4rem;flex:none;white-space:nowrap}
.setting.hn-plan-locked{background:transparent}
.hn-upgrade-panel{display:grid;gap:12px;text-align:center;padding:8px 0 2px;max-width:440px;margin:auto}
.hn-upgrade-panel h3{font-size:1.24rem;margin:0;color:#183e2b}
.hn-upgrade-panel p{margin:0;line-height:1.65;color:#466257}
.hn-upgrade-panel .hn-upgrade-symbol{font-size:2rem}
.hn-upgrade-panel .hn-upgrade-note{font-size:.9rem}
.hn-upgrade-panel .hn-upgrade-billing{font-size:.82rem;color:#617a6a}
.hn-upgrade-panel button{min-height:44px}

/* v0.7.94 subscription lifecycle (no payment checkout) */
.sub-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}
.sub-manager-grid>div{background:#f4f8f5;border-radius:12px;padding:12px;min-width:0}
.sub-manager-grid small{display:block;color:#708774;margin-bottom:6px}
.sub-manager-grid strong{display:block;color:#234b35;font-size:14px;overflow-wrap:anywhere}
.sub-manager-actions{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
.sub-manager-actions button{flex:1 1 160px;min-height:42px}
.sub-demo-warning{font-size:12px;color:#916424;line-height:1.7}
.sub-payment-scroll{width:100%;overflow-x:auto;margin-top:12px}
.sub-payment-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
.sub-payment-table th,.sub-payment-table td{text-align:left;padding:9px;border-bottom:1px solid #e9f0e9}
@media (max-width:420px){.sub-manager-grid{grid-template-columns:1fr 1fr}.sub-manager-actions button{flex-basis:100%}}

/* v0.8.31 — explicit single-choice family invitation permissions */
.invite-role-section{margin:12px 0 14px;padding:0}
.invite-role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.invite-role-option{position:relative;display:block;min-width:0;cursor:pointer}
.invite-role-option input[type=radio]{position:absolute;opacity:0;pointer-events:none}
.invite-role-pill{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:0 14px;border:1px solid #d7e7da;border-radius:14px;background:#fff;color:#355744;font-size:15px;font-weight:750;line-height:1;transition:border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease}
.invite-role-option:has(input:checked) .invite-role-pill{background:#eaf8e9;border-color:#19974f;color:#126d3c;box-shadow:inset 0 0 0 1px #19974f}
.invite-role-option:has(input:checked) .invite-role-pill::after{content:"✓";display:inline-block;margin-left:auto;color:#16884b;font-size:16px;font-weight:850}
.invite-role-option:focus-within .invite-role-pill{outline:2px solid #279e58;outline-offset:2px}
@media(max-width:340px){.invite-role-options{grid-template-columns:1fr}.invite-role-pill{min-height:46px}}

/* v0.8.33 — family-sharing A layout; icons and real member counts. */
.hn-family-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 17px;width:17px;height:17px;line-height:1;color:#239357;vertical-align:middle}
.hn-family-icon svg{display:block;width:100%;height:100%}
.hn-family-heading-icon{flex-basis:19px;width:19px;height:19px;margin-left:0}
.hn-family-member .manage-book-mark.hn-family-icon{width:28px;height:28px;flex-basis:28px;padding:5px;border-radius:9px;background:#eaf6e7}
.hn-family-member .manage-outline-btn .hn-family-icon{width:14px;height:14px;flex-basis:14px}
.hn-family-action{display:flex!important;align-items:center;justify-content:center;gap:8px}
.hn-family-action .hn-family-icon{color:inherit;width:19px;height:19px;flex-basis:19px}
.hn-family-handover-picker{display:flex;align-items:center;gap:0;min-width:0;margin:10px 0 8px;border:1px solid #cbe4c8;border-radius:22px;background:#e9f7e5;overflow:hidden}
.hn-family-handover-count{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:44px;padding:0 14px;border-right:1px solid #d5e6cf;color:#1a5432;font-size:15px;font-weight:700;line-height:1;white-space:nowrap}.hn-family-handover-count .hn-family-icon{width:18px;height:18px;flex-basis:18px;color:#2a975c}
.hn-family-handover-picker>select,.hn-family-handover-picker>.huanar-select-shell{flex:1 1 auto;min-width:0;width:100%;margin:0}
.hn-family-handover-picker>select{min-height:44px;border:0;border-radius:0;background:transparent;color:#1a5432;padding:8px 14px;font-size:15px;font-weight:700;appearance:auto}
.hn-scope-name{display:block;min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}
.scope-menu button[data-scope] .hn-scope-member-count{display:inline-flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:5px;margin:0;color:#317c53;font-size:14px;font-weight:550;line-height:1;white-space:nowrap}
.scope-menu button[data-scope] .hn-scope-member-count .hn-family-icon{width:15px;height:15px;flex-basis:15px;color:#2a975c}

/* v0.8.36 — ledger dropdown right alignment refinement */
.scope-menu button[data-scope]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;padding-right:12px}
.scope-menu button[data-scope]::before{content:none!important}
.scope-menu button[data-scope] .hn-scope-right{display:inline-flex;align-items:center;justify-content:flex-end;gap:12px;min-width:max-content;margin-left:auto;align-self:center}
.scope-menu button[data-scope] .hn-scope-check{display:inline-flex;align-items:center;justify-content:center;min-width:18px;color:#15884a;font-size:18px;font-weight:800;line-height:1;opacity:0;transform:none}
.scope-menu button[data-scope].picked .hn-scope-check{opacity:1}
.scope-menu button[data-scope] .hn-scope-member-count .hn-family-icon,.scope-menu button[data-scope] .hn-scope-check{align-self:center}

/* v0.8.57 — collapsible subscription card, billing status and eligible cancellation. */
.hn-current-plan{background:#fff;border:1px solid #dfece2;border-radius:18px;margin:5px 0 16px;color:#294735;overflow:hidden}
.hn-plan-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;cursor:pointer;list-style:none;min-height:72px;user-select:none}
.hn-plan-summary::-webkit-details-marker{display:none}
.hn-plan-summary:focus-visible{outline:2px solid #248f5c;outline-offset:-3px;border-radius:16px}
.hn-plan-header-title{display:flex;flex-direction:column;gap:9px;min-width:0;font-weight:750;color:#214d33;font-size:16px}
.hn-plan-header-right{display:flex;align-items:center;gap:11px;flex-shrink:0}
.hn-plan-state{display:inline-flex;align-items:center;background:#eaf6eb;border-radius:999px;padding:5px 10px;color:#268049;font-size:12px;font-weight:700}
.hn-current-plan-name{display:flex;align-items:center;gap:9px;color:#20764b}
.hn-current-plan-name>span{font-size:19px;line-height:1}
.hn-current-plan-name strong{font-size:17px}
.hn-plan-expanded{padding:0 16px 15px}
.hn-current-plan-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf2eb;padding:12px 0;font-size:14px}
.hn-current-plan-row>span{color:#698071}
.hn-current-plan-row strong{color:#294735;text-align:right;font-size:14px}
.hn-plan-history,.hn-plan-manage{border-top:1px solid #edf2eb;padding:14px 0 3px}
.hn-plan-history h3,.hn-plan-manage h3{margin:0;font-size:14px;font-weight:700;color:#294735}
.hn-plan-footnote{margin:9px 0 4px;color:#728677;font-size:12px;line-height:1.6}
.hn-sub-cancel{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin-top:6px;padding:10px 12px;border:1px solid #e2eae3;border-radius:12px;background:#fafcf9;color:#365741;font-size:14px;font-weight:650;text-align:left}
.hn-sub-cancel-note{margin:7px 2px 0;color:#718779;font-size:12px;line-height:1.5}
.hn-sub-info{font-size:12px;color:#789080;padding:0 4px;margin:0 0 15px}

/* v0.8.68 | Huanar checkout: branded confirmation, gateway-hosted card entry. */
#edit-dialog.hn-checkout-dialog{width:min(500px,calc(100vw - 18px));max-height:calc(100dvh - 18px);padding:19px;overflow-y:auto;border-radius:22px;background:#f7f9f7;}
.hn-checkout-dialog>.dialog-head{background:#f7f9f7!important;padding:2px 0 15px!important;border-bottom:0;box-shadow:none!important;}
.hn-checkout-dialog .dialog-head h2{font-size:21px!important;font-weight:800;color:#153d2b;}
.hn-checkout{display:grid;gap:12px;color:#254332;min-width:0;}
.hn-checkout-intro{display:flex;align-items:center;gap:12px;padding:4px 2px 10px;}
.hn-checkout-intro small{display:block;font-size:12px;color:#709481;}
.hn-checkout-intro h3{font-size:17px;margin:3px 0 0;color:#164b31;}
.hn-checkout-icon{width:46px;height:46px;border-radius:14px;background:#dff6e7;color:#159a55;display:grid;place-items:center;font-size:29px;}
.hn-checkout-section{border:1px solid #e1ebe4;border-radius:18px;padding:16px;background:white;min-width:0;}
.hn-checkout-section>h3{margin:0 0 14px;font-size:16px;color:#173d29;}
.hn-checkout-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(110deg,#edfbee,#edf6ff);border-radius:15px;padding:17px 16px;}
.hn-checkout-plan-title{display:block;font-weight:750;font-size:15px;color:#2b5540;}
.hn-checkout-amount{font-size:28px;line-height:1.4;font-weight:800;color:#173e2a;}
.hn-checkout-amount span{font-size:14px;font-weight:500;color:#698476;}
.hn-checkout-mark{color:#149957;font-weight:850;font-size:22px;}
.hn-checkout-saving{font-size:12px;color:#1b8a50;margin:11px 0 0;}
.hn-checkout-summary-row{display:flex;gap:8px;justify-content:space-between;align-items:center;border-bottom:1px solid #edf3ef;padding:13px 0;font-size:13px;}
.hn-checkout-summary-row:last-child{border-bottom:0;padding-bottom:0;}
.hn-checkout-summary-row>span{color:#6e8275;flex:0 0 auto;}
.hn-checkout-summary-row strong{text-align:right;overflow-wrap:anywhere;}
.hn-checkout-provider{display:flex;align-items:center;gap:11px;border:1px solid #d9eade;border-radius:13px;padding:12px;}
.hn-checkout-credit-icon{background:#e5f5e8;color:#159251;border-radius:10px;width:38px;height:38px;display:grid;place-items:center;font-size:25px;flex:none;}
.hn-checkout-provider>div{flex:1;min-width:0;}
.hn-checkout-provider strong,.hn-checkout-provider small{display:block;}
.hn-checkout-provider strong{font-size:14px;}
.hn-checkout-provider small{font-size:12px;line-height:1.55;color:#72877b;margin-top:3px;}
.hn-checkout-provider-note{font-size:12px;line-height:1.6;color:#71897c;margin:12px 0 0;}
.hn-checkout-accept{padding:13px 16px;}
.hn-checkout-accept label{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.75;}
.hn-checkout-accept input{margin-top:4px;flex:0 0 18px;}
.hn-checkout-accept a{color:#147c45;font-weight:650;}
.hn-checkout-submit{min-height:50px;font-size:16px;font-weight:750;border-radius:13px;}
.hn-checkout-submit:disabled{background:#b5d7c2;color:#fff;cursor:not-allowed;}
.hn-checkout-back{display:block;margin:0 auto;border:0;background:transparent;color:#6b8374;font-size:13px;padding:8px 12px;}
@media(max-width:420px){#edit-dialog.hn-checkout-dialog{padding:14px;border-radius:19px;max-height:calc(100dvh - 12px)}.hn-checkout-section{padding:13px}.hn-checkout-plan{padding:14px}.hn-checkout-amount{font-size:25px}}
