:root{
  --ink:#191A2F;
  --gold:#FFCF00;
  --deep:#CAA406;
  --paper:#F5F6F1;
  --gold-soft:#FFF3C4;
  --leaf:#7E9C4E;
  --leaf-soft:#E8EFDC;
  --sage:#DFE5D6;
  --white:#FFFFFF;
  --income:#1F7A5C;
  --expense:#B23A2E;
  --ink-70:rgba(25,26,47,.72);
  --ink-45:rgba(25,26,47,.6);
  --ink-10:rgba(25,26,47,.10);
  --ink-06:rgba(25,26,47,.06);
  --r-lg:26px; --r-md:20px; --r-sm:14px; --r-pill:100px;
  /* soft lift, illustrated style: things float on the paper rather than
     casting a hard offset. The old names stay so every page follows. */
  --pop:0 22px 44px -22px rgba(25,26,47,.32),0 2px 8px rgba(25,26,47,.05);
  --pop-sm:0 2px 10px rgba(25,26,47,.05),0 12px 26px -18px rgba(25,26,47,.22);
  --pop-ink:0 10px 22px -10px rgba(25,26,47,.55);
  --pop-lg:0 40px 70px -36px rgba(25,26,47,.4),0 2px 10px rgba(25,26,47,.05);
  --ease:cubic-bezier(.19,1,.22,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;
  /* Android Chrome paints a translucent blue box over anything tapped. Our
     controls draw their own pressed state, so the box only adds noise. */
  -webkit-tap-highlight-color:transparent;}
a,button,label,select,summary,[role="button"]{touch-action:manipulation;}
body{
  font-family:"Poppins","Helvetica Neue",Helvetica,Arial,sans-serif;
  background:var(--paper);color:var(--ink);
  -webkit-font-smoothing:antialiased;font-size:16px;line-height:1.5;
}
.wrap{max-width:1140px;margin:0 auto;padding:0 24px;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
h1,h2,h3{text-wrap:balance;}
button{font-family:inherit;}

.display{font-size:clamp(2.4rem,6vw,4.4rem);font-weight:700;letter-spacing:-0.035em;line-height:1.02;}
.h2{font-size:clamp(1.6rem,3.2vw,2.5rem);font-weight:700;letter-spacing:-0.028em;line-height:1.1;}
.h3{font-size:1.1875rem;font-weight:700;letter-spacing:-0.02em;}
.lede{font-size:clamp(1rem,1.4vw,1.15rem);line-height:1.6;color:var(--ink-70);}
.small{font-size:0.875rem;line-height:1.6;color:var(--ink-70);}
.tiny{font-size:0.75rem;line-height:1.5;color:var(--ink-45);}
.num{font-variant-numeric:tabular-nums;}
.hl{background:linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%);}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:0.9375rem;font-weight:600;white-space:nowrap;
  padding:13px 26px;border-radius:var(--r-pill);letter-spacing:-0.01em;border:0;cursor:pointer;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .15s;}
.btn:hover{transform:translateY(-1px);}
.btn:active{transform:translateY(0) scale(.97);}
/* a quick press feedback on every tappable thing, in place of the blue box */
.iconbtn:active,.themebtn:active,.ap-x:active{transform:scale(.92);}
.side a:active,.mobnav a:active,.seg button:active,.typetoggle button:active,.tabs button:active,
.bizitem:active,.lrow.pick:active,.navlinks a:active,summary:active{opacity:.7;}
.iconbtn,.themebtn,.ap-x{transition:transform .12s var(--ease),background .15s,color .15s,box-shadow .2s var(--ease);}
.btn:focus-visible{outline:3px solid var(--deep);outline-offset:2px;}
.btn-ink{background:var(--ink);color:var(--white);box-shadow:var(--pop-ink);}
.btn-ink:hover{box-shadow:0 14px 26px -10px rgba(25,26,47,.6);}
.btn-white{background:var(--white);color:var(--ink);box-shadow:var(--pop-sm);}
.btn-white:hover{box-shadow:var(--pop);}
.btn-gold{background:var(--gold);color:var(--ink);box-shadow:var(--pop-sm);}
.btn-gold:hover{box-shadow:var(--pop);}
.btn-sm{padding:9px 18px;font-size:0.8125rem;}
.btn-ghost{background:var(--white);color:var(--ink-70);box-shadow:none;border:1.5px solid var(--ink-10);}
.btn-ghost:hover{box-shadow:none;border-color:var(--ink);color:var(--ink);}
.btn[disabled]{opacity:.45;pointer-events:none;}

.logo{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:1.0625rem;letter-spacing:-0.02em;}
/* On ink the gold owl stands on its own at 11.5:1. On gold nothing does, so the
   white owl gets an ink badge: 17:1 inside it, and the badge matches the
   wordmark's contrast against the bar so the lockup reads as one piece. */
/* The yellow owl always sits on a white badge, whatever the ground. */
.logo .mark{width:40px;height:40px;flex:0 0 auto;object-fit:contain;padding:7px;background:var(--white);border-radius:13px;
  box-shadow:0 0 0 1px var(--ink-06),0 6px 14px -6px rgba(25,26,47,.28);}
.logo .by{display:block;font-size:0.6875rem;font-weight:500;color:var(--ink-70);line-height:1;margin-top:3px;}

