/* ---- compact layout: one screen, menus behind buttons ---- */
body { padding-block: 8px 12px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
.app { max-width: var(--appw, 1100px); gap: 6px; grid-template-columns: minmax(0, 1fr); } .app > * { min-width: 0; } .todo { overflow: hidden; }
.top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.top h1 { font-size: 18px; margin: 0; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; min-width: 0; }
body:not(.mobile) .chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 2.1fr); gap: 6px; align-items: stretch; flex-wrap: nowrap; }
body:not(.mobile) .chips .stat { height: 62px; padding: 3px 10px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
body:not(.mobile) .menubtns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; height: 62px; } body:not(.mobile) .menubtns .btn { padding: 2px 6px; font-size: 12px; white-space: nowrap; }
body:not(.mobile) .chips .stat.wxcard, body:not(.mobile) .chips .stat.tmcard { flex-direction: row; align-items: center; gap: 6px; } body:not(.mobile) .chips .wxcard svg { height: 52px; width: 24px; } body:not(.mobile) .chips .tmcard svg { width: 50px; height: 50px; } body:not(.mobile) .chips .wx-t b, body:not(.mobile) .chips .tm-t b { font-size: 14px; } body:not(.mobile) .chips .wx-t small, body:not(.mobile) .chips .tm-t small { display: block; }
#cardPop svg { width: 100%; max-width: 74px; height: 34px; display: block; margin: 0 auto; } #pneedle { transform-origin: 30px 29px; transition: transform .6s; }
#cardPop.flashG { animation: popG .9s ease-out; } #cardPop.flashR { animation: popR .9s ease-out; }
@keyframes popG { 0%, 40% { background: #bfe8c0; box-shadow: 0 0 0 2px #3f9a4a; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes popR { 0%, 40% { background: #f3b9ae; box-shadow: 0 0 0 2px #c0392b; } 100% { box-shadow: 0 0 0 0 transparent; } }
.capw { font: 700 10px 'DM Sans', sans-serif; padding: 1px 7px; border-radius: 9px; margin-left: 6px; letter-spacing: 0; text-transform: none; vertical-align: middle; } .capw.warn { background: #f3d678; color: #4a3500; } .capw.full { background: #d6543a; color: #fff; }
html { scrollbar-gutter: stable; }
.chips .stat { padding: 3px 10px; flex: 1 1 96px; min-width: 0; }
.chips .stat .k { font-size: 10px; letter-spacing: .1em; }
.chips .stat .v { font-size: 18px; line-height: 1.2; }
.chips .stat .meter { margin-top: 2px; height: 4px; }
.chips #sNeeds { margin: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { height: 6px; border-radius: 3px; }
.track i { top: -3px; height: 12px; width: 3px; }
.stage { width: 100%; min-width: 0; margin-inline: auto; }
.ticker { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; min-height: 28px; }
.ticker.bad { color: var(--bad); }
.todo { padding: 4px 10px; border-radius: 10px; }      /* rounded like the board above it */
.todo li { line-height: 1.35; }
.todo .tag { width: 40px; }
.todo .more { color: var(--muted); }
.menubar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.menubar .btn { padding: 6px 12px; font-size: 12px; }
.menubar b { font-family: var(--font-mono); font-weight: 500; margin-left: 2px; }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(8, 14, 10, .5); display: grid; place-items: center; padding: 12px; }
.sheet-panel { width: min(900px, 100%); max-height: calc(100% - 8px); overflow: auto; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 16px; display: grid; gap: 10px; align-content: start; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: sticky; top: -12px; background: var(--bg); padding: 4px 0; z-index: 1; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.sheet .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.todo-all { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.todo-all li { display: flex; gap: 10px; align-items: baseline; }
.todo-all .tag { flex: none; width: 46px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.todo-all .now .tag { color: var(--bad); font-weight: 600; } .todo-all .soon .tag { color: var(--accent); } .todo-all .later .tag { color: var(--muted); }
/* a disappointed customer is worth noticing: the red pulses twice */
#cardPop.flashR { animation: popR .8s ease-out 2; }
/* a disappointed customer's face, popping up at the top of the board with what they said (19b showCustomerPop) */
#custPops { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 30; }
.cpop { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(-12px) scale(.7); transition: opacity .25s, transform .25s; }
.cpop.in { opacity: 1; transform: none; }
.cpop-face { width: 52px; height: 52px; border-radius: 50%; background: #e9f0dc; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); image-rendering: pixelated; }
.cpop.sad .cpop-face { border-color: #f3b9ae; }
.cpop-say { background: #fff; color: #222; border-radius: 14px; padding: 6px 12px; font-size: 14px; font-weight: 600; max-width: 320px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* the big reel button, while a fish is biting (26j updateReelBtn) */
#reelBtn { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 35; font: 800 22px var(--font-display, 'DM Sans', sans-serif); padding: 12px 26px; border-radius: 999px; border: 3px solid #fff; background: #f0a32a; color: #3a2400; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; animation: reelPop .25s ease-out, reelGlow .6s ease-in-out .25s infinite alternate; }
#reelBtn[hidden] { display: none; }
@keyframes reelPop { from { transform: translateX(-50%) scale(.4); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
/* it glows rather than grows, so it stays put under the pointer */
@keyframes reelGlow { from { box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 0 rgba(255,214,90,.9); } to { box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 10px rgba(255,214,90,0); } }

/* the window that says the hens are all gone (31b) */
#allGone { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(20,24,18,.45); }
#allGone .ag-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 26px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 18px; max-width: 360px; }
#allGone .ag-h { font-size: 22px; font-weight: 700; margin: 0 0 6px; } #allGone p { margin: 6px 0; }
#allGone .ag-b { display: flex; gap: 12px; justify-content: center; margin-top: 12px; } #allGone .btn { font-size: 18px; padding: 6px 22px; }
