@font-face{font-family:Ink Fraunces;src:url(/assets/fraunces-latin-C2-KGTnQ.woff2)format("woff2");font-weight:100 900;font-display:swap}:root{--paper:#f5f0e6;--sheet:#fffdf8;--ink:#1f2430;--ink-soft:#3e3b35;--muted:#5e5a52;--faint:#8a857a;--rule:#ddd3c2;--rule-soft:#e9e2d4;--seal:#b3392a;--seal-dark:#8e2b1f;--seal-soft:#fbede9;--good:#3f6b4f;--good-soft:#edf2ea;--gold:#9a6a12;--radius:8px;--serif-en:"Ink Fraunces", Georgia, "Times New Roman", serif;--sans:"Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;font-family:var(--sans);color:var(--ink);background:var(--paper);-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{background:var(--paper);margin:0}.hb{max-width:560px;min-height:100vh;margin:0 auto;padding:16px 16px 96px;font-size:16px;line-height:1.6}.hb.hb-desk{max-width:960px;padding-bottom:40px}.hb h1,.hb h2,.hb h3{margin:0;font-weight:700;line-height:1.3}.hb h1{font-size:22px}.hb h2{font-size:18px}.hb h3{color:var(--ink-soft);font-size:15px}.hb p{margin:0}.hb button,.hb input,.hb select,.hb textarea{font:inherit;color:inherit}.hb button{cursor:pointer;background:0 0;border:0;padding:0}.hb button:disabled{cursor:default;opacity:.5}.hb-top{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.hb-top small{color:var(--muted);font-size:13px;display:block}.hb-card{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--radius);margin-bottom:12px;padding:16px}.hb-card>h2,.hb-card>h3{margin-bottom:8px}.hb-muted{color:var(--muted);font-size:14px}.hb-error{color:var(--seal-dark);background:var(--seal-soft);border-radius:6px;margin:8px 0;padding:8px 12px;font-size:14px}.hb-ok{color:var(--good);background:var(--good-soft);border-radius:6px;margin:8px 0;padding:8px 12px;font-size:14px}.hb .hb-btn{background:var(--ink);min-height:44px;color:var(--sheet);border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:8px 18px;font-weight:600;display:inline-flex}.hb .hb-btn.hb-light{background:var(--sheet);color:var(--ink);border:1px solid var(--ink-soft)}.hb .hb-btn.hb-seal{background:var(--seal)}.hb .hb-btn.hb-small{min-height:36px;padding:4px 12px;font-size:14px}.hb .hb-link{color:var(--seal-dark);text-underline-offset:3px;min-height:36px;font-size:14px;text-decoration:underline}.hb-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.hb-row.hb-end{justify-content:flex-end}.hb-form{gap:10px;display:grid}.hb-form label{color:var(--ink-soft);gap:4px;font-size:14px;display:grid}.hb-form input,.hb-form select,.hb-form textarea{border:1px solid var(--rule);background:#fff;border-radius:6px;width:100%;min-height:44px;padding:8px 10px}.hb-form input[type=checkbox]{width:20px;min-height:20px}.hb-form .hb-check{align-items:center;gap:8px;display:flex}.hb-form textarea{resize:vertical;min-height:72px}.hb-grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.hb-kids{gap:12px;display:grid}.hb .hb-kid{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--radius);text-align:left;justify-content:space-between;align-items:center;width:100%;padding:18px 16px;font-size:20px;font-weight:700;display:flex}.hb .hb-kid small{color:var(--muted);font-size:13px;font-weight:400;display:block}.hb-balance{text-align:center;padding:22px 16px 16px}.hb-balance strong{font-family:var(--serif-en);font-size:56px;font-weight:600;line-height:1.05;display:block}.hb-balance>span{color:var(--muted);font-size:14px}.hb-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;display:grid}.hb-stats div{background:var(--paper);border-radius:6px;padding:8px 4px}.hb-stats b{font-family:var(--serif-en);font-size:22px;font-weight:600;display:block}.hb-stats span{color:var(--muted);font-size:12px}.hb-bar{background:var(--rule-soft);border-radius:5px;height:10px;margin:6px 0 2px;overflow:hidden}.hb-bar i{background:var(--seal);border-radius:5px;height:100%;display:block}.hb-bar.hb-green i{background:var(--good)}.hb-subjects{gap:6px;display:grid}.hb-subjects div{grid-template-columns:5em 1fr auto;align-items:center;gap:8px;font-size:14px;display:grid}.hb-list{margin:0;padding:0;list-style:none}.hb-list>li{border-top:1px solid var(--rule-soft);padding:12px 0}.hb-list>li:first-child{border-top:0;padding-top:4px}.hb-line{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.hb-line>b{font-weight:600}.hb-amount{font-family:var(--serif-en);white-space:nowrap;font-size:20px;font-weight:600}.hb-amount.hb-plus{color:var(--good)}.hb-amount.hb-minus{color:var(--seal)}.hb-day{color:var(--muted);margin:16px 0 6px;font-size:13px}.hb-tag{background:var(--paper);color:var(--ink-soft);border:1px solid var(--rule);white-space:nowrap;border-radius:10px;padding:0 8px;font-size:12px;line-height:20px;display:inline-block}.hb-tag.hb-wait{color:var(--gold);border-color:var(--gold)}.hb-tag.hb-yes{color:var(--good);border-color:var(--good)}.hb-tag.hb-no{color:var(--seal);border-color:var(--seal)}.hb-struck{color:var(--faint);text-decoration:line-through}.hb-photos{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.hb-photos img,.hb-photos .hb-thumb{object-fit:cover;border:1px solid var(--rule);background:var(--paper);border-radius:6px;width:72px;height:72px}.hb-photos .hb-thumb{position:relative}.hb-photos .hb-thumb img{border:0}.hb-photos .hb-thumb button{background:var(--ink);color:#fff;border-radius:50%;width:26px;height:26px;font-size:14px;line-height:26px;position:absolute;top:-8px;right:-8px}.hb-big-photo{z-index:30;background:#141414db;place-items:center;display:grid;position:fixed;inset:0}.hb-big-photo img{max-width:96vw;max-height:92vh}.hb-tabs{z-index:10;background:var(--sheet);border-top:1px solid var(--rule);padding-bottom:env(safe-area-inset-bottom);justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.hb .hb-tabs button{max-width:112px;min-height:58px;color:var(--muted);flex:1;place-items:center;gap:0;font-size:12px;display:grid}.hb .hb-tabs button svg{margin-bottom:-6px}.hb .hb-tabs button[aria-current=page]{color:var(--seal-dark);font-weight:700}.hb-desk-tabs{border-bottom:1px solid var(--rule);gap:4px;margin:0 -16px 14px;padding:0 16px;display:flex;overflow-x:auto}.hb .hb-desk-tabs button{min-height:44px;color:var(--muted);white-space:nowrap;border-bottom:3px solid #0000;flex:none;padding:6px 12px}.hb .hb-desk-tabs button[aria-current=page]{color:var(--ink);border-bottom-color:var(--seal);font-weight:700}.hb-count{background:var(--seal);color:#fff;text-align:center;border-radius:10px;min-width:20px;margin-left:4px;padding:0 6px;font-size:12px;line-height:20px;display:inline-block}.hb-modal{z-index:20;background:#1f243073;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.hb-modal>div,.hb-modal>form{background:var(--sheet);border-radius:var(--radius);width:min(420px,100%);max-height:92vh;padding:18px;overflow:auto}.hb-key{word-break:break-all;background:var(--paper);-webkit-user-select:all;user-select:all;border-radius:6px;padding:8px;font-family:ui-monospace,Consolas,monospace;font-size:13px}.hb-table{border-collapse:collapse;width:100%;font-size:14px}.hb-table th,.hb-table td{border-top:1px solid var(--rule-soft);text-align:left;vertical-align:top;padding:8px 6px}.hb-table th{color:var(--muted);white-space:nowrap;border-top:0;font-weight:400}.hb-scroll{overflow-x:auto}.hb .pattern-widget{flex-direction:column;align-items:center;gap:6px;display:flex}.hb .pattern-pad{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--radius);touch-action:none;-webkit-user-select:none;user-select:none;grid-template-rows:repeat(3,minmax(0,1fr));grid-template-columns:repeat(3,minmax(0,1fr));width:264px;height:264px;display:grid;position:relative}.hb .pattern-pad svg{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.hb .pattern-pad polyline{fill:none;stroke:var(--seal);stroke-width:7px;stroke-linecap:round;stroke-linejoin:round;opacity:.85}.hb .pattern-pad button{justify-content:center;align-items:center;display:flex}.hb .pattern-pad button span{border:2px solid var(--ink-soft);background:var(--sheet);border-radius:50%;width:20px;height:20px;transition:transform .1s}.hb .pattern-pad button.selected span{background:var(--seal);border-color:var(--seal);transform:scale(1.25)}.hb .pattern-hint{color:var(--muted);text-align:center;font-size:13px}.hb .pattern-tools{gap:16px;display:flex}.hb .pattern-tools .text-button{min-height:40px;color:var(--seal-dark);text-underline-offset:3px;text-decoration:underline}@media (min-width:720px){.hb.hb-desk .hb-cols{grid-template-columns:1fr 1fr;align-items:start;gap:12px;display:grid}}.hb .hb-list.hb-card{padding:4px 16px}.hb .hb-btn{white-space:nowrap;flex:none}.hb-desk-tabs{scrollbar-width:none}.hb-desk-tabs::-webkit-scrollbar{display:none}.hb-clock{font-variant-numeric:tabular-nums;color:var(--ink-soft);white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.hb-clock.hb-running{color:var(--good);font-weight:700}.hb-clock.hb-over{color:var(--seal);font-weight:700}.hb-timers{border-color:var(--good);background:var(--good-soft)}.hb-timers .hb-clock{font-size:18px}.hb .hb-kid .hb-clock{font-size:14px;display:inline-flex}.hb-qty{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.hb-qty input{width:96px}
