/* Visual system copied from the user-owned Budget.app, without statement data. */

  /* macOS dark palette: system colors and label/fill/separator tiers. */
  :root {
    color-scheme: dark;
    --window:    #1C1C1E;
    --sidebar:   #232326;
    --card:      #2A2A2D;
    --card-2:    #323236;
    --fill:      rgba(120, 120, 128, 0.24);
    --fill-2:    rgba(120, 120, 128, 0.16);
    --sep:       rgba(255, 255, 255, 0.08);
    --sep-2:     rgba(255, 255, 255, 0.13);
    --label:     #F5F5F7;
    --label-2:   rgba(235, 235, 245, 0.62);
    --label-3:   rgba(235, 235, 245, 0.34);
    --blue:      #0A84FF;
    --green:     #30D158;
    --red:       #FF453A;
    --orange:    #FF9F0A;
    --yellow:    #FFD60A;
    --sb-w:      224px;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0; overflow: hidden;
    background: var(--window); color: var(--label);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
    font-size: 13px; line-height: 1.45; letter-spacing: -0.003em;
    -webkit-font-smoothing: antialiased;
    cursor: default; -webkit-user-select: none; user-select: none;
    display: grid; grid-template-columns: var(--sb-w) 1fr;
  }
  input, textarea, .selectable { -webkit-user-select: text; user-select: text; }
  button { font: inherit; color: inherit; cursor: default; }
  .num { font-variant-numeric: tabular-nums; }
  .pos { color: var(--green); } .neg { color: var(--red); } .warn { color: var(--orange); }
  .l2 { color: var(--label-2); } .l3 { color: var(--label-3); }
  :focus-visible { outline: 3px solid rgba(10,132,255,.55); outline-offset: 1px; }

  /* ---------- Sidebar ---------- */
  .sidebar {
    background: var(--sidebar); border-right: 1px solid rgba(0,0,0,.35);
    display: flex; flex-direction: column; padding: 16px 10px 12px; min-height: 0;
  }
  .app-name { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
  .app-icon { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(180deg, #5468E8, #3341B8); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
  .app-name b { font-size: 14px; font-weight: 650; display: block; }
  .app-name span { font-size: 11px; color: var(--label-3); }
  .sb-label { font-size: 11px; font-weight: 600; color: var(--label-3); padding: 10px 10px 5px; }
  .nav { display: flex; flex-direction: column; gap: 2px; }
  .nav a {
    display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px;
    color: var(--label); text-decoration: none; font-size: 13px;
  }
  .nav a:hover { background: var(--fill-2); }
  .nav a.active { background: var(--blue); color: white; }
  .nav a svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
  .nav a.active svg { color: white; }
  .nav a .sc { margin-left: auto; font-size: 11px; color: var(--label-3); }
  .nav a.active .sc { color: rgba(255,255,255,.7); }
  .sb-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
  .sb-scroll::-webkit-scrollbar { width: 0; }
  .widget { display: block; margin: 2px 4px 4px; padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.045); color: var(--label); text-decoration: none; }
  a.widget:hover { background: rgba(255,255,255,.07); }
  .widget .wk { font-size: 11px; color: var(--label-2); display: flex; justify-content: space-between; }
  .widget .wv { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; margin-top: 1px; font-variant-numeric: tabular-nums; }
  .widget .ws { font-size: 11px; color: var(--label-3); margin-top: 2px; }
  .widget .bar { margin-top: 8px; height: 5px; }
  .wrow { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; font-variant-numeric: tabular-nums; }
  .wrow span:first-child { color: var(--label-2); }
  .wrow.total { border-top: 1px solid var(--sep); margin-top: 5px; padding-top: 6px; font-weight: 600; }
  .alert { display: flex; align-items: center; gap: 7px; margin: 2px 4px 4px; padding: 7px 11px; border-radius: 9px; font-size: 12px; text-decoration: none; background: rgba(255,69,58,.12); color: #FF8A80; }
  .alert:hover { background: rgba(255,69,58,.18); }
  .alert.ok { background: rgba(48,209,88,.10); color: #7EE2A0; }
  .alert b { font-weight: 650; }
  .alert svg { width: 13px; height: 13px; flex: none; }
  .sb-foot { padding: 8px 4px 0; border-top: 1px solid var(--sep); margin-top: 8px; }
  .sync { display: flex; align-items: center; gap: 8px; padding: 8px 8px; font-size: 11.5px; color: var(--label-2); }
  .sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
  .sync.busy i { background: var(--orange); animation: pulse 1s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .3; } }
  .sync small { display: block; color: var(--label-3); font-size: 11px; }
  .sb-btns { display: flex; gap: 6px; padding: 4px 4px 0; }

  /* ---------- Controls ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 26px; padding: 0 11px; border-radius: 6px; border: 0;
    background: var(--fill); color: var(--label); font-size: 12.5px; font-weight: 500;
  }
  .btn:hover:not(:disabled) { background: rgba(120,120,128,.32); }
  .btn:active:not(:disabled) { background: rgba(120,120,128,.4); }
  .btn:disabled { opacity: .4; }
  .btn.blue { background: var(--blue); color: white; }
  .btn.blue:hover:not(:disabled) { background: #2a95ff; }
  .btn.grow { flex: 1; }
  .btn svg { width: 13px; height: 13px; }
  .seg { display: inline-flex; background: var(--fill-2); border-radius: 7px; padding: 2px; gap: 2px; }
  .seg button { border: 0; background: transparent; height: 22px; padding: 0 11px; border-radius: 5px; font-size: 12px; color: var(--label); }
  .seg button.on { background: #636366; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
  .seg button:hover:not(.on) { background: var(--fill-2); }
  .stepper { display: inline-flex; align-items: center; background: var(--fill-2); border-radius: 7px; padding: 2px; }
  .stepper button { width: 26px; height: 22px; border: 0; background: transparent; border-radius: 5px; display: grid; place-items: center; color: var(--label); }
  .stepper button:hover:not(:disabled) { background: var(--fill); }
  .stepper button:disabled { opacity: .3; }
  .stepper svg { width: 12px; height: 12px; }
  .search {
    height: 28px; width: 260px; border-radius: 7px; border: 0; outline: 0;
    background: var(--fill-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%238E8E93' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 9px center;
    padding: 0 10px 0 29px; color: var(--label); font: inherit; font-size: 13px;
  }
  .search::placeholder { color: var(--label-3); }
  .search:focus { box-shadow: 0 0 0 3px rgba(10,132,255,.5); }
  .popup {
    height: 26px; border-radius: 6px; border: 0; outline: 0; background: var(--fill); color: var(--label);
    font: inherit; font-size: 12.5px; padding: 0 26px 0 10px; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%23EBEBF5' stroke-opacity='.6' stroke-width='2.4' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5-5 5 5M7 14l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center;
  }
  .switch { position: relative; width: 32px; height: 20px; flex: none; display: inline-block; }
  .switch input { opacity: 0; width: 0; height: 0; position: absolute; }
  .switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--fill); transition: background 180ms var(--ease); }
  .switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform 180ms var(--ease); }
  .switch input:checked + i { background: var(--green); }
  .switch input:checked + i::after { transform: translateX(12px); }
  .toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--label-2); }

  /* ---------- Main + pages ---------- */
  .main { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
  .main::-webkit-scrollbar { width: 12px; }
  .main::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 10px; border: 4px solid var(--window); }
  .page { display: none; max-width: 1120px; margin: 0 auto; padding: 30px 36px 140px; }
  .page.active { display: block; animation: enter 220ms var(--ease); }
  @keyframes enter { from { transform: translateY(6px); } to { transform: none; } }
  .page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
  .page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.022em; margin: 0; line-height: 1.15; }
  .page-head .sub { color: var(--label-2); font-size: 13px; margin-top: 3px; }
  .page-head .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: rgba(255,159,10,.16); color: var(--orange); vertical-align: 5px; margin-left: 10px; }

  .grid { display: grid; gap: 16px; margin-bottom: 16px; }
  .g2 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .g-12 { grid-template-columns: 340px 1fr; }
  .grid > * { min-width: 0; }

  .card { background: var(--card); border-radius: 12px; box-shadow: 0 0 0 0.5px rgba(255,255,255,.06) inset, 0 1px 2px rgba(0,0,0,.25); }
  .card.pad { padding: 16px 18px; }
  .card-title { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
  .card-title .aside { margin-left: auto; font-weight: 400; color: var(--label-3); font-size: 12px; }
  .section-title { display: flex; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--label-2); margin: 26px 4px 8px; }
  .section-title .aside { margin-left: auto; font-weight: 400; color: var(--label-3); font-size: 12px; }

  .stat { padding: 15px 18px 16px; }
  .stat .k { font-size: 12px; color: var(--label-2); font-weight: 500; display: flex; align-items: center; gap: 6px; }
  .stat .k i { width: 8px; height: 8px; border-radius: 50%; }
  .stat .v { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; margin-top: 4px; line-height: 1.15; }
  .stat .s { font-size: 12px; color: var(--label-3); margin-top: 3px; }
  .stat.hero .v { font-size: 34px; }

  /* Inset grouped list */
  .list { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(255,255,255,.06) inset, 0 1px 2px rgba(0,0,0,.25); }
  .row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 46px; position: relative; }
  .row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; height: 1px; background: var(--sep); }
  .list.flat .row + .row::before { left: 16px; }
  .row.tap:hover { background: rgba(255,255,255,.035); }
  .row .main-col { flex: 1; min-width: 0; }
  .row .t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row .st { font-size: 11.5px; color: var(--label-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
  .row .amt { font-size: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .row .amt .st { text-align: right; }
  .row .chev { color: var(--label-3); width: 8px; flex: none; }
  .glyph { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 650; color: white; }
  .list-head { font-size: 11.5px; font-weight: 600; color: var(--label-3); padding: 14px 16px 6px; text-transform: none; letter-spacing: 0; background: var(--card); display: flex; }
  .list-head .aside { margin-left: auto; font-weight: 500; }
  .empty { padding: 28px 16px; text-align: center; color: var(--label-3); font-size: 12.5px; }

  .bar { height: 6px; border-radius: 99px; background: var(--fill-2); position: relative; margin-top: 7px; }
  .bar > b { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--green); transition: width 300ms var(--ease); }
  .bar > b.ahead { background: var(--orange); }
  .bar > b.over { background: var(--red); }
  .bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255,255,255,.75); }

  .notice { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,159,10,.10); color: #FFCC80; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 16px; }
  .notice svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--orange); }

  /* Charts */
  svg.chart { display: block; width: 100%; overflow: visible; }
  svg.chart text { fill: var(--label-3); font-size: 10.5px; font-family: inherit; }
  svg.chart .grid-l { stroke: var(--sep); }
  svg.chart .hit { fill: transparent; }
  svg.chart .hit:hover { fill: rgba(255,255,255,.04); }
  .legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--label-2); margin-top: 10px; flex-wrap: wrap; }
  .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -0.5px; }

  /* Ring */
  .ring-wrap { display: flex; align-items: center; gap: 20px; }
  .ring-wrap .big { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }

  /* Budgets editor */
  .money { display: inline-flex; align-items: center; width: 108px; height: 26px; border-radius: 6px; background: var(--fill-2); padding: 0 9px; }
  .money:focus-within { box-shadow: 0 0 0 3px rgba(10,132,255,.5); }
  .money span { color: var(--label-3); }
  .money input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--label); font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
  .money input::placeholder { color: var(--label-3); }

  /* Transactions */
  .day-head { position: sticky; top: 0; z-index: 2; display: flex; padding: 8px 16px 6px; font-size: 12px; font-weight: 600; color: var(--label-2); background: rgba(42,42,45,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sep); }
  .day-head .aside { margin-left: auto; font-weight: 500; color: var(--label-3); font-variant-numeric: tabular-nums; }
  .filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
  .totals { display: flex; gap: 18px; font-size: 12.5px; color: var(--label-2); margin: 0 4px 10px; }
  .totals b { font-weight: 600; }
  .more { display: block; width: 100%; padding: 12px; border: 0; background: transparent; color: var(--blue); font-size: 13px; border-top: 1px solid var(--sep); }

  /* ---------- Ask Haiku dock ---------- */
  .dock {
    position: fixed; bottom: 18px; z-index: 30;
    left: calc(var(--sb-w) + (100vw - var(--sb-w)) / 2); transform: translateX(-50%);
    width: min(720px, calc(100vw - var(--sb-w) - 48px));
    background: rgba(44, 44, 48, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    border-radius: 16px;
    box-shadow: 0 0 0 0.5px rgba(255,255,255,.12) inset, 0 12px 40px rgba(0,0,0,.5), 0 0 0 0.5px rgba(0,0,0,.6);
  }
  .dock-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease); }
  .dock.open .dock-panel { grid-template-rows: 1fr; }
  .dock-inner { overflow: hidden; min-height: 0; }
  .dock-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px 16px; border-bottom: 1px solid var(--sep); }
  .dock-head b { font-size: 13px; font-weight: 600; }
  .dock-head span { font-size: 11.5px; color: var(--label-3); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-log { max-height: min(54vh, 520px); overflow-y: auto; padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
  .chat-log:empty { display: none; }
  .msg { max-width: 84%; font-size: 13px; line-height: 1.55; }
  .msg.user { align-self: flex-end; background: var(--blue); color: white; padding: 7px 12px; border-radius: 16px 16px 4px 16px; }
  .msg.assistant { align-self: flex-start; background: var(--card-2); padding: 8px 12px; border-radius: 16px 16px 16px 4px; }
  .msg .who { font-size: 11px; font-weight: 600; color: var(--label-3); margin-bottom: 2px; }
  .msg .body p { margin: 0 0 7px; } .msg .body p:last-child { margin: 0; }
  .msg .body ul, .msg .body ol { margin: 3px 0 7px; padding-left: 18px; }
  .msg .body strong { font-weight: 650; }
  .msg .body code { background: var(--fill); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
  .msg.error { background: rgba(255,69,58,.14); color: #FF8A80; }
  .msg.pending { display: flex; align-items: center; gap: 12px; background: transparent; padding: 0; }
  .phase { font-size: 13px; color: var(--label-2); transition: opacity 160ms var(--ease); }
  .phase.swap { opacity: 0; }
  .suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; }
  .suggestions:empty { display: none; }
  .chip { border: 0; background: var(--fill-2); color: var(--label); border-radius: 99px; padding: 5px 11px; font-size: 12px; }
  .chip:hover { background: var(--fill); }
  .ghost { border: 0; background: transparent; color: var(--blue); font-size: 12.5px; padding: 3px 6px; border-radius: 5px; }
  .ghost:hover:not(:disabled) { background: var(--fill-2); }
  .ghost:disabled { color: var(--label-3); }
  .dock-bar { display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 12px; cursor: text; }
  .dock-icon { width: 24px; height: 34px; display: grid; place-items: center; flex: none; color: var(--blue); position: relative; }
  .dock-icon svg { width: 17px; height: 17px; }
  .dock-icon canvas { display: none; }
  .dock.busy:not(.open) .dock-icon canvas { display: block; }
  .dock.busy:not(.open) .dock-icon svg { display: none; }
  .dock.unread .dock-icon::after { content: ""; position: absolute; top: 6px; right: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px rgba(44,44,48,1); }
  .dock-bar textarea { flex: 1; resize: none; min-height: 34px; max-height: 140px; border: 0; outline: 0; background: transparent; color: var(--label); font: inherit; font-size: 13.5px; padding: 8px 2px; }
  .dock-bar textarea::placeholder { color: var(--label-3); }
  .dock.unread textarea::placeholder { color: var(--blue); }
  .kbd { font-size: 11px; color: var(--label-3); background: var(--fill-2); border-radius: 5px; padding: 2px 6px; align-self: center; flex: none; }
  .dock.open .kbd { display: none; }
  .icon-btn { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--label-2); display: grid; place-items: center; align-self: center; flex: none; }
  .icon-btn:hover { background: var(--fill-2); color: var(--label); }
  .icon-btn svg { width: 13px; height: 13px; transition: transform 300ms var(--ease); }
  .dock.open .dock-toggle svg { transform: rotate(180deg); }
  .send { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--blue); color: white; display: grid; place-items: center; flex: none; align-self: center; }
  .send:disabled { background: var(--fill); color: var(--label-3); }
  .send svg { width: 14px; height: 14px; }

  /* Overlays */
  .toast { position: fixed; bottom: 92px; left: calc(var(--sb-w) + (100vw - var(--sb-w)) / 2); transform: translate(-50%, 10px); background: rgba(58,58,60,.95); color: var(--label); padding: 8px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; z-index: 60; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; place-items: center; z-index: 50; }
  .scrim.show { display: grid; }
  .sheet { width: min(460px, 90vw); background: #2C2C2E; border-radius: 14px; box-shadow: 0 0 0 0.5px rgba(255,255,255,.12) inset, 0 20px 60px rgba(0,0,0,.6); padding: 20px; text-align: center; }
  .sheet h3 { margin: 0 0 6px; font-size: 14px; font-weight: 650; }
  .sheet p { margin: 0 0 14px; color: var(--label-2); font-size: 12.5px; }
  .sheet pre { text-align: left; max-height: 240px; overflow: auto; background: rgba(0,0,0,.3); border-radius: 8px; padding: 10px; font-size: 11px; white-space: pre-wrap; color: var(--label-2); -webkit-user-select: text; user-select: text; }
  .sheet .actions { display: flex; gap: 8px; margin-top: 14px; }
  .sheet .actions .btn { flex: 1; height: 28px; }

  /* Hover tooltips on charts and calendar */
  .tip { position: fixed; z-index: 80; pointer-events: none; min-width: 150px; max-width: 280px;
    background: rgba(50,50,54,.97); border-radius: 9px; padding: 8px 11px; font-size: 12px; line-height: 1.5;
    box-shadow: 0 0 0 0.5px rgba(255,255,255,.14) inset, 0 10px 30px rgba(0,0,0,.55);
    opacity: 0; transform: translateY(2px); transition: opacity 90ms linear, transform 90ms linear; }
  .tip.show { opacity: 1; transform: none; }
  .tip b { display: block; font-weight: 650; margin-bottom: 3px; }
  .tip .r { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
  .tip .r span:first-child { color: var(--label-2); display: inline-flex; align-items: center; gap: 6px; }
  .tip .r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
  .tip .r.total { border-top: 1px solid var(--sep-2); margin-top: 4px; padding-top: 4px; font-weight: 600; }
  svg.chart .col { fill: transparent; }
  svg.chart .col:hover { fill: rgba(255,255,255,.05); }

  /* Slider */
  input[type=range].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
  input[type=range].slider::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), var(--fill) var(--p, 50%)); }
  input[type=range].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: white; margin-top: -8px; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
  .plan-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sep); border-radius: 10px; overflow: hidden; margin-top: 14px; }
  .plan-out > div { background: var(--card-2); padding: 12px 14px; }
  .plan-out .k { font-size: 11.5px; color: var(--label-2); }
  .plan-out .v { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
  .plan-out .s { font-size: 11.5px; color: var(--label-3); margin-top: 1px; }

  /* Calendar */
  .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--sep); border-radius: 10px; overflow: hidden; }
  .cal .dow { background: var(--card); font-size: 11px; color: var(--label-3); text-align: center; padding: 6px 0; font-weight: 600; }
  .cal .day { background: var(--card); min-height: 74px; padding: 6px 7px; font-size: 11px; position: relative; }
  .cal .day.out { background: rgba(42,42,45,.55); }
  .cal .day.out .dn { color: var(--label-3); opacity: .5; }
  .cal .day.today .dn { background: var(--red); color: white; border-radius: 99px; padding: 0 6px; }
  .cal .day.has:hover { background: var(--card-2); }
  .cal .dn { font-size: 12px; font-weight: 600; display: inline-block; margin-bottom: 4px; }
  .cal .ev { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--label-2); line-height: 1.6; }
  .cal .ev i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
  .cal .ev.paid { opacity: .5; }
  .cal .ev.due { color: #FF8A80; }
  .cal .more { color: var(--label-3); }
  .badge.warn { background: rgba(255,159,10,.16); color: var(--orange); }
  .badge.muted { background: var(--fill-2); color: var(--label-2); }

  /* Settings */
  .set-row .t { font-size: 13px; }
  .set-row .ctl { display: flex; align-items: center; gap: 8px; flex: none; }
  .badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
  .badge.ok { background: rgba(48,209,88,.16); color: var(--green); }
  .badge.bad { background: rgba(255,69,58,.16); color: var(--red); }
  .field { height: 26px; width: 300px; border-radius: 6px; border: 0; outline: 0; background: var(--fill-2); color: var(--label); font: inherit; font-size: 12.5px; padding: 0 10px; }
  .field:focus { box-shadow: 0 0 0 3px rgba(10,132,255,.5); }
  .field::placeholder { color: var(--label-3); }
  .path { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--label-3); }
  .icon-sq { width: 28px; height: 28px; border-radius: 7px; flex: none; display: grid; place-items: center; color: white; }
  .icon-sq svg { width: 15px; height: 15px; }

  @media (max-width: 1080px) {
    .g4 { grid-template-columns: 1fr 1fr; }
    .g3 { grid-template-columns: 1fr 1fr; }
    .g-12, .g2 { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    :root { --sb-w: 0px; }
    body { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .page { padding: 22px 16px 130px; }
    .g3, .g4 { grid-template-columns: 1fr; }
    .search { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