.card{background:var(--white);border-radius:var(--r-lg);padding:22px;box-shadow:var(--pop-sm);}
.field{display:block;margin-bottom:14px;}
.field > span{display:block;font-size:0.8125rem;font-weight:500;color:var(--ink-70);margin:0 0 6px 4px;}
.input,select.input,textarea.input{
  width:100%;font-family:inherit;font-size:0.9375rem;font-weight:500;color:var(--ink);background:var(--paper);
  border:1.5px solid transparent;border-radius:var(--r-sm);padding:12px 15px;transition:border-color .15s,background .15s,box-shadow .15s;}
.input:hover{background:#EFF1EA;}
.input:focus{outline:none;border-color:var(--gold);background:var(--white);box-shadow:0 0 0 4px rgba(255,207,0,.22);}
.input[type=file]{padding:9px 12px;}
textarea.input{resize:vertical;min-height:72px;}
.row{display:flex;gap:12px;}
.row > *{flex:1;}

.pill{display:inline-flex;align-items:center;gap:6px;font-size:0.6875rem;font-weight:600;padding:4px 11px;border-radius:var(--r-pill);
  background:var(--ink-06);color:var(--ink-70);white-space:nowrap;}
.pill-in{background:rgba(31,122,92,.12);color:var(--income);}
.pill-out{background:rgba(178,58,46,.12);color:var(--expense);}
.pill-gold{background:var(--gold-soft);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--gold);}
.pill-late{background:rgba(178,58,46,.14);color:var(--expense);}
.pill-soon{background:var(--gold-soft);color:#6f5a03;}

/* 140% of its own height did not clear the 28px bottom offset, so a sliver of the
   pill sat on the bottom edge for good once a toast had fired. Travel its full
   height plus that offset, and hide it outright so nothing can peek or be clicked. */
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(calc(100% + 48px));z-index:200;
  background:var(--ink);color:var(--white);font-weight:600;font-size:0.875rem;padding:13px 22px;border-radius:var(--r-pill);
  box-shadow:var(--pop-ink);max-width:90vw;text-align:center;
  visibility:hidden;pointer-events:none;
  transition:transform .35s var(--ease), visibility 0s linear .35s;}
.toast.show{transform:translateX(-50%) translateY(0);visibility:visible;
  transition:transform .35s var(--ease), visibility 0s;}
.toast.err{background:var(--expense);color:#fff;}

.modal-bg{position:fixed;inset:0;background:rgba(25,26,47,.5);backdrop-filter:blur(3px);z-index:150;display:none;
  align-items:center;justify-content:center;padding:20px;overflow-y:auto;}
.modal-bg.show{display:flex;}
.modal{background:var(--white);border-radius:28px;padding:28px;width:100%;max-width:470px;box-shadow:var(--pop-lg);margin:auto;}
.modal h3{font-size:1.25rem;font-weight:700;letter-spacing:-0.02em;margin-bottom:18px;}

.chk{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;background:var(--paper);border-radius:var(--r-sm);margin-bottom:14px;cursor:pointer;}
.chk input{margin-top:3px;width:17px;height:17px;flex:0 0 auto;accent-color:var(--deep);}
.chk b{display:block;font-size:0.875rem;font-weight:600;}
.chk span span{font-size:0.75rem;color:var(--ink-45);}

/* Sent -> Received -> Processing -> Filed
   One bar with stops along it, not a row of badges sitting on a wire. The
   rail and the dots share their two colours exactly, and the rail is heavy
   enough to belong to the dots, so each stop reads as the bar thickening
   rather than something pinned on top of it. */
.track{--dot:24px;--rail:6px;--gap:7px;--swell:6px;
  /* Opaque on purpose. ink-10 is translucent, so where the rail passes behind
     a not-yet-reached dot the two 10% layers stacked to about 19% and left a
     darker nub against the dot's edge. */
  --step-off:#E8E8EA;
  display:flex;align-items:flex-start;margin:2px 0;}
.track.sm{--dot:19px;--rail:5px;--gap:5px;--swell:5px;}
.track .st{flex:1;text-align:center;position:relative;min-width:0;}
/* Each connector runs from the previous dot's centre to this one's, so it
   overlaps both. In document order a step's connector paints after the
   previous step's dot, which sliced a band through that dot's check, so the
   rail is held behind every dot. */
.track .st::before{content:"";position:absolute;left:-50%;width:100%;
  top:calc((var(--dot) - var(--rail)) / 2);height:var(--rail);
  background:var(--step-off);z-index:0;}
.track .st:first-child::before{display:none;}
.track .st.done::before{background:var(--gold);}
.track .st i{position:relative;z-index:1;display:grid;place-items:center;
  width:var(--dot);height:var(--dot);border-radius:50%;
  margin:0 auto var(--gap);background:var(--step-off);color:transparent;font-style:normal;
  transition:background .3s var(--ease),color .3s var(--ease),
             width .3s var(--ease),height .3s var(--ease);}
/* The stop you are on: the bar swells. The negative top margin keeps its
   centre on the rail and keeps every label on one line. */
.track .st.at i{width:calc(var(--dot) + var(--swell));height:calc(var(--dot) + var(--swell));
  margin-top:calc(var(--swell) / -2);margin-bottom:calc(var(--gap) - var(--swell) / 2);}
.track .st i svg{display:block;width:13px;height:13px;fill:none;stroke:currentColor;
  stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.track .st.done i{background:var(--gold);color:var(--ink);}
.track .st span{display:block;font-size:0.625rem;font-weight:700;color:var(--ink-45);overflow-wrap:anywhere;}
.track .st.done span{color:var(--ink);}
.track.sm .st i svg{width:10px;height:10px;}
.pill-stage{background:rgba(255,207,0,.26);color:var(--deep);}
.pill-filed{background:rgba(31,122,92,.14);color:var(--income);}
.stagesel{border:1.5px solid var(--ink-10);border-radius:var(--r-pill);padding:5px 8px;font-family:inherit;
  font-size:0.6875rem;font-weight:700;color:var(--ink);background:var(--white);cursor:pointer;flex:0 0 auto;}
.stagesel:focus{outline:none;border-color:var(--gold);}

.empty{text-align:center;padding:42px 20px;color:var(--ink-45);}
.empty strong{display:block;color:var(--ink);font-size:1rem;margin-bottom:6px;}
/* An empty panel is an invitation, so the owl turns up to make it one rather
   than leaving a blank box with a sentence in it. Drawn from CSS so every
   existing empty state gets it without touching twenty call sites: looking
   for something by default, settled when the message is "all clear". */
.empty::before{content:"";display:block;width:88px;height:88px;margin:0 auto 12px;
  background:url(owl-unclear.webp) center bottom/contain no-repeat;}
.empty.clear::before{background-image:url(owl-steady.webp);}
.empty.bare::before{display:none;}
.empty.tightpad{padding:22px 18px;}

@media (max-width:720px){
  .wrap{padding:0 16px;}
  .row{flex-direction:column;}
}

/* ================= surfaces shared by the app and the console =================
   These lived twice, once in app.html and once in a-and-a.html, and had already
   drifted apart: padding, type sizes and even a child-versus-descendant
   selector. One definition here, with each surface keeping only the overrides
   it actually means. */

.panel{background:var(--white);border-radius:var(--r-lg);padding:22px;box-shadow:var(--pop-sm);min-width:0;}
.panel .ph{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap;}
.panel h3{font-size:1.0625rem;font-weight:700;letter-spacing:-0.02em;}

/* Each total carries a small illustrated tile, drawn from CSS so the markup
   and the script that fills the figures stay as they are. */
.stat{position:relative;background:var(--white);border-radius:var(--r-lg);padding:18px 18px 18px 78px;box-shadow:var(--pop-sm);min-height:92px;}
.stat::before{content:"";position:absolute;left:18px;top:50%;transform:translateY(-50%);width:46px;height:46px;
  background:url(tile-in.svg?v=5) center/contain no-repeat;}
.stat.out::before{background-image:url(tile-out.svg?v=5);}
.stat.wh::before{background-image:url(tile-wh.svg?v=4);}
.stat.net::before{background-image:url(tile-net.svg?v=4);}
.stat span{display:block;font-size:0.8125rem;font-weight:500;color:var(--ink-70);margin-bottom:1px;}
.stat b{font-size:1.375rem;letter-spacing:-0.025em;display:block;transition:color .25s;line-height:1.3;}
.stat small{font-size:0.75rem;color:var(--ink-45);font-weight:500;}
.stat.net{background:var(--ink);color:var(--white);}
.stat.net span,.stat.net small{color:rgba(255,255,255,.7);}
.stat.in b{color:var(--income);} .stat.out b{color:var(--expense);} .stat.wh b{color:var(--ink);}
.stat.net b{color:var(--white);} .stat.net.down b{color:#FF9C8C;}

.lrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--ink-06);}
.lrow:last-child{border-bottom:0;}
.lrow .dot{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:1rem;font-weight:700;flex:0 0 auto;}
.lrow .dot.in{background:var(--leaf-soft);color:var(--income);}
.lrow .dot.out{background:#FBE2DA;color:var(--expense);}
/* Money rows say in or out with the signed, coloured amount; an arrow beside
   it said the same thing twice. Other row icons (reminders, files) stay. */
.lrow .dot.in,.lrow .dot.out{display:none;}
.lrow .meta{flex:1;min-width:0;}
.lrow .meta b{display:block;font-size:0.9375rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lrow .meta span{font-size:0.75rem;color:var(--ink-70);font-weight:400;display:block;overflow-wrap:anywhere;}
.lrow .amt{font-size:0.9375rem;font-weight:700;letter-spacing:-0.01em;white-space:nowrap;}
.lrow .amt.in{color:var(--income);} .lrow .amt.out{color:var(--expense);}
.lrow .act{display:flex;gap:6px;flex:0 0 auto;}

.iconbtn{border:0;background:var(--paper);width:32px;height:32px;border-radius:50%;cursor:pointer;
  font-size:0.8125rem;color:var(--ink-45);display:grid;place-items:center;transition:all .15s;}
.iconbtn:hover{background:var(--ink);color:var(--white);}
.ico{display:inline-block;width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;}
.wx-delta .ico{width:13px;height:13px;margin-right:4px;vertical-align:-2px;}

.drop{border:2px dashed var(--ink-10);border-radius:var(--r-md);background:var(--paper);padding:22px;text-align:center;cursor:pointer;transition:all .15s;margin-bottom:14px;}
.drop:hover{border-color:var(--gold);background:rgba(255,207,0,.06);}
.drop b{display:block;font-size:0.875rem;font-weight:700;margin-bottom:3px;}
.drop span{font-size:0.75rem;color:var(--ink-45);}

/* ================= illustrated style ================= */
.tiny{color:var(--ink-70);}
.small{color:var(--ink-70);}
.hl{background:linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 90%, transparent 90%);}
/* a link that reads as one: ink text over a gold underline */
.seeall,a.tiny[data-goto]{font-size:0.75rem;font-weight:600;color:var(--ink);cursor:pointer;
  text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:4px;}
/* the town at golden hour, as a band or a backdrop */
/* The city, under the sky of the week: sunny and rising when it is strong,
   calm when steady, amber when tight, rain when strained, fog when there
   is too little logged to say. Strong is the default. */
.scene{position:relative;background:url(scene-city-strong.svg?v=4) center bottom/cover no-repeat,#FFDF8E;}
.scene[data-c="steady"]{background-image:url(scene-city-steady.svg?v=4);background-color:#CFE5DC;}
.scene[data-c="tight"]{background-image:url(scene-city-tight.svg?v=4);background-color:#F5C98F;}
.scene[data-c="strained"]{background-image:url(scene-city-strained.svg?v=4);background-color:#9AA6B8;}
.scene[data-c="unclear"]{background-image:url(scene-city-unclear.svg?v=4);background-color:#DADFE5;}
/* one scene per feature, for section heads and cards */
.band{background-position:center bottom;background-size:cover;background-repeat:no-repeat;}
.band-cashflow{background-image:url(band-cashflow.svg?v=5);background-color:#FFE29B;}
.band-dues{background-image:url(band-dues.svg?v=4);background-color:#CFE5DC;}
.band-branches{background-image:url(band-branches.svg?v=4);background-color:#D5E3F1;}
.band-reminders{background-image:url(band-reminders.svg?v=4);background-color:#FAD8BE;}
.band-files{background-image:url(band-files.svg?v=4);background-color:#DCE6CF;}
.band-growth{background-image:url(band-growth.svg?v=4);background-color:#FFE29B;}
.ground{background:url(scene-ground.svg?v=4) center bottom/cover no-repeat;}
.owl-stand{position:absolute;pointer-events:none;filter:drop-shadow(0 8px 8px rgba(70,46,14,.2));}
@media (prefers-reduced-motion:no-preference){
  .owl-stand.hop{animation:owlHop 4.8s cubic-bezier(.19,1,.22,1) 1.4s infinite;transform-origin:50% 100%;}
}
@keyframes owlHop{0%,22%,100%{transform:translateY(0) rotate(0)}7%{transform:translateY(-9px) rotate(-3deg)}14%{transform:translateY(0) rotate(1.5deg)}}
/* sign-in, confirm and reset pages: a card on the sky, the town below */
body.auth-bg{position:relative;background:url(scene-city-strong.svg?v=4) center bottom/max(100%,1500px) auto no-repeat,#FFDF8E;}
body.auth-bg .logo{color:var(--ink);}
/* the owl stands left of the card on the hills, clear of even the widest card */
.auth-owl{position:absolute;left:max(16px,calc(50% - 580px));bottom:clamp(60px,6.4vw,92px);height:clamp(110px,10vw,150px);}
@media (max-width:1180px){ body:has(#pane-signup.on) .auth-owl{display:none;} }
@media (max-width:900px){
  body.auth-bg{background-size:auto 300px,auto;}
  .auth-owl{left:18px;bottom:52px;height:92px;}
}

/* ================= appearance =================
   Three themes named for when owls hunt. The panel lives inline in the app's
   Settings and in a dialog everywhere else (opened by .themebtn). */
.themebtn{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;flex:0 0 auto;
  background:var(--white);color:var(--ink);box-shadow:var(--pop-sm);transition:transform .2s var(--ease),box-shadow .2s var(--ease);}
.themebtn:hover{transform:translateY(-1px);box-shadow:var(--pop);}
.themebtn:focus-visible{outline:3px solid var(--deep);outline-offset:2px;}
.themebtn svg{width:22px;height:22px;}
.appear{display:block;}
.ap-sys{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;background:var(--paper);border-radius:var(--r-sm);margin-bottom:14px;cursor:pointer;}
.ap-sys input{margin-top:3px;width:17px;height:17px;flex:0 0 auto;accent-color:var(--deep);}
.ap-sys b{display:block;font-size:0.875rem;font-weight:600;}
.ap-sys span span{display:block;font-size:0.75rem;color:var(--ink-70);}
.ap-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px;}
.ap-opt{transition:border-color .3s var(--ease),transform .25s var(--ease),background-color .45s;display:flex;flex-direction:column;gap:8px;text-align:left;padding:8px 8px 10px;border-radius:18px;cursor:pointer;
  font-family:inherit;color:var(--ink);background:var(--paper);border:2px solid transparent;transition:border-color .15s,transform .2s var(--ease);min-height:44px;}
.ap-opt:hover{transform:translateY(-2px);}
.ap-opt:active{transform:scale(.97);}
.ap-opt.on .sw{box-shadow:0 0 0 1px rgba(0,0,0,.08),0 10px 20px -12px rgba(0,0,0,.5);}
.ap-opt:focus-visible{outline:3px solid var(--deep);outline-offset:2px;}
.ap-opt.on{border-color:var(--accent,var(--gold));}
.ap-name b{display:block;font-size:0.8125rem;font-weight:700;letter-spacing:-0.01em;}
.ap-name small{display:block;font-size:0.6875rem;color:var(--ink-70);font-weight:500;}
.sw{position:relative;display:block;height:78px;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.08);}
.sw-sky{position:absolute;left:0;right:0;top:0;height:34px;}
.sw-card{position:absolute;left:8px;right:30px;bottom:8px;top:24px;border-radius:7px;padding:7px 7px 0;display:flex;flex-direction:column;gap:4px;
  box-shadow:0 0 0 1px rgba(0,0,0,.07),0 6px 12px -6px rgba(0,0,0,.35);}
.sw-card i{display:block;height:5px;border-radius:3px;}
.sw-eye{position:absolute;right:4px;bottom:6px;line-height:0;}
.ap-fact{background:var(--paper);border-radius:var(--r-md);padding:16px 18px;}
.ap-head{display:flex;align-items:center;gap:14px;margin-bottom:12px;}
.ap-face{line-height:0;flex:0 0 auto;}
.ap-pct{display:block;font-size:1.5rem;font-weight:700;letter-spacing:-0.03em;line-height:1.1;}
.ap-line{display:block;font-size:0.8125rem;color:var(--ink-70);font-weight:500;}
.ap-dist{display:flex;gap:3px;height:12px;margin-bottom:8px;}
.ap-seg{border-radius:6px;background:var(--ink-10);min-width:6px;transition:background .25s;}
.ap-seg.on{background:var(--accent,var(--gold));}
.ap-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:0.6875rem;color:var(--ink-70);font-weight:500;margin-bottom:12px;}
.ap-legend span{display:inline-flex;align-items:center;gap:5px;}
.ap-legend span.on{color:var(--ink);font-weight:700;}
.ap-legend i{width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.15);}
.ap-legend i.unk{background:var(--ink-10);}
.ap-tip{font-size:0.875rem;line-height:1.6;margin-bottom:12px;}
.ap-owls-h{font-size:0.75rem;font-weight:600;color:var(--ink-70);margin-bottom:6px;}
.ap-owls{display:flex;flex-wrap:wrap;gap:6px;}
.ap-owl{display:inline-flex;align-items:center;gap:6px;font-size:0.75rem;font-weight:600;padding:5px 11px 5px 6px;border-radius:var(--r-pill);background:var(--white);box-shadow:var(--pop-sm);}
.ap-owl i{width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 3.5px #EBCB9C;}
.ap-note{font-size:0.6875rem;color:var(--ink-45);margin-top:10px;line-height:1.5;}
.ap-dialog{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:16px;
  background:rgba(12,12,20,.55);backdrop-filter:blur(3px);overflow-y:auto;}
.ap-dialog.show{display:flex;}
.ap-dialog{opacity:0;transition:opacity .22s ease;}
.ap-dialog.in{opacity:1;}
.ap-box{transform:translateY(14px) scale(.97);transition:transform .38s var(--ease);}
.ap-dialog.in .ap-box{transform:none;}
.ap-seg{transition:background-color .45s var(--ease),transform .45s var(--ease);}
.ap-seg.on{transform:scaleY(1.25);}
.ap-legend span{transition:color .3s;}
.ap-fact.swap .ap-face{animation:apFace .55s var(--ease);}
.ap-fact.swap .ap-line,.ap-fact.swap .ap-tip,.ap-fact.swap .ap-owls{animation:apIn .5s var(--ease) both;}
.ap-fact.swap .ap-tip{animation-delay:.05s;} .ap-fact.swap .ap-owls{animation-delay:.1s;}
@keyframes apFace{0%{transform:scale(.6) rotate(-12deg);opacity:0}60%{transform:scale(1.08) rotate(3deg);opacity:1}100%{transform:none}}
@keyframes apIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* the theme change itself */
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal;}
::view-transition-new(root){z-index:2;}
.theme-fade,.theme-fade *,.theme-fade *::before,.theme-fade *::after{
  transition:background-color .45s ease,color .45s ease,border-color .45s ease,box-shadow .45s ease,fill .45s ease !important;}
.ap-box{width:100%;max-width:520px;margin:auto;background:var(--white);color:var(--ink);border-radius:28px;padding:22px 22px 18px;box-shadow:var(--pop-lg);}
.ap-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.ap-top h3{font-size:1.25rem;font-weight:700;letter-spacing:-0.02em;}
.ap-x{width:44px;height:44px;border-radius:50%;border:0;background:var(--paper);color:var(--ink);font-size:1.5rem;cursor:pointer;line-height:1;}
.ap-x:focus-visible{outline:3px solid var(--deep);outline-offset:2px;}
@media (max-width:460px){ .ap-opts{gap:6px;} .sw{height:64px;} .ap-box{padding:18px 16px 14px;} }
@media (prefers-reduced-motion:reduce){ .ap-opt,.themebtn,.ap-dialog,.ap-box,.ap-seg{transition:none;} .ap-fact.swap *{animation:none !important;} }

/* ================= dark theme =================
   Quieter than the light one on purpose: near-black graphite instead of navy,
   surfaces separated by hairlines rather than soft shadows, gold kept for the
   few things that matter (the mark, the active state, the next deadline), and
   the illustrations dimmed so they set a mood instead of lighting the room.
   Every surface already reads its colours from these tokens, so swapping them
   re-dresses the app and the console together. Where a light-theme rule used
   ink as a fill (primary buttons, toasts), it inverts to a light fill with
   dark text, which is the calm, mature look we want for the primary action. */
:root[data-tone="dark"]{
  color-scheme:dark;
  --gold:#FFCF00;
  --pop:0 0 0 1px var(--line),0 22px 44px -26px rgba(0,0,0,.7);
  --pop-sm:0 0 0 1px var(--line);
  --pop-ink:none;
  --pop-lg:0 0 0 1px var(--line),0 40px 80px -30px rgba(0,0,0,.75);
  background:var(--paper);
}
/* Nocturnal: a moonlit night. Midnight blue, moonlight text, and the gold of
   an owl's eyes as the only warm thing in the room. */
:root[data-theme="nocturnal"]{
  --ink:#E4E8F2; --paper:#0B1020; --white:#131A2D;
  --deep:#E8C547; --gold-soft:rgba(255,207,0,.10); --accent:#FFCF00; --accent-line:rgba(255,207,0,.5);
  --leaf:#7FA896; --leaf-soft:rgba(127,168,150,.14); --sage:#1B2338;
  --income:#62C9A0; --expense:#F08A7A;
  --ink-70:rgba(228,232,242,.68); --ink-45:rgba(228,232,242,.5);
  --ink-10:rgba(200,215,255,.11); --ink-06:rgba(200,215,255,.07); --line:rgba(200,215,255,.08);
  --hover:#0F1527; --step:#232C44; --bar-a:#2C3A55; --bar-n:#6A3A40;
  --glass-bar:rgba(11,16,32,.84); --foot:#070B16; --glass:rgba(13,19,36,.72); --glass-solid:rgba(11,16,32,.9); --on-light:#0F1424;
  --dim:linear-gradient(rgba(8,14,36,.5),rgba(8,14,36,.5));
  --sky:linear-gradient(180deg,rgba(14,21,44,.96) 0%,rgba(14,21,44,.7) 40%,rgba(14,21,44,0) 78%); --skyc:#0E152C;
  --sky-full:linear-gradient(180deg,#0E152C 0%,#0E152C 64%,rgba(14,21,44,.55) 76%,rgba(14,21,44,0) 92%);
}
/* Crepuscular: the hour between. A dusk plum that sits between day and
   night, warm cream text, and the orange of a twilight hunter's eyes. */
:root[data-theme="crepuscular"]{
  --ink:#FBEFE7; --paper:#2B2233; --white:#382C42;
  --deep:#F4B740; --gold-soft:rgba(255,178,90,.16); --accent:#F59E52; --accent-line:rgba(245,158,82,.6);
  --leaf:#9DB37A; --leaf-soft:rgba(157,179,122,.18); --sage:#41344B;
  --income:#86DDB1; --expense:#FF9E8A;
  --ink-70:rgba(251,239,231,.72); --ink-45:rgba(251,239,231,.55);
  --ink-10:rgba(255,226,210,.14); --ink-06:rgba(255,226,210,.08); --line:rgba(255,226,210,.1);
  --hover:#30263A; --step:#4A3D55; --bar-a:#5A4A66; --bar-n:#8A4A4A;
  --glass-bar:rgba(43,34,51,.86); --foot:#211A28; --glass:rgba(48,36,58,.68); --glass-solid:rgba(43,34,51,.9); --on-light:#2B2233;
  --dim:linear-gradient(180deg,rgba(70,38,92,.36),rgba(255,138,90,.12));
  --sky:linear-gradient(180deg,rgba(62,38,84,.95) 0%,rgba(140,72,108,.55) 42%,rgba(233,138,92,0) 78%); --skyc:#3E2654;
  --sky-full:linear-gradient(180deg,#3E2654 0%,#7A4468 64%,rgba(150,76,104,.5) 76%,rgba(233,138,92,0) 93%);
}
[data-tone="dark"] body{background:var(--paper);color:var(--ink);}
/* anything that sits on gold keeps dark text, whatever ink means now */
[data-tone="dark"] .btn-gold,
[data-tone="dark"] .track .st.done i,
[data-tone="dark"] .fab{color:#191A2F;}
[data-tone="dark"] .btn-ink:hover{box-shadow:none;background:#fff;}
[data-tone="dark"] .btn-white{background:var(--white);box-shadow:0 0 0 1px var(--ink-10);}
[data-tone="dark"] .btn-ghost{background:transparent;}
[data-tone="dark"] .hl{background:linear-gradient(transparent 62%,rgba(255,207,0,.4) 62%,rgba(255,207,0,.4) 90%,transparent 90%);}
[data-tone="dark"] .input:hover{background:var(--hover);}
[data-tone="dark"] .input:focus{background:var(--paper);box-shadow:0 0 0 4px rgba(255,207,0,.14);}
[data-tone="dark"] .pill-soon{color:var(--gold);}
[data-tone="dark"] .pill-in{background:rgba(94,194,154,.13);}
[data-tone="dark"] .pill-out,[data-tone="dark"] .pill-late,[data-tone="dark"] .due-when.late{background:rgba(239,128,112,.13);}
[data-tone="dark"] .pill-stage{background:rgba(255,207,0,.14);color:var(--gold);}
[data-tone="dark"] .pill-filed{background:rgba(94,194,154,.13);}
[data-tone="dark"] .modal-bg{background:rgba(5,6,8,.66);}
[data-tone="dark"] .track{--step-off:var(--step);}
[data-tone="dark"] .toast.err{background:#8E2E24;color:#fff;}
[data-tone="dark"] .logo .mark{box-shadow:none;}
[data-tone="dark"] .empty::before{opacity:.82;}
[data-tone="dark"] .owl-stand{filter:drop-shadow(0 8px 8px rgba(0,0,0,.4));}
/* the net figure: a quiet card with a gold hairline instead of a solid block */
[data-tone="dark"] .stat.net{background:var(--white);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--accent-line);}
[data-tone="dark"] .stat.net span,[data-tone="dark"] .stat.net small{color:var(--ink-70);}
[data-tone="dark"] .stat.net b{color:var(--ink);}
[data-tone="dark"] .stat.net.down b{color:var(--expense);}
[data-tone="dark"] .stat::before,[data-tone="dark"] .lrow .dot{opacity:.9;}
[data-tone="dark"] .drop:hover{background:rgba(255,207,0,.05);}
/* the illustrated scenes, at dusk */
/* the yellow owl always stands on a white badge, in either theme */
[data-tone="dark"] .logo .mark,[data-tone="dark"] .badge-white{background:#fff;}

/* sign-in, confirm and reset pages at dusk or night */
[data-tone="dark"] .auth-bg .back,[data-tone="dark"] .back{background:var(--glass-solid);color:var(--ink);}
[data-tone="dark"] body.auth-bg .logo{color:#fff;}
/* the night sky behind the scenes: tinted per theme */
/* the illustrations, redrawn for dusk and for night */
[data-theme="nocturnal"] .scene{background-image:url(scene-city-strong-night.svg?v=1);background-color:#0B1433;}
[data-theme="nocturnal"] .scene[data-c="steady"]{background-image:url(scene-city-steady-night.svg?v=1);background-color:#0A1C2A;}
[data-theme="nocturnal"] .scene[data-c="tight"]{background-image:url(scene-city-tight-night.svg?v=1);background-color:#1A1532;}
[data-theme="nocturnal"] .scene[data-c="strained"]{background-image:url(scene-city-strained-night.svg?v=1);background-color:#0F1320;}
[data-theme="nocturnal"] .scene[data-c="unclear"]{background-image:url(scene-city-unclear-night.svg?v=1);background-color:#141925;}
[data-theme="nocturnal"] .band-cashflow{background-image:url(band-cashflow-night.svg?v=2);background-color:#14163A;}
[data-theme="nocturnal"] .band-dues{background-image:url(band-dues-night.svg?v=1);background-color:#0A1C2A;}
[data-theme="nocturnal"] .band-branches{background-image:url(band-branches-night.svg?v=1);background-color:#0B1433;}
[data-theme="nocturnal"] .band-reminders{background-image:url(band-reminders-night.svg?v=1);background-color:#1C1432;}
[data-theme="nocturnal"] .band-files{background-image:url(band-files-night.svg?v=1);background-color:#0E1F24;}
[data-theme="nocturnal"] .band-growth{background-image:url(band-growth-night.svg?v=1);background-color:#14163A;}
[data-theme="nocturnal"] body.auth-bg{background:url(scene-city-strong-night.svg?v=1) center bottom/max(100%,1500px) auto no-repeat,#0B1433;}
[data-theme="crepuscular"] .scene{background-image:url(scene-city-strong-dusk.svg?v=1);background-color:#3B2766;}
[data-theme="crepuscular"] .scene[data-c="steady"]{background-image:url(scene-city-steady-dusk.svg?v=1);background-color:#2D3A6C;}
[data-theme="crepuscular"] .scene[data-c="tight"]{background-image:url(scene-city-tight-dusk.svg?v=1);background-color:#46285A;}
[data-theme="crepuscular"] .scene[data-c="strained"]{background-image:url(scene-city-strained-dusk.svg?v=1);background-color:#2B2742;}
[data-theme="crepuscular"] .scene[data-c="unclear"]{background-image:url(scene-city-unclear-dusk.svg?v=1);background-color:#3A3350;}
[data-theme="crepuscular"] .band-cashflow{background-image:url(band-cashflow-dusk.svg?v=2);background-color:#3B2766;}
[data-theme="crepuscular"] .band-dues{background-image:url(band-dues-dusk.svg?v=1);background-color:#2D3A6C;}
[data-theme="crepuscular"] .band-branches{background-image:url(band-branches-dusk.svg?v=1);background-color:#2A3570;}
[data-theme="crepuscular"] .band-reminders{background-image:url(band-reminders-dusk.svg?v=1);background-color:#4A2858;}
[data-theme="crepuscular"] .band-files{background-image:url(band-files-dusk.svg?v=1);background-color:#34385E;}
[data-theme="crepuscular"] .band-growth{background-image:url(band-growth-dusk.svg?v=1);background-color:#3B2766;}
[data-theme="crepuscular"] body.auth-bg{background:url(scene-city-strong-dusk.svg?v=1) center bottom/max(100%,1500px) auto no-repeat,#3B2766;}
@media (max-width:900px){ [data-tone="dark"] body.auth-bg{background-size:auto 300px,auto;} }
[data-tone="dark"] .owl-stand{filter:drop-shadow(0 8px 10px rgba(0,0,0,.45));}

/* ---------- tax options ---------- */
.lrow .meta span.taxtag,.duerow .meta span.taxtag,.bizitem .bizmeta span.taxtag{display:inline-flex;width:auto;margin:0 0 0 6px;font-size:.625rem;font-weight:700;padding:3px 7px;position:relative;top:-1px;color:var(--ink);}
.lrow .meta span.taxtag-all,.bizitem .bizmeta span.taxtag-none{color:var(--ink-70);}
.bizitem .bizmeta span.taxtag{margin:0;top:0;}
.taxtag{display:inline-flex;align-items:center;font-size:.6875rem;font-weight:700;line-height:1;padding:4px 8px;border-radius:6px;
  white-space:nowrap;vertical-align:middle;background:var(--ink-06);color:var(--ink-70);box-shadow:inset 0 0 0 1px var(--ink-10);}
.taxtag-eight_percent{background:rgba(255,207,0,.18);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(202,164,6,.55);}
.taxtag-osd{background:rgba(126,156,78,.16);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(126,156,78,.5);}
.taxtag-itemized{background:rgba(70,110,170,.13);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(70,110,170,.42);}
.taxtag-none{background:transparent;color:var(--ink-45);box-shadow:none;border:1px dashed var(--ink-45);padding:3px 7px;}
[data-tone="dark"] .taxtag-itemized{background:rgba(120,160,230,.14);box-shadow:inset 0 0 0 1px rgba(120,160,230,.4);}

.taxopts{display:grid;gap:10px;margin-bottom:14px;}
.taxopt{position:relative;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:start;padding:14px 16px;border-radius:var(--r-sm);
  background:var(--white);box-shadow:inset 0 0 0 1.5px var(--ink-10);cursor:pointer;transition:box-shadow .2s var(--ease),background .2s;}
.taxopt:hover{box-shadow:inset 0 0 0 1.5px var(--ink-45);}
.taxopt input{position:absolute;opacity:0;pointer-events:none;}
.taxopt .dot{grid-row:span 3;width:18px;height:18px;margin-top:2px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--ink-45);transition:box-shadow .2s var(--ease);}
.taxopt b{font-size:.9375rem;display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.taxopt .line{font-size:.8125rem;color:var(--ink-70);line-height:1.45;}
.taxopt .forms{font-size:.75rem;color:var(--ink-45);}
.taxopt:has(input:checked){box-shadow:inset 0 0 0 2px var(--accent,var(--deep));background:var(--gold-soft);}
.taxopt:has(input:checked) .dot{box-shadow:inset 0 0 0 5px var(--accent,var(--deep));}
.taxopt:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:2px;}
.taxopt.off{opacity:.5;cursor:not-allowed;}
.taxopt.off:hover{box-shadow:inset 0 0 0 1.5px var(--ink-10);}
.taxnote{font-size:.75rem;color:var(--ink-45);margin-top:10px;}

.taxstrip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:16px;border-radius:var(--r-md);
  background:var(--white);box-shadow:var(--pop-sm);}
.taxstrip .t{flex:1;min-width:200px;font-size:.8125rem;color:var(--ink-70);line-height:1.45;}
.taxstrip .t b{color:var(--ink);}
.taxstrip.unset{box-shadow:inset 0 0 0 1.5px var(--gold),var(--pop-sm);}
.taxfield{border:0;padding:0;margin:4px 0 16px;min-width:0;}
.taxfield legend{font-size:.8125rem;font-weight:600;color:var(--ink);padding:0;margin-bottom:4px;display:flex;align-items:center;gap:8px;}
.taxfield > .tiny{margin-bottom:10px;}
.taxopts.compact .taxopt{padding:11px 14px;}
.taxopt.unsure b{font-weight:600;}

/* ---------- a small menu, for when one button has several outputs ----------
   Built on the theme tokens rather than fixed colours, so it follows the
   owner's chosen theme into dusk and night without a second definition. */
.menu{position:relative;display:inline-block;}
.menu-pop{position:absolute;right:0;top:calc(100% + 7px);min-width:234px;z-index:60;
  background:var(--white);border-radius:var(--r-md);padding:7px;display:none;
  box-shadow:var(--pop-lg);}
.menu.open .menu-pop{display:block;}
.menu-pop button{display:block;width:100%;text-align:left;border:0;background:none;
  font:inherit;font-weight:700;font-size:0.8125rem;color:var(--ink);cursor:pointer;
  padding:9px 11px;border-radius:var(--r-sm);}
.menu-pop button:hover{background:var(--hover);}
.menu-pop button small{display:block;font-size:0.6875rem;font-weight:700;
  color:var(--ink-70);margin-top:2px;}
@media (max-width:560px){ .menu-pop{right:auto;left:0;min-width:214px;} }

/* ---------- accountants ----------
   Shared by the owner's "My accountant" panel, the accountant's own pages and
   the admin console, so a person's name, a code and a status look the same
   wherever they turn up. */
.acct-who{display:flex;flex-direction:column;gap:2px;padding:13px 16px;border-radius:var(--r-sm);background:var(--paper);}
.acct-who b{font-size:1rem;font-weight:700;letter-spacing:-0.015em;}
.acct-who span{font-size:0.8125rem;color:var(--ink-70);}
.acct-find{display:flex;gap:10px;align-items:flex-end;}
.acct-find .field{flex:1;margin:0;}
.acct-find .input{font-size:1.125rem;font-weight:700;letter-spacing:.14em;}
.acct-find .btn{height:47px;}
.acct-found{margin-top:14px;padding:16px;border-radius:var(--r-md);box-shadow:inset 0 0 0 1.5px var(--gold);background:var(--gold-soft);}
.acct-found .acct-who{background:var(--white);}
.acct-miss{margin-top:12px;font-size:0.8125rem;font-weight:600;color:var(--expense);}
/* the code is read aloud over the phone as often as it is scanned, so it is
   set like a number to be read: large, even-width digits, in two groups */
.acct-code{font-size:clamp(2rem,6vw,2.75rem);font-weight:700;letter-spacing:.08em;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;}
.acct-qr{width:168px;height:168px;padding:12px;border-radius:var(--r-md);background:#fff;box-shadow:var(--pop-sm);flex:0 0 auto;}
.acct-qr svg{display:block;width:100%;height:100%;}
