/* Task Island. Built by build.py from src/css/*.css: edit those files, not this one. */

/* ---- 00-base.css ---- */
/* ---------- The colour roles: the one list (Andrea, 23 Nov) ----------
   Every colour in the app has a job, and this is where the jobs are named. Rules use these roles, never a hex value.
   A new colour needs a new role here, with its job, and Andrea's yes. See the lookbook (public/lookbook.html).
   The live look is the Fanti skin (14-fanti-skin.css, 15-fanti-frames.css); its roles start with --f-. */
:root{
  --f-panel:#9f6156;   /* the panel's ground, behind everything in the drawer */
  --f-row:#945952;     /* a row or card that sits on the panel */
  --f-rowhi:#ab6c60;   /* a row under the pointer */
  --f-deep:#7d4740;    /* sunk in: the tab bar, a chosen tile, a picture well */
  --f-line:#3b1c19;    /* outlines, and text on gold */
  --f-text:#fff6ee;    /* text on the panel and rows */
  --f-mute:#f1dfd2;    /* quieter text on the panel: notes, counts, hints. A colour, never see-through */
  --f-tabmute:#e0bfb0; /* labels of the tabs not chosen. Close to --f-mute: ask Andrea before joining them */
  --f-card:#ead8ca;    /* the light card: a task in Go through, the info dot */
  --f-cardink:#4f2b2a; /* text on the light card */
  --f-gold:#f5a524;    /* the one key action on a screen, and counts. Rare on purpose */
  --f-wood:#c28f70;    /* wood details */
  --f-pri:#e8312f;     /* marks an important task */
  --f-late:#a3241f;    /* a date that has passed, dark enough to read on the light card */
  --f-plot:#f1dfae;    /* the sand of a plot, in its little picture */
}
/* The older roles below are the first skin's. Lower layers still read them; the Fanti layers override most of what they paint. */
:root{
  --ink:#2a2236; --paper:#fffaf0; --paper2:#f6efe1; --line:#2a2236;
  --work:#bff0d8; --work2:#8fdcb8; --build:#ffc8d9; --build2:#ff9ab9; --butter:#ffe08a;
  --dw:330px; --dh:46vh; --r:14px;
  --shadow:0 4px 0 var(--line);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#3f8fd2;font-family:Nunito,system-ui,sans-serif;color:var(--ink);-webkit-tap-highlight-color:transparent}
/* A held finger must not select the map and the tools (the blue film on phones). Text you type or read can still be picked. */
html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable],[contenteditable] *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
button{font:inherit;color:inherit;cursor:pointer}
#map{position:fixed;inset:0;width:100%;height:100%;image-rendering:pixelated;touch-action:none;cursor:grab}
#map.drag{cursor:grabbing}
body.mode-build #map{cursor:default}
body.mode-build.tool-erase #map{cursor:crosshair}
body.armed-on #map{cursor:copy}

/* ---------- dock ---------- */
.dock{position:fixed;z-index:10;background:var(--paper);border:3px solid var(--line);display:flex;flex-direction:column;
  left:0;top:0;bottom:0;width:var(--dw);border-width:0 3px 0 0;border-radius:0;box-shadow:4px 0 0 rgba(42,34,54,.18);transition:transform .22s ease}
body.mode-work .dock{--accent:var(--work);--accent2:var(--work2)}
body.mode-build .dock{--accent:var(--build);--accent2:var(--build2)}
.dock.folded{transform:translateX(calc(-100% - 8px))}
.grip{position:absolute;right:-9px;top:50%;width:14px;height:64px;margin-top:-32px;cursor:ew-resize;display:grid;place-items:center;z-index:2}
.grip span{width:6px;height:40px;border-radius:4px;background:var(--line);opacity:.25}
.grip:hover span{opacity:.6}
.unfold{position:fixed;left:var(--dw);top:50%;transform:translateY(-50%);z-index:9;border:3px solid var(--line);border-left:0;border-radius:0 12px 12px 0;padding:14px 8px;font-weight:800;transition:left .22s ease}
.dock.folded ~ .unfold{left:0}

.dhead{display:flex;scrollbar-width:none}
.dhead::-webkit-scrollbar{display:none}

/* Find is a magnifier until you tap it, then it opens to fill the bar */
.find{display:flex;gap:4px;border:2px solid var(--line);border-radius:12px;min-width:0;}
.find input{outline:0;font:inherit;min-width:0}
.dhead > .find.open{flex:1 1 auto;min-width:140px;cursor:text}
.find span{font-size:14px}
button.primary{border:2px solid var(--line);border-radius:12px;padding:5px 10px;font-weight:700;white-space:nowrap}
button.primary:active,button.chip:active,.btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--line)}
button.icon{border:2px solid var(--line);border-radius:10px;width:34px;height:32px;font-weight:800}

.tabs{display:flex;overflow-x:auto;scrollbar-width:none;}
.tabs::-webkit-scrollbar{display:none}
.tabs button{border:2px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;font-weight:700;white-space:nowrap;display:flex;gap:5px;align-items:center;margin-bottom:-2px}
.tabs button.on{font-weight:600}
.tabs .n{font-size:11px;padding:0 6px;font-weight:800}
.body{flex:1;overflow-y:auto;overscroll-behavior:contain}


/* ---- 01-lists.css ---- */
/* rows, cards, chips */
h3.sec{margin:14px 2px 6px;display:flex;justify-content:space-between;align-items:center}
h3.sec:first-child{margin-top:2px}
h3.sec small{font-size:12px;opacity:.6}
.empty{opacity:.6;font-size:14px;padding:4px 2px}
.row{display:flex;gap:8px;align-items:center;border:2px solid var(--line);border-radius:12px;padding:7px 9px;cursor:pointer;}
.row:hover{background:#fffdf6}
.row.sel{background:var(--butter)}
.row .dot{width:12px;height:12px;border-radius:4px;border:2px solid var(--line);flex:none}
.row .t{flex:1;min-width:0}
.row .t b{display:block;font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .t small{display:block;font-size:12px;opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .star{font-size:15px;opacity:.25;border:0;background:none;padding:2px}
.row .star.on{opacity:1}
.quick{display:flex;gap:3px;flex-wrap:wrap;margin:-2px 0 8px 22px}
.quick button{border:2px solid var(--line);background:var(--paper);border-radius:9px;font-size:12.5px;padding:2px 7px;font-weight:700}
.quick button:hover{background:var(--accent)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:2px solid var(--line);border-radius:11px;font-weight:800;}
.chip.hot{background:var(--butter)}
.grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:6px}
.tile{border:2px solid var(--line);border-radius:11px;padding:4px 3px 3px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;font-weight:700;line-height:1.15;min-height:76px;justify-content:flex-end}
.tile canvas{max-width:64px;max-height:52px}
.subtabs{display:flex;margin:2px 0 12px;border:2px solid var(--line);border-radius:12px;overflow:hidden;}
.bgrid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
.bgrid .sec.full{grid-column:1/-1;margin:10px 2px 0}
.btile{min-height:118px;position:relative}
.btile canvas{width:auto!important;max-width:88px!important;max-height:84px!important}
.btile span{font-size:12px}
.btile.off canvas{opacity:.55}
.btile em{position:absolute;top:4px;right:4px;font-style:normal;font-size:10.5px;font-weight:800;background:var(--butter);border:2px solid var(--line);border-radius:7px;padding:0 5px}
.subtabs button{flex:1 1 auto;border:0;border-radius:0;font-weight:800;white-space:nowrap}
.subtabs button:hover{background:var(--paper2)}
.subtabs button.on:hover{background:var(--ink)}
.swatches{display:flex;flex-wrap:wrap;gap:5px}
.swatches button{width:24px;height:24px;border-radius:7px;border:2px solid var(--line);padding:0}
.swatches button.on{outline:3px solid var(--ink);outline-offset:2px}

/* inspector */
.insp{border:3px solid var(--line);border-radius:14px;margin-bottom:12px;}
.insp .top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.insp .top .back{border:2px solid var(--line);border-radius:9px;font-weight:800}
.insp .top .kind{font-family:Nunito;font-weight:700;font-size:13px;opacity:.65;flex:1}
.insp .plate{font-family:"Pixelify Sans";font-size:13px;background:var(--ink);color:#fff;border-radius:6px;padding:1px 6px}
.insp input.title,.insp textarea,.insp select,.insp input[type=date],.insp input[type=text]{width:100%;font:inherit;border:2px solid var(--line);border-radius:10px;padding:6px 8px;background:var(--paper)}
.insp input.title{font-weight:800;font-size:16px}
.insp textarea{min-height:76px;resize:vertical;font-size:14px;margin-top:6px}
.field{margin-top:9px}
.field>label{display:block;font-size:12px;font-weight:800;opacity:.65;margin:0 0 3px 2px}
.seg{display:flex;flex-wrap:wrap;gap:4px}
.seg button{border:2px solid var(--line);background:var(--paper);border-radius:9px;padding:3px 8px;font-size:12.5px;font-weight:800}
.seg button.on{background:var(--ink);color:#fff}
.btns{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.btn{border:2px solid var(--line);border-radius:11px;font-weight:800;}
.confirm{margin-top:8px;padding:8px 10px;border:2px dashed var(--line);border-radius:10px;background:#fff4f4;font-size:13.5px}
.confirm .btns{margin-top:6px}
.note{font-size:12.5px;opacity:.7;margin-top:8px;line-height:1.35}
pre.prompt{white-space:pre-wrap;background:var(--paper2);border-radius:10px;padding:8px;font-size:12.5px;max-height:160px;overflow:auto;margin:4px 0 0}


/* ---- 02-map-tools.css ---- */
/* map tools and controls */
.tools{position:fixed;z-index:8;top:12px;left:calc(var(--dw) + 16px);display:none;gap:4px;border:3px solid var(--line);border-radius:14px;padding:4px;}
body.mode-build .tools{display:flex}
.dock.folded ~ .tools{left:12px}
.tools{align-items:center;max-width:calc(100vw - var(--dw) - 290px);flex-wrap:wrap}
.tools button{border:2px solid transparent;border-radius:10px;display:flex;gap:5px;align-items:center;flex:none}
.tools button b{font-family:Nunito;font-size:13.5px}
.tools i{background:#e6dcc6;margin:4px 2px}
.armed{position:fixed;z-index:8;left:50%;bottom:16px;transform:translateX(-50%);background:var(--butter);border:3px solid var(--line);border-radius:14px;padding:6px 8px 6px 12px;box-shadow:var(--shadow);display:none;align-items:center;gap:8px;font-weight:800;font-size:14px}
.armed.show{display:none}
.armed button{border:2px solid var(--line);background:var(--paper);border-radius:9px;padding:2px 9px;font-weight:800}
.mapctl{position:fixed;z-index:8;right:12px;top:12px;display:flex;gap:4px;align-items:center;border:3px solid var(--line);border-radius:14px;padding:4px;}
.mapctl button{border:2px solid transparent;border-radius:9px;min-width:30px;height:30px;font-weight:800}
.mapctl button.on{background:var(--butter);border-color:var(--line)}
.mapctl span{min-width:34px;text-align:center;font-weight:800;font-size:13px}
.menu{position:fixed;z-index:12;right:12px;top:62px;border:3px solid var(--line);border-radius:14px;display:none;max-width:320px;font-size:13.5px}
.menu.show{display:block}
.menu button{display:block;width:100%;text-align:left;border:2px solid var(--line);background:#fff;border-radius:10px;padding:6px 9px;margin:4px 0;font-weight:800}
.menu p{margin:6px 0;line-height:1.35}
.tip{position:fixed;z-index:11;pointer-events:none;border:2px solid var(--line);border-radius:9px;padding:3px 8px;font-size:13px;font-weight:800;display:none;}
.tip small{display:block;font-weight:600;opacity:.7}
.toast{position:fixed;z-index:20;left:50%;top:74px;transform:translateX(-50%) translateY(calc(-100% - 120px));visibility:hidden;transition:transform .25s,visibility 0s .25s;background:var(--ink);color:#fff;border-radius:12px;padding:8px 10px 8px 14px;font-weight:700;display:flex;gap:10px;align-items:center;max-width:90vw}
/* a hidden toast slides its whole height away and is hidden, so a long message never leaves a strip at the edge */
.toast.show{transform:translateX(-50%) translateY(0);visibility:visible;transition:transform .25s}
.toast button{border:2px solid #fff;background:none;color:#fff;border-radius:9px;padding:2px 9px;font-weight:800}
.loading{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#3f8fd2;color:#fff;font-family:Nunito;font-weight:700;font-size:22px}
.login{position:fixed;inset:0;z-index:25;display:grid;place-items:center;background:rgba(42,34,54,.35)}
.login.hidden{display:none}
.login form{background:var(--paper);border:3px solid var(--line);border-radius:18px;padding:22px;box-shadow:6px 6px 0 var(--line);width:min(360px,90vw)}
.login h2{font-family:Nunito;margin:0 0 6px}
.login p{margin:0 0 12px;font-size:14px;opacity:.8}
.login .loginor{text-align:center;margin:10px 0}
.login input{width:100%;font:inherit;border:2px solid var(--line);border-radius:10px;padding:8px 10px;margin-bottom:10px}

/* armed bar bits, card, send grid and sort deck (the card and deck only show on phones) */
.armed .hint{opacity:.6;font-weight:600}
.armed button.ok{background:var(--work2)}
.armed button:disabled{opacity:.35}

.hotbar,.card,.sheetx{display:none}
.sendgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.sendgrid button{border:2px solid var(--line);background:var(--paper);border-radius:12px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-weight:800;font-size:12px;min-height:58px;min-width:0;box-shadow:0 2px 0 var(--line)}
.sendgrid button.go{background:var(--work2)}
.sendgrid button:active{transform:translateY(2px);box-shadow:none}
.sendgrid i{font-style:normal;font-size:20px;line-height:1.1}
.sendgrid span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:0 3px}

.empty-deck{display:flex;flex-direction:column;align-items:center;padding:40px 0;gap:4px}
.empty-deck i{font-style:normal;font-size:44px}
.empty-deck b{font-family:Nunito;font-size:20px}


/* ---- 03-phones.css ---- */
/* phones: the map is the screen. A hotbar sits under the thumb, lists open as a full sheet. */
@media (max-width: 760px){
  .dock{inset:0;width:auto;height:auto;border:0;border-radius:0;transform:translateY(105%);transition:transform .22s ease;z-index:15}
  .dock.folded{transform:translateY(105%)}
  body.sheet .dock{transform:none}
  .grip,.unfold,#foldBtn{display:none!important}
  .sheetx{display:grid;place-items:center;font-size:18px;flex:none}
  .dhead > .find{flex:1 1 auto;padding:0 10px;height:auto}
  .row{padding:11px;min-height:54px}
  .row .t b{font-size:15px}
  .row .star{font-size:20px;padding:8px}
  .quick button{padding:6px 9px;font-size:13.5px}
  .swatches{gap:7px}
  .swatches button{width:34px;height:34px;border-radius:9px}
  .insp input.title,.insp textarea,.insp select,.insp input[type=date],.insp input[type=text]{font-size:16px;padding:9px 10px}

  /* only undo and redo float at the top in Build; remove lives in the hotbar */
  .tools [data-tool],#rotBtn,.tools i{display:none}
  .tools button{font-size:20px;min-width:44px;height:40px;justify-content:center}
  .mapctl{right:8px;top:calc(8px + env(safe-area-inset-top))}
  #zout,#zin,#zl{display:none}
  .mapctl button{height:40px}
  .menu{top:calc(64px + env(safe-area-inset-top));left:8px;right:8px;max-width:none}

  .hotbar{display:flex;position:fixed;z-index:9;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));gap:4px;border:3px solid var(--line);border-radius:18px;}
  .hotbar button{position:relative;flex:1;min-width:0;height:58px;border:2px solid var(--line);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0}
  .hotbar button i{font-style:normal;font-size:21px;line-height:1.1}
  .hotbar button b{font-family:Nunito;font-size:11.5px}
  .hotbar button.on{outline:3px solid var(--ink);outline-offset:-5px}
  .hotbar button:active{transform:translateY(2px)}
  .hotbar .slot canvas{max-width:40px!important;max-height:44px!important;width:auto!important;image-rendering:pixelated}
  .hotbar .n{position:absolute;top:-7px;right:-4px;background:var(--ink);color:#fff;border-radius:10px;font-weight:800;padding:1px 6px}

  .card{position:fixed;z-index:9;left:8px;right:8px;bottom:calc(84px + env(safe-area-inset-bottom));border:3px solid var(--line);border-radius:16px;max-height:58vh;overflow:auto}
  .card.show{display:block}
  .card .cx{position:absolute;right:6px;top:6px;width:40px;height:40px;border:0;background:none;font-size:17px;font-weight:800}
  .card .ct{display:flex;gap:8px;align-items:center;padding-right:40px}
  .card .ct b{font-family:Nunito;font-weight:700;font-size:17px;line-height:1.25}
  .card .dot{width:14px;height:14px;border-radius:4px;border:2px solid var(--line);flex:none}
  .card .cm{display:block;font-size:13px;opacity:.65;margin-top:2px}
  .card .btns{margin-top:10px}
  .card .seg.big{margin-top:10px}
  .card .seg.big button{flex:1;padding:10px 0;font-size:15px}

  .armed{bottom:calc(84px + env(safe-area-inset-bottom));left:8px;right:8px;transform:none;flex-wrap:wrap;padding:8px 8px 8px 12px}
  .armed .hint{order:5;flex-basis:100%;font-size:12.5px}
  .armed button{min-width:44px;height:40px;font-size:16px}
  body.sheet .hotbar,body.sheet .card,body.sheet .armed,body.sheet .tools,body.sheet .mapctl{display:none!important}
  .toast{top:calc(60px + env(safe-area-inset-top))}
}


/* ---- 04-hold-capture-zones.css ---- */
/* ===== 20 Nov: hold bar, deck, capture, card on the right, catalog search ===== */
.tools kbd,.allp kbd,.urgent kbd{font-family:Nunito;font-size:10.5px;font-weight:800;border:1.5px solid currentColor;border-radius:5px;padding:0 4px;opacity:.55;margin-left:4px}
.tools .ur{order:9}
.tools .ursep{order:8;width:2px;align-self:stretch;}
.tools i.toolsep{width:2px;align-self:stretch;}
.hold{display:flex;align-items:center;gap:6px;min-width:0;flex:1;position:relative;font-size:13.5px}
.hold .hl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.hold .hl b{font-family:Nunito;font-weight:700}
.hold .hl .hint,.hold .muted{opacity:.6;font-weight:600}
.hold .hthumb{display:flex;align-items:center}
.hold .hthumb canvas{max-height:26px!important;max-width:30px!important;width:auto!important;image-rendering:pixelated}
.hold button{border:2px solid var(--line)!important;background:var(--paper)!important;border-radius:9px;min-width:32px;height:30px;padding:0 7px!important;font-weight:800;justify-content:center}
.hold button.ok{background:var(--work2)!important}
.hold button:disabled{opacity:.35}
.hold .hsw{width:30px}
.hpal{position:absolute;left:0;bottom:calc(100% + 12px);background:var(--paper);border:3px solid var(--line);border-radius:14px;padding:8px;display:grid;grid-template-columns:repeat(9,30px);gap:5px;box-shadow:var(--shadow);z-index:3}
body:not(.mode-build) .hpal{display:none}
.hpal button{width:30px!important;min-width:0!important;height:30px!important;padding:0!important}
.hpal button.on{outline:3px solid var(--ink);outline-offset:1px}
.counters{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:6px}
.counters button{border:2px solid var(--line);background:#fff;border-radius:12px;padding:6px 10px;text-align:left;box-shadow:0 2px 0 var(--line)}
.counters button.hot{background:var(--butter)}
.counters b{display:block;font-family:Nunito;font-weight:700;font-size:24px;font-weight:600;line-height:1.1}
.counters small{font-weight:700;opacity:.7;font-size:12px}

.allp:active{transform:translateY(2px);box-shadow:none}
.allp{width:100%;margin-top:6px;border:2px dashed var(--line);background:none;border-radius:12px;padding:8px;font-weight:800;font-size:13.5px}
.plist{border:2px solid var(--line);border-radius:12px;background:#fff;margin-top:6px;padding:8px;max-height:260px;overflow:auto}
.plist input{width:100%;font:inherit;border:2px solid var(--line);border-radius:10px;padding:6px 8px;background:var(--paper);margin-bottom:4px}
.plist h5{margin:8px 2px 3px;font-size:12px;opacity:.6}
.prow{display:flex;gap:8px;align-items:center;width:100%;border:0;background:none;padding:6px 4px;border-radius:8px;font-weight:700;text-align:left}
.prow:hover{background:var(--paper2)}
.prow .dot{width:11px;height:11px;border-radius:4px;border:2px solid var(--line);flex:none}
.urgent{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13.5px;cursor:pointer}
.urgent input{width:20px;height:20px;accent-color:var(--ink)}

.sendgrid button{position:relative}
.sendgrid kbd{position:absolute;right:4px;top:3px;margin:0}
.waitask{margin-top:10px;background:#fff;border:2px solid var(--line);border-radius:12px;padding:10px}
.waitask label{font-weight:800;font-size:13px}
.waitask input{width:100%;font:inherit;border:2px solid var(--line);border-radius:10px;padding:7px 9px;background:var(--paper);margin:6px 0}
.linkbtn{border:0;background:none;text-decoration:underline;font-weight:800;padding:0;}

.btn.on{background:var(--butter)}
.btn.pink{background:var(--build)}
.btn.again{background:#ff8f8f;color:#2a2236;animation:nudge .25s}
@keyframes nudge{0%{transform:translateX(0)}30%{transform:translateX(-3px)}60%{transform:translateX(3px)}100%{transform:translateX(0)}}
.swatches.recentcol{margin-bottom:6px;align-items:center}
.swatches.recentcol small{font-size:11.5px;font-weight:700;opacity:.55}
.btns.preview{margin-top:8px}
/* the card for what's picked, on the right on wide screens */
.card.side.show{display:block;position:fixed;z-index:9;right:12px;top:64px;width:340px;max-height:calc(100vh - 80px);overflow:auto;}
.card.side .insp{margin:0;}
/* capture */
.capture{display:none;position:fixed;z-index:16;padding:10px 12px 12px}
.capture.show{display:block}
/* the New window grows with what it asks (a building to choose for a place), so it scrolls inside the screen */
.capture{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.capture .grab{width:40px;height:5px;border-radius:3px;background:var(--line);opacity:.2;margin:0 auto 8px}
.caphead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.seg2{display:inline-flex;border:2px solid var(--line);border-radius:11px;}
.seg2 button{font-weight:800}
.capture .cx{border:0;background:none;font-size:17px;font-weight:800;width:38px;height:36px}
#capTitle{width:100%;font:inherit;font-size:17px;font-weight:700;border:2px solid var(--line);border-radius:12px;padding:10px 12px;}
#capTitle:focus{box-shadow:0 0 0 3px var(--work)}
.capchips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.capchips .chip{font-weight:700;display:inline-flex;gap:5px;align-items:center;font:inherit;font-size:13px;font-weight:700;max-width:100%}
.capchips .chip.on{background:var(--butter)}
.capchips .dot{width:10px;height:10px;border-radius:3px;border:2px solid var(--line)}
.capgo{width:100%;}
.caplast{font-size:13px;font-weight:700;margin-top:8px;text-align:center;min-height:18px}
@media (min-width: 761px){ .toast{top:auto;bottom:20px;left:calc(50% + var(--dw) / 2);transform:translateX(-50%) translateY(calc(100% + 40px))} .toast.show{transform:translateX(-50%) translateY(0)} .capture{left:calc(var(--dw) + 16px);top:66px;width:400px;} .capture .grab{display:none} }
/* coach */

@media (max-width: 760px){
  /* the hold strip sits right over the hotbar, with undo and redo at its left end */
  .tools{display:none;left:8px!important;right:8px;top:auto!important;bottom:calc(84px + env(safe-area-inset-bottom));max-width:none;padding:4px 6px;}
  .tools .ur{order:0;font-size:19px;min-width:40px;height:38px;border:2px solid var(--line);}
  .tools .ursep{order:1}
  .hold{order:2;font-size:13px}
  .hold .hl .hint{display:block;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hold button{min-width:40px;height:38px;font-size:16px}
  .hpal{grid-template-columns:repeat(9,1fr);left:-46px;right:-6px}
  .hpal button{width:auto!important;height:32px!important}
  .hotbar button.big{flex:1.35}
  .card .btns.main{flex-wrap:nowrap}
  .card .btns.main .btn{flex:1;padding:10px 6px;min-width:0;white-space:nowrap}
  .card .btns.main .btn[data-star]{flex:.55}
  .card .sendgrid{margin-top:8px}
  .capture{left:0;right:0;bottom:0;}
  body.capturing .hotbar,body.capturing .card,body.capturing .tools{display:none!important}
  .counters b{font-size:26px}
  
}

/* zones in the Projects tab */
.zone{margin:6px 0 10px;border-radius:12px;transition:background .15s}
.zone.lifting{background:var(--paper2);box-shadow:0 6px 0 rgba(42,34,54,.2);position:relative;z-index:2}
.zone.dropline{box-shadow:0 -4px 0 var(--ink)}
.zhead{display:flex;align-items:center;gap:6px;margin:4px 0 6px}
.zgrip{cursor:grab;touch-action:none;user-select:none;font-weight:800;opacity:.45;padding:6px 4px;letter-spacing:-2px}

.zn{flex:1;text-align:left;border:0;background:none;font-weight:700;font-size:15px;padding:4px 2px;border-radius:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zn:hover{background:var(--paper2)}
.zname{flex:1;font:inherit;font-family:Nunito;font-weight:700;font-size:15px;border:2px solid var(--line);border-radius:9px;padding:3px 7px;min-width:0}
.zhead small{opacity:.5;font-size:12px}
.zdel{border:2px solid transparent;background:none;opacity:.8;font-size:15px;padding:3px 5px;border-radius:8px}
.zdel:hover{opacity:1;border-color:var(--line);background:#ffd0d0}
.zpal{background:#fff;border:2px solid var(--line);border-radius:12px;padding:8px;margin-bottom:8px}
.zpal .btns{margin-top:8px}
@media (max-width:760px){ .zgrip{padding:10px 8px;font-size:18px}  .zn,.zname{font-size:16.5px} .zdel{font-size:19px;padding:8px} }

/* Land */
.tile.land{min-height:62px;justify-content:center;gap:5px}
.lsw{display:block;width:34px;height:20px;border-radius:6px;border:2px solid var(--line)}
.hold .lsw{width:26px;height:18px}
.lshapes{display:inline-flex;border:2px solid var(--line);border-radius:10px;overflow:hidden;flex:none}
.hold .lshapes button{border:0!important;border-radius:0;height:28px;font-size:12.5px;padding:0 8px!important;background:#fff!important}
.hold .lshapes button.on{background:var(--ink)!important;color:#fff}
@media (max-width:760px){ .hold .lshapes button{height:34px;font-size:12.5px;padding:0 6px!important} .hold .lshapes{order:5} }


/* ---- 05-tablets.css ---- */
/* medium screens (tablets, small laptops): the tool bar goes to the bottom of the map so it never hides under the zoom controls */
@media (min-width:761px) and (max-width:1179px){
  /* half screen: keep the map clear. The tool bar is a small pill at the bottom, icons only, and grows only while you hold something */
  .tools{top:auto;bottom:10px;right:auto;max-width:calc(100vw - var(--dw) - 24px);row-gap:4px;flex-wrap:nowrap;padding:3px}
  .tools button b,.tools kbd{display:none}
  .tools button{padding:4px 7px}
  .tools .hold{flex:0 1 auto;min-width:0}
  .tools .hold:empty{display:none}
  .hold .hl .hint,.hold .hl.muted{display:none}
  .mapctl{top:8px;right:8px;padding:3px}
  .mapctl #zl{display:none}
  .dhead{gap:4px;padding:6px}
  .dhead .find{min-width:0}
  .tabs{gap:0;padding:6px 4px 0}
  .tabs button{padding:6px 5px 7px;font-size:13px}
  body.mode-build .toast{bottom:64px}
}
@media (min-width:761px){ .hold .lshapes ~ * {} .hold:has(.lshapes) .hl .hint{display:none} }
/* touch screens bigger than a phone (tablets): finger-sized controls */
@media (pointer:coarse) and (min-width:761px){
  .seg button,.subtabs button{padding:8px 11px;font-size:14px}
  .tools button,.hold button{min-height:40px;min-width:40px}
  .hold .lshapes button{height:38px}
  .insp .top .back{padding:6px 12px}
  .btn{padding:9px 13px}
  .linkbtn{padding:10px 4px;display:inline-block}
  .seg2 button{padding:9px 16px}
  .capchips .chip,.capchips select.chip{height:38px;padding:0 12px}
}
@media (max-width:760px){
  .tools{row-gap:6px}
  .hold{flex-wrap:wrap;}
  .hold .lshapes{order:9;flex-basis:100%;display:flex}
  .hold .lshapes button{flex:1;height:38px}
  .linkbtn{padding:10px 4px;display:inline-block}
  .seg2 button{font-size:15px}
  .capchips select.chip{height:38px}
}

#map.space{cursor:grab!important}
.zpaint{border:0;background:none;padding:4px 5px;opacity:.6}.zpaint:hover{opacity:1}

@media (max-width:760px){ .zpaint{font-size:19px;padding:8px} }

.menu details.keys{margin-top:6px;font-size:12.5px}
.menu details.keys summary{cursor:pointer;font-weight:800;padding:4px 0}
.menu details.keys p{margin:4px 0;line-height:1.45}


/* ---- 06-small-parts.css ---- */
/* zones as editable rows in Build → Land */
.zlist .zone.zland{margin:0 0 4px;padding:2px 6px;}
.zland .zhead{margin:2px 0}
.zland .zpaint{opacity:1;font-size:12px;font-weight:800;border-radius:8px;}
.zland .zpaint.on{background:var(--ink);color:#fff}
.zland .zdel{opacity:.45}.zland .zdel:hover{opacity:1;border-color:var(--line);background:#ffd0d0}
@media (max-width:760px){ .zland .zpaint{font-size:14px;padding:8px 10px} }

/* the row you came back to blinks once, so you see where you are */
.row.flash{animation:rowflash .9s ease}
@keyframes rowflash{0%,40%{background:#fff3c4;box-shadow:0 0 0 2px var(--ink)}100%{}}
@media (prefers-reduced-motion:reduce){ .row.flash{animation:none;background:#fff3c4} }
/* eraser, bulldozer, bomb: one tool, three strengths */
.erasers button{display:inline-flex;align-items:center;gap:4px}
.erasers button b{font-weight:600;font-size:12.5px}
.hold .erasers button.bomb.on{background:#c8372d!important;color:#fff}
@media (max-width:760px){ .hold .erasers button b{display:none} .hold .erasers button{font-size:17px;padding:0 10px!important} }
/* brush size: 1, 3, 5, 9 tiles, a little square that grows */
.hold .bsizes button{display:inline-flex;align-items:center;gap:4px;font-weight:700}
.bsizes i{display:inline-block;background:currentColor;border-radius:2px;opacity:.75}
@media (max-width:760px){ .hold .bsizes button{padding:0 7px!important} }
/* a zone's ground in town: a little ground tile (a diamond, like the map) next to the colour square, and a picker of ground textures */
.zgnd{width:34px;height:22px;border:0;padding:0;background:none;flex:none;display:grid;place-items:center;position:relative}
.zgnd::before{content:"";position:absolute;inset:0;background:var(--line);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.zgnd i{position:relative;display:block;width:28px;height:16px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);overflow:hidden}
.zgnd i canvas{width:100%;height:100%;image-rendering:pixelated;display:block}
.zgnd.on::before{background:#ffb02e}
.zgnd:hover::before{background:#5a4f6e}

.zgpick .zgrid{grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:4px}
.zgpick .zgrid .tile{min-height:0;padding:3px}
.zgpick{max-height:340px;overflow:auto}
@media (max-width:760px){ .zgnd{width:42px;} .zgnd i{width:36px;height:20px} }

/* ☰ settings: switches for what shows on the map */
.menu .mh{margin:10px 0 4px;font-family:Nunito;font-weight:700;font-size:13px;opacity:.65;font-weight:600}
.menu .mswitch{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mswitch i{width:34px;height:20px;border:2px solid var(--line);border-radius:12px;background:#ddd6c8;position:relative;flex:none;transition:background .15s}
.mswitch i::after{content:"";position:absolute;top:1px;left:1px;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid var(--line);box-sizing:border-box;transition:left .15s}
.mswitch i.on{background:var(--work2)}
.mswitch i.on::after{left:15px}

/* eraser, bulldozer, bomb: say what each one takes, right away on hover or focus */
.erasers{overflow:visible!important;position:relative}
.erasers button{position:relative}
.erasers button[data-tip]:hover::after,.erasers button[data-tip]:focus-visible::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%);width:200px;white-space:normal;text-align:left;background:var(--ink);color:#fff;font:600 12.5px/1.35 Nunito,sans-serif;padding:7px 9px;border-radius:9px;z-index:30;pointer-events:none;box-shadow:0 3px 0 rgba(0,0,0,.25)}
/* the tool bar sits at the bottom on smaller screens: the tip goes above it there */
@media (max-width:1179px){ .erasers button[data-tip]:hover::after,.erasers button[data-tip]:focus-visible::after{top:auto;bottom:calc(100% + 10px)} }

/* plot ground: sand, grass, nothing or a texture */
.pground{display:flex;flex-wrap:wrap}
.pground button{display:inline-flex;align-items:center;gap:5px}
.pgsw{display:inline-block;width:14px;height:14px;border:2px solid var(--line);border-radius:4px;overflow:hidden;flex:none}
.pgsw canvas{width:100%;height:100%;image-rendering:pixelated}

/* ⓘ: a small round button with a tip, on hover (mouse) or tap (phone) */
.info{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;border:2px solid var(--line);font:800 11px/1 Nunito,sans-serif;font-style:italic;padding:0;vertical-align:1px;position:relative;cursor:help}
.info:hover::after,.info:focus-visible::after,.info.show::after{content:attr(data-tip);position:absolute;left:-60px;top:calc(100% + 8px);width:250px;max-width:calc(var(--dw) - 40px);white-space:normal;text-align:left;background:var(--ink);color:#fff;font:600 12.5px/1.4 Nunito,sans-serif;font-style:normal;padding:8px 10px;border-radius:10px;z-index:40;box-shadow:0 3px 0 rgba(0,0,0,.25);pointer-events:none}
@media (max-width:760px){ .info:hover::after,.info.show::after{max-width:calc(100vw - 60px)} }
.note .info:hover::after,.note .info.show::after{left:-6px}

/* the two tabs at the top of a building's card */
.insp .top .ltabs{flex:1;margin:0;box-shadow:none}
.insp .top .ltabs button{padding:6px 8px}

/* people */
.prow{display:flex;align-items:center;gap:6px;margin:0 0 6px;background:#fff;border:2px solid var(--line);border-radius:12px;padding:3px 4px 3px 3px}
.prow.open{background:var(--paper2)}
.pxhead{flex:1;display:flex;align-items:center;gap:8px;border:0;background:none;text-align:left;padding:2px;min-width:0}
.pxhead span{display:flex;flex-direction:column;min-width:0}.pxhead small{opacity:.65;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pav{display:grid;place-items:center;width:32px;height:40px;background:#cfe8b8;border-radius:8px;flex:none;overflow:hidden}
.pav canvas{width:24px;height:44px;image-rendering:pixelated}
.pxedit{border:2px dashed var(--line);border-radius:12px;padding:8px;margin:-2px 0 10px;background:#fff}
.pxprojs{display:flex;flex-wrap:wrap;gap:4px;max-height:150px;overflow:auto}
.pxprojs button{border:2px solid var(--line);background:#fff;border-radius:9px;padding:2px 7px;font-size:12.5px;font-weight:700;display:inline-flex;gap:5px;align-items:center}
.pxprojs button.on{background:var(--ink);color:#fff}
.pxedit .seg{display:flex;flex-wrap:wrap}

/* the guide */
.wiki{position:fixed;inset:0;z-index:50;background:rgba(42,34,54,.35);display:none;place-items:center;padding:16px}
.wiki.show{display:grid}
.wikicard{border:3px solid var(--line);border-radius:16px;display:flex;flex-direction:column;overflow:hidden}
.wtop{display:flex;align-items:center;justify-content:space-between;font-weight:700;}
.wbody{display:flex;min-height:0;flex:1}
.wbody nav{display:flex;flex-direction:column;overflow:auto}
.wbody nav button{border:0;background:none;text-align:left;border-radius:9px;}
.wbody article{overflow:auto;}

/* ⋯ on a card: its options */
.insp .top .dotsw{order:99;position:relative}
.dots{border:2px solid transparent;background:none;border-radius:9px;font-size:18px;line-height:1;padding:0 7px 4px;font-weight:800}
.dots:hover{border-color:var(--line);background:#fff}
.dmenu{position:absolute;right:0;top:calc(100% + 4px);z-index:30;background:var(--paper);border:2px solid var(--line);border-radius:12px;box-shadow:0 4px 0 rgba(42,34,54,.25);padding:4px;display:flex;flex-direction:column;min-width:190px}
.dmenu button{border:0;background:none;text-align:left;padding:7px 9px;border-radius:8px;font-weight:700;font-size:13.5px;white-space:nowrap}
.dmenu button:hover{background:var(--paper2)}

/* the islands in ☰: rows like any list, the open one chosen; a new island starts from a name and the key button */
.menu .row{margin:4px 0}
.menu .mnew{display:flex;gap:6px;align-items:center;margin:4px 0}
.menu .mnew input{flex:1;min-width:0;font:inherit;padding:6px 8px}
.menu .mnew .btn{width:auto;margin:0;white-space:nowrap}

/* ---- 07-pixel-skin.css ---- */
/* =====================================================================
   Pixel skin (Andrea, 20 Nov): a cozy, wooden-and-paper look that fits the pixel town.
   Square corners with a one-pixel notch, warm browns instead of purple-black, flat drop shadows,
   panels framed in wood. Text stays in readable type; small headings and tabs use Pixelify Sans.
   ===================================================================== */
:root{
  --ink:#4a2e1e; --line:#6b4428; --paper:#f7e8c8; --paper2:#efd9ad; --wood:#b07a4c; --wood2:#8a5a34;
  --work:#c9dfa0; --work2:#9cc070; --build:#f6cfa6; --build2:#e39a6a; --butter:#ffd57a; --accent:#e9c48e;
  --shadow:0 3px 0 rgba(74,46,30,.45); --r:0px;
  --cut:polygon(3px 0,calc(100% - 3px) 0,100% 3px,100% calc(100% - 3px),calc(100% - 3px) 100%,3px 100%,0 calc(100% - 3px),0 3px);
  --cut2:polygon(2px 0,calc(100% - 2px) 0,100% 2px,100% calc(100% - 2px),calc(100% - 2px) 100%,2px 100%,0 calc(100% - 2px),0 2px);
  --frame:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAbElEQVR4XmNkYGBg8NKT+w+iCYFtlx4xMsIUp/no4VU/a8slsDwTiCCk+NaDF3A1LMjG+ld2YbWlOz0OLo6iAQR+fP2EoomDmw+FD3YSKQBFA7rp2GykzAZiANzToKC7VZRDUA/JEcdIatIAAJNfJWGSeGnBAAAAAElFTkSuQmCC); --pframe:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAaklEQVR4XmNkYGBgyHbR+A+iCYGpe24wMsIUt0xtxau+JrsaLM8EIggp/vz6GVwNC7KxAvKWWG35/HotXBxFAwj8+PAIRROHgBwKH+wkUgCKBnTTsdlImQ3EALinQUEHwoQAyRHHSGrSAABBNCjWvdQbhQAAAABJRU5ErkJggg==);
}
.sec,.tabs button,.subtabs button,.wtop b,.wbody nav button,.wbody article h3,.counters b,.ct b{font-family:"Pixelify Sans",Nunito,sans-serif;letter-spacing:.2px}

/* panels framed in wood */
.mapctl,.tools,.menu,.card,.wikicard,.capture,.login>div{border:8px solid transparent!important;border-image:var(--frame) 4 fill / 8px stretch!important;border-radius:0!important;image-rendering:pixelated;box-shadow:none!important;}
.menu,.card{padding:6px 8px!important}
.dock{border-right:0!important;box-shadow:none!important;}
.dock::after{content:"";position:absolute;top:0;bottom:0;right:-8px;width:8px;background:linear-gradient(90deg,var(--wood) 0 3px,var(--wood2) 3px 6px,var(--ink) 6px 8px);pointer-events:none}
@media (max-width:760px){ .dock::after{display:none} }
.tabs button{border-radius:0!important;border:2px solid transparent!important;border-bottom:0!important;opacity:.75}
.tabs button.on{border-color:var(--line)!important;opacity:1;}

/* buttons, tiles, rows: square with a notch, a flat shadow inside */
.btn,button.primary,.counters button,.tile,.row,.find,.zone.zland,.prow,.pxedit,.confirm,.zpal,.insp .top .back,.subtabs,.lshapes,.pxprojs button,.dmenu,.mswitch i,.empty-deck,.chip,.capgo{border-radius:0!important}
.btn:active,button.primary:active,.tile:active{box-shadow:inset 0 2px 0 rgba(107,68,40,.28)!important;transform:none}
.btn.go,button.primary{background:var(--work2)!important;}
.btn.warn{background:#f2a68f!important}
.counters button{background:#fff8e6}
.counters button.hot{background:var(--butter)}

.subtabs{box-shadow:none!important}
.lshapes{clip-path:var(--cut2)}
.hold .lshapes button.on{background:var(--wood)!important;color:#fff8e6}
.tools button{border-radius:0!important}
.mapctl button{border-radius:0!important}
.mapctl button:hover,.tools button:hover{background:var(--paper2)}
.swatches button{border-radius:0!important;clip-path:var(--cut2)}
.pgsw,.lsw{border-radius:0!important}
.confirm,.pxedit{border-color:var(--line)!important;background:#fff4e0!important}
input,textarea,select,.zname{border-radius:0!important;}
.toast{background:var(--ink)!important;border-radius:0!important;clip-path:var(--cut);color:#fff8e6!important;box-shadow:none!important}
.toast button{border-radius:0!important;background:var(--butter)!important;color:var(--ink)!important;border:2px solid #fff8e6}
.tip{border-radius:0!important;box-shadow:none!important}
.unfold{border-radius:0!important;box-shadow:none!important}
.info,.erasers button[data-tip]::after,.info::after,.dmenu,.wiki .btn{border-radius:0!important}
.info{font-style:normal;}
.info:hover::after,.info.show::after,.erasers button[data-tip]:hover::after{border-radius:0!important;background:var(--ink)!important;clip-path:var(--cut)}
.dmenu{border-color:var(--line)!important;background:#fff8e6!important;clip-path:var(--cut2);box-shadow:none!important}
.wbody nav button.on{background:var(--wood)!important;}
.hotbar{border-radius:0!important}
.hotbar button{border-radius:0!important;}
.zgnd::before{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}

/* Build's categories as pixel icons, with the name on hover */
.tabs.icons{justify-content:flex-start}
.tabs.icons button{justify-content:center;position:relative;}
.ticon{display:grid;place-items:end center;width:30px;height:30px}
.ticon canvas{height:auto!important;max-width:30px!important;max-height:30px!important;image-rendering:pixelated}

.tabs.icons{overflow:visible}
/* (tip handled in app.js) */ .tabs.icons button[data-tip]:hover::after{display:none;content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);white-space:nowrap;background:var(--ink);color:#fff8e6;font:700 12.5px Nunito,sans-serif;padding:4px 8px;z-index:40;clip-path:var(--cut2);pointer-events:none}

.card .insp,.insp{border-radius:0!important}
.card .insp{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
.body .insp{border:8px solid transparent!important;border-image:var(--pframe) 4 fill / 8px stretch!important;box-shadow:none!important;padding:2px 4px 6px!important;}
.toast{width:max-content;max-width:min(520px,calc(100vw - 24px))}
.allp,.sendgrid button,.urgent,.plist,.plist .prow,.waitask,.chips .chip{border-radius:0!important;clip-path:var(--cut2)}

.sendgrid button{box-shadow:inset 0 -3px 0 rgba(107,68,40,.28)!important;border-color:var(--line)!important}
.sendgrid button{background:#fff8e6}
.sendgrid button.go{background:var(--work2)!important}
/* Catch up, simplified (20 Nov): edit title, description and project right on the card; Leave it and Done are the big buttons */

.dproj{position:relative;display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 44px);padding:3px 26px 3px 8px;background:#fff;border:2px solid var(--line);clip-path:var(--cut2);cursor:pointer;font-weight:700;font-size:13px}
.dproj .dot{width:10px;height:10px;flex:none;background:var(--pc)}

.dproj select:focus{outline:none}.dproj:focus-within{box-shadow:0 0 0 2px var(--butter)}
.dproj .car{position:absolute;right:7px;top:50%;transform:translateY(-50%);font-size:11px;opacity:.6;pointer-events:none}

/* a stack picked on the map in Work: a small card with a Catch up button */
.stackcard .stl{margin:6px 0 0;padding:0;list-style:none;font-size:13px}
.stackcard .stl li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:2px 0;opacity:.85}
.stackcard .stl li.pri::before{content:"★ ";color:#e8312f}
/* Work / Build as two round icon buttons on the map (Andrea, 20 Nov) */
/* the map tools in Build sit to the right of the mode buttons */
@media (min-width:1180px){ .dock.folded ~ .tools{left:132px} }
/* dark hover tips for icon buttons */
.tip.dark{background:#3b2416!important;color:#fff8e6;border:0!important;clip-path:none;border-radius:3px!important;padding:3px 8px;font-size:12px;font-weight:700;white-space:nowrap}
.tip.dark kbd{margin-left:4px;padding:0 4px;font-size:10px;background:rgba(255,248,230,.15);border:1px solid rgba(255,248,230,.35);border-radius:2px;color:inherit}
.tip.dark::before{content:"";position:absolute;left:50%;top:-5px;margin-left:-5px;border:5px solid transparent;border-top:0;border-bottom-color:#3b2416}

/* ---- 08-project-page.css ---- */
/* ===== Work: a project's own page in the panel (Andrea, 20 Nov) ===== */
.dock.pfocus .tabs{display:none}
.pv{padding:2px 2px 24px}
.pvbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-2px 0 2px}
.pvzone{font-size:12px;font-weight:700;opacity:.65}
.pvx{flex:none;font-size:15px;font-weight:800;}
.pvx:hover{background:var(--butter)}
.pvhead{display:flex;align-items:center;gap:6px;margin:0 0 10px;border-left:8px solid var(--pc);padding-left:10px}
.pv .pvname{flex:1 1 auto;min-width:0;font-family:"Pixelify Sans",Nunito,sans-serif;font-size:30px;font-weight:600;line-height:1.1;border:2px solid transparent!important;background:transparent!important;padding:2px 4px;margin-left:-4px}
.pv .pvname:hover{border-color:rgba(107,68,40,.25)!important}
.pv .pvname:focus{outline:none;border-color:var(--line)!important;background:#fff!important}
.pvedit{flex:none;padding:2px;border:0;background:transparent;}
.pvedit svg{width:32px;height:32px;display:block}
.pvedit:hover{transform:translateY(-1px)}
.pvtabs .n{margin-left:5px;padding:0 5px;border-radius:2px}
.pvsum{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px;margin-bottom:12px;}
.pvcounts{flex:1 1 auto;display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:700}
.pvcounts span{display:flex;align-items:center;gap:7px}
.pvi{display:inline-grid;place-items:center;width:20px;height:20px;flex:none;font-style:normal}
.pvi.star{background:#fff8e6;color:#e8312f;}
.pvi canvas{max-width:20px;max-height:20px;}
.pv .btn.pvsort{flex:none;justify-content:center;background:#d9a066!important;color:#3b2416!important;border-color:#2e1c12!important}
.pv .btn.pvsort:hover{background:#e8b27a!important}
.pv .btn.pvsort:disabled{opacity:.45;cursor:default}
.tlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.trow{display:flex;align-items:center;gap:8px;transition:opacity .2s}
.trow.pri{border-left:6px solid #e8312f}
.trow.ticked{opacity:.35}
.trow.ticked .tt b{text-decoration:line-through}
.tchk{width:24px;height:24px;flex:none;border:2px solid #3b2416;background:#e6c79c;padding:0;position:relative;box-shadow:inset 0 -3px 0 rgba(59,36,22,.25)}
.tchk:hover::after,.trow.ticked .tchk::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;font-weight:900;font-size:15px;color:#3b2416}
.tchk:hover::after{opacity:.45}
.trow.ticked .tchk::after{opacity:1}
.tchk.ph{opacity:.35;cursor:default;box-shadow:none}
.tchk.ph:hover::after{content:none}
.tt{flex:1 1 auto;min-width:0;border:0;background:none;text-align:left;padding:0;}
.tt b{display:block;font-size:14.5px;line-height:1.3;overflow-wrap:anywhere}
.tt small{display:block;font-size:12px;opacity:.65;margin-top:1px}
.tstar,.tmore{width:28px;height:28px;flex:none;border:2px solid transparent;background:none;line-height:1;padding:0}
.tstar.on{color:#e8312f}
.tstar:hover,.tmore:hover{border-color:var(--line);background:#fff}
.tmore{font-weight:900}
.tadd{display:flex;align-items:center;gap:8px;margin-top:8px;padding:6px 8px 6px 10px;border:2px dashed rgba(107,68,40,.45)}
.tadd input{flex:1;border:0!important;background:transparent!important;font:inherit;font-size:14.5px;padding:4px 0}
.tadd input:focus{outline:none}
.tadd:focus-within{border-style:solid;border-color:var(--line);background:#fff}
.lkrow{display:flex;gap:4px;align-items:center;margin-bottom:4px}
.lkrow input{min-width:0;padding:6px 8px;font:inherit;font-size:13px;border:2px solid var(--line)}
.lkrow input[data-lklabel]{flex:0 0 32%}
.lkrow input[data-lkurl],.lkrow input[data-pdrive]{flex:1 1 auto}
.lkgo,.lkdel{flex:none;width:30px;height:30px;display:grid;place-items:center;border:2px solid var(--line);background:#fff8e6;color:var(--ink);font-weight:800;}
.lkdel:hover{background:#f6c9c4}
.addchips{display:flex;flex-wrap:wrap;gap:6px}
.pv textarea[data-pnote]{width:100%;box-sizing:border-box;font:inherit;font-size:14px;padding:8px;border:2px solid var(--line);resize:vertical}
/* a task's menu */
.ctx{position:fixed;z-index:30;display:none;min-width:220px;max-width:280px}
.ctxm{background:#3b2416;color:#fff8e6;padding:5px;box-shadow:0 4px 0 rgba(0,0,0,.25);display:flex;flex-direction:column;max-height:calc(100vh - 12px);overflow:auto}
.ctxm button{display:flex;align-items:center;gap:7px;text-align:left;border:0;background:none;font:inherit;font-size:13.5px;font-weight:600;padding:6px 9px;}
.ctxm button:hover,.ctxm button:focus-visible{background:rgba(255,248,230,.14);outline:none}
.ctxm button.danger{color:#ffb3a8}
.ctxm hr{border:0;border-top:1px solid rgba(255,248,230,.18);margin:4px 2px}
.ctxm .cxh{font-size:11px;opacity:.55;padding:2px 9px;font-weight:700}
.cxdue{display:flex;align-items:center;gap:6px;padding:4px 9px;font-size:13.5px;font-weight:600}
.cxdue input{flex:1;min-width:0;font:inherit;font-size:12.5px;padding:3px 5px;border:0!important;background:#fff8e6!important;}
.cxdue button{width:auto;padding:3px 6px}
@media (max-width: 760px){ .pv .pvname{font-size:24px} }
.pvcolrow{display:flex;align-items:center;gap:10px}
.pvdot{flex:none;border-radius:50%;border:3px solid var(--ink);}
.pvdot:hover{transform:translateY(-1px)}
.pvcolrow small{font-size:12.5px;opacity:.7}

/* ---- 09-tabrow-and-buildings.css ---- */
/* ===== the tab row: tabs, then Find and New at its right end (Andrea, 20 Nov) ===== */
.dock .dhead.tabrow{display:flex;align-items:stretch;gap:0;overflow:visible;position:relative}
.tabrow .tabs{flex:1 1 auto;min-width:0;background:none!important}
.tabtools{display:flex;align-items:center;gap:4px;padding:4px 6px 4px 2px;flex:none}
.tabtools .find{padding:0;display:grid;place-items:center;cursor:pointer}
.tabtools .find input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;padding:0}
.tabtools .find .fic,.tabtools .tbtn i{display:block;width:24px;height:24px}
.tabtools .find svg,.tabtools .tbtn svg{display:block;width:24px;height:24px}
.tabtools .find.open{position:absolute;z-index:4;left:6px;right:6px;top:5px;bottom:5px;width:auto;height:auto;display:flex;gap:6px;padding:0 8px;cursor:text}
.tabtools .find.open input{position:static;flex:1;height:auto;opacity:1;pointer-events:auto;padding:6px 0}
.tbtn{padding:0;display:grid;place-items:center;}
.tbtn:hover{filter:brightness(1.05)}
/* recent things in the tool bar */
.recentbar{display:flex;gap:3px;align-items:center;padding:0 2px}
.recentbar:empty{display:none}
.recentbar button{width:36px;height:36px;display:grid;place-items:center;}
.recentbar button:hover{border-color:var(--line)}
.recentbar button.on{border-color:var(--ink);background:var(--build)}
.recentbar canvas{max-width:30px!important;max-height:30px!important;}
@media (max-width: 760px){ .recentbar{display:none} }
/* ===== Build: the project headquarters list ===== */
.hqlist{display:flex;flex-direction:column;gap:8px}
.hq{display:grid;grid-template-columns:104px 1fr;gap:0;}
.hq.on{outline:3px solid var(--butter);outline-offset:-3px}
.hq.off .hqgo canvas{opacity:.55;filter:grayscale(.4)}
.hqpic{position:relative;min-height:110px}
.hqgo{width:100%;height:100%;border:0;background:none;padding:6px 4px 26px;display:grid;place-items:center}
.hqgo i{display:grid;place-items:center}
.hqgo canvas{max-width:92px!important;max-height:84px!important;}
.hqgo:hover canvas{transform:translateY(-2px)}
.hqic{border:0;background:none;flex:none}
.hqic svg{display:block;width:26px;}
.hqic:hover,.hqic.open{background:rgba(74,46,30,.12)}
.hqpic .hqcol{position:absolute;left:2px;bottom:2px}
.hqpic .hqdes{position:absolute;right:2px;bottom:2px}
.hqbody{display:flex;flex-direction:column;gap:4px;padding:6px 6px 8px 8px;min-width:0}
.hqtop{display:flex;align-items:center;gap:4px}
.hqtop b{flex:1;min-width:0;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.hqoff{font-size:12px;font-weight:700;color:#b5452f}
.hqfoot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.hqfoot .chip{font-size:12px;padding:3px 8px}
.hqfoot .chip.on{background:var(--butter)}
.hqfoot .linkbtn{font-size:12.5px;font-weight:700}
.hqdrop{grid-column:1 / -1;border-top:2px solid var(--line);padding:8px;background:#fffdf6}
.hqdrop .grid2{margin-bottom:6px}
.hqbinmenu{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.hqbinmenu .btn small{display:block;font-weight:600;opacity:.7;font-size:11.5px}
.lklab{flex:0 0 32%;font-size:12.5px;font-weight:700}
/* paint buckets */
.buckets{display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:2px}
.buckets button{height:36px;padding:2px;border:2px solid transparent;background:none;cursor:pointer;display:grid;place-items:center}
.buckets button svg{width:30px;height:30px;display:block}
.buckets button:hover{background:rgba(74,46,30,.08)}
.buckets button.on{border-color:var(--ink);background:#fff}
.pvdot{width:44px;height:44px;border-radius:0;border:2px solid var(--ink);background:#fff8e6;padding:4px;display:grid;place-items:center;box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}
.pvdot svg{width:32px;height:32px;display:block}
/* utility pages and rows */
.pv h2.pvname.ut{margin:0;padding:2px 0}
.utdesc{margin:-4px 0 12px;font-size:14px;line-height:1.45}
.radios{display:flex;flex-direction:column;gap:6px}
.radio{display:flex;gap:9px;align-items:flex-start;padding:8px 10px;background:#fff8e6;border:2px solid var(--line);cursor:pointer;clip-path:var(--cut2)}
.radio input{margin-top:3px;accent-color:#4a2e1e}
.radio b{display:block;font-size:14px}
.radio small{display:block;font-size:12.5px;opacity:.75;margin-top:1px}
.radio:has(input:checked){background:var(--butter)}
.conns{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.conn{width:100%;box-sizing:border-box;padding:7px 10px 7px 26px;background:#fff8e6;border:2px solid var(--line);position:relative}
.conn::before{content:"";position:absolute;left:9px;top:12px;width:9px;height:9px;background:#b9ad9c;border:2px solid #3b2416}
.conn.on::before{background:#4caf50}
.conn b{display:block;font-size:13.5px}
.conn small{display:block;font-size:12.5px;opacity:.75}
.srcs{list-style:none;margin:0;padding:0;font-size:13px}
.srcs li{display:flex;justify-content:space-between;padding:3px 0;border-bottom:1px dashed rgba(107,68,40,.3)}
.utsum{font-size:12.5px;line-height:1.4;opacity:.8}
.utmap{font-size:12.5px;font-weight:700}
.hq.ut .hqpic{min-height:96px}
/* an open place fills the panel: no tab row over it, and its own ✕ is the only one (on phones too) */
.dock.pfocus .dhead.tabrow{display:none}
.chip:disabled,.btn:disabled{opacity:.5;cursor:default}
.utmap{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.utx{border:0;background:none;padding:0 3px;font-weight:900;font-size:11px;color:#b5452f;cursor:pointer}
.utx:hover{background:#f6c9c4}
.utadd{margin-left:auto}

/* ---- 10-icons-and-tool-bar.css ---- */
/* Andrea's Fanti icons: 16 px drawings shown at 2× so every pixel stays square */
img.fic{display:block;width:32px;height:32px;image-rendering:pixelated;pointer-events:none}
.tabtools .find,.tbtn{width:36px;height:36px}
.tbtn:hover,.tabtools .find:hover{background:rgba(74,46,30,.1)}
.tabtools .find.open{background:#fff8e6!important;}
.tabtools .find.open img.fic{width:16px;height:16px}
.hqic{width:36px;height:36px;padding:2px}
.pvx{display:grid;place-items:center;padding:0}
.pvx img.fic{width:16px;height:16px}
.tools .tic{display:inline-grid;place-items:center;width:32px;height:32px;font-style:normal}
.tools button{padding:2px 8px 2px 4px}

/* ===== level 1: Work and Build as folder tabs on top of the panel (Andrea, 20 Nov) ===== */
/* the round pill on the map only shows while the panel is folded away */
/* ===== the tool bar moves: grab the dots, drop it anywhere or dock it to an edge ===== */
.tgrip{display:grid;grid-template-columns:repeat(2,4px);gap:3px;padding:6px 5px;cursor:grab;flex:none;align-self:stretch;align-content:center;touch-action:none}
.tgrip i{width:4px;height:4px;background:#8a5a2b;display:block}
.tgrip:hover i{background:var(--ink)}
.tools.dragging{opacity:.92;filter:drop-shadow(0 8px 0 rgba(59,36,22,.25))}
.tools.dragging .tgrip{cursor:grabbing}
.tools.vert{flex-direction:column;flex-wrap:nowrap;max-width:none;align-items:stretch}
.tools.vert .tgrip{grid-template-columns:repeat(3,4px);align-self:center;padding:4px 6px}
.tools.vert button b,.tools.vert kbd,.tools.vert .hl{display:none}
.tools.vert button{justify-content:center;padding:2px}
.tools.vert .toolsep,.tools.vert .ursep{width:auto!important;height:2px;align-self:stretch;margin:2px 4px}
.tools.vert .recentbar{flex-direction:column}
.tools.vert .hold{flex-direction:column;align-items:center}
.tools.vert .hold .lshapes{flex-direction:column}
.snapguide{position:fixed;z-index:7;display:none;pointer-events:none;background:rgba(255,224,138,.55);border:2px dashed var(--ink)}
.snapguide.on{display:block}
.snapguide.top,.snapguide.bottom{height:10px}
.snapguide.left,.snapguide.right{width:10px}
@media (max-width: 760px){ .tgrip,.snapguide{display:none!important} }

/* Task Island (20 Nov): two names for utilities, the bugs-and-wishes bubble, privacy */
.utfn{display:block;font:600 12px/1.3 Nunito,sans-serif;opacity:.7;margin-top:2px}
.sec .utfn{display:inline;margin-left:4px;}
.pvhead .utfn{font-size:13px;margin-top:0}
.conn .addr{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;word-break:break-all}
.conn .chip{margin-top:6px}
.mapctl #bChat{display:grid;place-items:center;}
.mapctl #bChat[aria-expanded="true"]{border-color:var(--line)}
.fb{position:fixed;z-index:12;right:12px;top:62px;width:min(340px,calc(100vw - 24px));background:var(--paper);border:3px solid var(--line);border-radius:14px;padding:12px;box-shadow:var(--shadow);display:none;font-size:14px}
.fb.show{display:block}
.fb h3{margin:0 0 6px;font-family:"Pixelify Sans",Nunito,sans-serif;font-size:17px}
.fb p{margin:0 0 8px;line-height:1.4}
.fb textarea{width:100%;min-height:96px;border:2px solid var(--line);border-radius:10px;padding:8px 10px;font:inherit;resize:vertical}
.fb textarea:focus-visible{outline:3px solid var(--butter);outline-offset:1px}
.fb .btns{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}
.fb .sent{background:#fff;border:2px solid var(--line);border-radius:10px;padding:8px 10px}
.privacy p,.privacy li{line-height:1.45;font-size:13.5px}
.privacy ul{margin:4px 0;padding-left:18px}
@media (max-width:760px){ .fb{top:auto;bottom:calc(84px + env(safe-area-inset-bottom));right:8px} }


/* ---- 11-catchup.css ---- */
/* ---------- Catch up as a deck of cards (20 Nov evening) ---------- */
.dk{display:flex;flex-direction:column;gap:10px;padding:2px 2px 6px;position:relative}
.dk-top{display:flex;align-items:center;gap:10px}
.dk-prog{flex:1;overflow:hidden}
.dk-prog i{display:block;height:100%;transition:width .35s ease}
.dk-left{font:600 13px "Pixelify Sans",Nunito,sans-serif;white-space:nowrap}
.dk-undo{width:32px;height:30px;font-weight:800;}
.dk-stack{position:relative;}
.dk-stack.g1{padding-bottom:7px}.dk-stack.g2{padding-bottom:14px}
.dk-ghost{position:absolute;left:10px;right:10px;bottom:7px;clip-path:var(--cut2);opacity:.75}
.dk-ghost.g2{left:20px;right:20px;bottom:0;opacity:.45}
.dk-card{position:relative;z-index:2;display:flex;flex-direction:column;gap:8px;min-height:clamp(220px,34vh,360px);padding:14px 16px 40px;touch-action:pan-y;user-select:none;-webkit-user-select:none;transition:transform .28s cubic-bezier(.2,.9,.3,1.25)}
.dk-card.dragging{transition:none;cursor:grabbing}
.dk-card.enter{animation:dk-rise .26s cubic-bezier(.2,.9,.3,1.2)}
@keyframes dk-rise{from{transform:translateY(10px) scale(.96);opacity:.4}to{transform:none;opacity:1}}
.dk-card.pri{box-shadow:inset 6px 0 0 #e8312f,inset 0 -4px 0 rgba(107,68,40,.18)}
.dk-head{display:flex;align-items:center;gap:8px}
.dk-dest{display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 46px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dk-dest i{width:10px;height:10px;flex:none;background:var(--pc)}
.dk-dest.none{background:var(--butter)}
.dk-dest .car{font-size:10px;opacity:.6;margin-left:2px}
.dk-star{margin-left:auto;width:36px;height:36px;flex:none;line-height:1;}
.dk-star.on{background:#e8312f;color:#ffe14a}
.dk-title{display:block;text-align:left;border:0;background:none;padding:0;margin:6px 0 0;cursor:text;word-break:break-word}
.dk-body{margin:0;font-size:15.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word;opacity:.88}
textarea.dk-title,textarea.dk-body{border:2px solid var(--line);background:#fff;padding:6px 8px;resize:vertical;user-select:text;-webkit-user-select:text;font-family:inherit}
textarea.dk-title{font:700 19px/1.3 Nunito,sans-serif}
textarea.dk-body{font-size:15px;opacity:1}
.dk-editdone{display:flex;justify-content:flex-end}
.dk-due{margin:0;font-size:13px;font-weight:700;opacity:.75}.dk-due.late{color:#b3261e;opacity:1}
.dk-i{position:absolute;left:12px;bottom:10px;width:24px;height:24px;border:2px solid rgba(107,68,40,.45);background:none;border-radius:50%;font:800 12px/1 Nunito,sans-serif;padding:0}
.dk-i[aria-expanded="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.dk-info{margin-top:4px;padding:10px 12px;background:#f6ebd2;border:2px dashed rgba(107,68,40,.35);font-size:13px;user-select:text;-webkit-user-select:text}
.dk-info dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0}
.dk-info dt{font-weight:800;opacity:.6}.dk-info dd{margin:0;word-break:break-word}
.dk-infobtns{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.dk-infobtns .btn{font-size:12.5px;padding:4px 8px}
/* stamps that fill in while you drag */
.dk-stamp{position:absolute;top:18px;z-index:3;padding:4px 10px;border:3px solid currentColor;font:600 18px "Pixelify Sans",Nunito,sans-serif;text-transform:uppercase;letter-spacing:.5px;background:rgba(255,250,240,.9);pointer-events:none;opacity:0;white-space:nowrap;max-width:70%;overflow:hidden;text-overflow:ellipsis}
.dk-stamp.st-r{left:14px;color:#2f7a3a;transform:rotate(-8deg);opacity:var(--pr,0)}
.dk-stamp.st-l{right:14px;color:#8a5a34;transform:rotate(8deg);opacity:var(--pl,0)}
.dk-stamp.st-d{left:50%;top:40%;transform:translate(-50%,-50%) rotate(-6deg) scale(1.2);color:#2f7a3a;font-size:24px}
.dk-stamp.st-u{left:50%;top:40%;transform:translate(-50%,-50%) rotate(-4deg);color:#3a5f8a}
.dk-card.armed .dk-stamp.st-r,.dk-card.armed .dk-stamp.st-l{animation:dk-thunk .18s ease-out}
@keyframes dk-thunk{50%{scale:1.15}}
.dk-card.fly-right{transition:transform .23s ease-in,opacity .23s ease-in;transform:translateX(125%) rotate(16deg)!important;opacity:0}
.dk-card.fly-left{transition:transform .23s ease-in,opacity .23s ease-in;transform:translateX(-125%) rotate(-16deg)!important;opacity:0}
.dk-card.fly-up{transition:transform .23s ease-in,opacity .23s ease-in;transform:translateY(-40%) scale(.85)!important;opacity:0}
.dk-card.fly-done{transition:transform .23s cubic-bezier(.5,-.4,.7,.6),opacity .23s ease-in;transform:scale(.88)!important;opacity:0}
.dk-card.fly-right .st-r,.dk-card.fly-left .st-l,.dk-card.fly-done .st-d,.dk-card.fly-up .st-u{opacity:1}
/* the three big choices */
.dk-actions{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:6px 0 2px;}
.dk-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;font-weight:800}
.dk-btn .ic{font-size:24px;line-height:1}
.dk-btn small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dk-btn.file{background:var(--butter)}
.dk-btn:active{transform:translateY(2px);box-shadow:inset 0 -1px 0 rgba(107,68,40,.18)}
.dk-btn kbd{display:none}
.dk-hint{margin:0;text-align:center;font-size:12px;opacity:.55;font-weight:700}
/* where does it go? */
.dk-sheet{padding:12px;animation:dk-rise .2s ease-out}
.dk-pickhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.dk-pickhead b{font:600 16px "Pixelify Sans",Nunito,sans-serif}
.dk-pq{width:100%;padding:9px 10px;font:inherit;font-size:16px;margin-bottom:8px;}
.dk-projs{display:grid;grid-template-columns:minmax(0,1fr);overflow-x:hidden;gap:6px;max-height:min(42vh,320px);overflow:auto;padding:2px}
.dk-pb{min-width:0;display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 8px;border:2px solid var(--line);border-left:7px solid var(--pc);text-align:left;font-weight:700;font-size:14px;}
.dk-pb i{display:none}
.dk-pb span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dk-pb kbd{font-size:10px;opacity:.5}
.dk-h4{margin:12px 2px 6px;font:800 12px Nunito,sans-serif;text-transform:uppercase;letter-spacing:.04em;opacity:.65}
.dk-places{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px}
.dk-pl{display:flex;flex-direction:column;align-items:flex-start;min-height:48px;padding:6px 9px;text-align:left;}
.dk-pl b{font-size:14px}.dk-pl small{font-size:11.5px;opacity:.7}
/* the end */
.dk-end{min-height:300px;justify-content:center;overflow:hidden}
.dk-endcard{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:30px 16px}
.dk-endcard b{font:600 24px "Pixelify Sans",Nunito,sans-serif}
.dk-endcard small{font-size:14px;opacity:.75;max-width:280px}
.dk-sum{margin:6px 0 0;font-weight:800;font-size:14px}
.dk-endcard .btns{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.dk-party{position:absolute;inset:0;pointer-events:none;z-index:1}
.dk-party i{position:absolute;top:-12px;left:var(--x);width:8px;height:8px;background:var(--c);animation:dk-fall 1.6s var(--d) cubic-bezier(.3,.6,.6,1) forwards}
@keyframes dk-fall{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(340px) rotate(540deg);opacity:0}}
@media (max-width:760px){
  .dk-card{min-height:clamp(260px,46vh,520px);padding:16px 18px 44px}
  .dk-body{font-size:16.5px}
  .dk-actions{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .dk-btn{min-height:70px}
}
@media (prefers-reduced-motion:reduce){
  .dk-card,.dk-card.enter,.dk-sheet{animation:none!important;transition:none!important}
  .dk-party{display:none}
}
/* stamps sit in the middle of the card, away from the project chip */
.dk-stamp.st-r{top:36%;left:18px}
.dk-stamp.st-l{top:36%;right:18px}
/* phones: the card fills the screen and the three buttons sit under the thumb */
@media (max-width:760px){
  body.sheet .dk:not(.dk-end){min-height:calc(100dvh - 76px - env(safe-area-inset-bottom))}
  .dk:not(.dk-end) .dk-stack{flex:1;display:flex;flex-direction:column}
  .dk:not(.dk-end) .dk-card{flex:1}
}
/* while choosing where it goes, the card steps back so the choices fit on the screen */
.dk.picking{min-height:0!important}
.dk.picking .dk-stack{flex:none!important}
.dk.picking .dk-card{flex:none!important;min-height:0!important;padding-bottom:40px}
.dk.picking .dk-body{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* a new place made from the picker: a name and a button on one line, the + buttons set apart by a dashed edge */

/* ---- 12-later-additions.css ---- */
/* phones, Build: the hotbar is a tool switch (Map, Move, Remove, the last thing), then Catalog and Done */
@media (max-width:760px){
  .hotbar button.tool i,.hotbar button.slot i{display:grid;place-items:center;height:30px}
  .hotbar button.tool i img.fic{width:28px;height:28px;image-rendering:pixelated}
  .hotbar button.tool i svg{width:26px;height:26px}
  .hotbar button.slot i canvas{max-width:30px!important;max-height:30px!important;width:auto!important;image-rendering:pixelated}
  .hotbar button b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
  .hotbar button.slot{border-style:dashed}
  .hotbar button.slot.on{border-style:solid}
}

/* the way back from a view inside a tab (Waiting in Places, Zones in Projects) */
.linkbtn.back{display:block;margin:0 0 8px;font-weight:700}
/* PC: Find and New sit beside Work and Build, so the four Work tabs get the whole row (review B1) */
@media (min-width:761px){
  .dock .dhead.tabrow{position:static}
  .tabrow .tabtools{position:absolute;top:10px;right:8px;padding:0;}
  .tabrow .tabtools:has(.find.open){left:8px;height:40px;z-index:5}
  .tabrow .tabtools .find.open{left:0;right:0;top:0;bottom:0;}
}

/* a project page whose building isn't on the map yet offers to put it there */
.pvplace{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:8px 0;padding:8px 10px;background:#fff3c4;border:2px dashed var(--line);font-size:13.5px;font-weight:700}
.pvplace .btn{flex:none}

/* Build's tab icons carry a short name under them */
.tabs.icons button{flex-direction:column;gap:1px;min-width:0;flex:1 1 0}
.tabs.icons .tl{font-size:10.5px;line-height:1.1;}

/* one focus style for everything you can reach with Tab: a dark ring with a butter halo, clear on paper and wood (review I) */
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--butter)}
#capTitle:focus-visible,.pv .pvname:focus-visible,.tadd input:focus-visible,.dproj select:focus-visible{outline:3px solid var(--ink);outline-offset:1px}
.find:focus-within{outline:3px solid var(--ink);outline-offset:1px}
/* phones: everything you tap is at least 44 px, Apple's smallest comfortable size (review D3, I) */
@media (max-width:760px){
  .tabs button,.linkbtn,.toast button,.mapctl button{min-height:44px}
  .mapctl button{min-width:44px}
  .tabtools .sheetx{width:44px;height:44px}
  .row .star{min-width:44px;min-height:44px}
  .zhead .zgnd,.zhead .zn,.zhead .zpaint,.zhead .zdel{min-height:44px}
  .zhead .zpaint,.zhead .zdel{min-width:44px}
  .info::before{content:"";position:absolute;inset:-13px}
}
/* phones: Find and New are in the bottom bar, so the sheet's tab row keeps only the tabs and ✕.
   Find stays focusable (the bar's Find button opens it), it is just out of sight until then. */
@media (max-width:760px){
  .tabtools .find:not(.open){position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
}

/* Links on a project's page: one folding list, then a field to paste a new one */
.lkacc summary{cursor:pointer;padding:6px 0;}
.lkacc .lkic{flex:none;width:22px;text-align:center}
.lkacc .lklab{flex:0 0 auto;font-weight:700;font-size:13px}
.lkpaste{width:100%;margin-top:6px;font:inherit;padding:8px 10px;}

/* the Functions tab on a building (16-functions.js) */
.fncard{margin:10px 0;padding:10px 12px;}
.fncard.off{opacity:.6}
.fnhead{display:flex;align-items:center;gap:10px}
.fnhead b{flex:1;font-size:15px}
.fnon{display:flex;align-items:center;gap:5px;font-size:13px;cursor:pointer}
.fnon input{accent-color:#4a2e1e}
.fnsays{margin:6px 0 8px;font-size:13px;line-height:1.35}
.fnset{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px}
.fnset label{display:flex;align-items:center;gap:6px}
.fnset input[type=number]{width:58px}
.fnset select,.fncond select{max-width:100%;font:inherit;font-size:13px}
.fnconds{display:flex;flex-direction:column;gap:6px;margin-top:10px;font-size:13px}
.fnconds .chip{align-self:flex-start}
.fncond{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fnhits{margin:8px 0 0;font-size:12.5px;opacity:.75}
.fnaddwrap{position:relative;margin-top:12px}
.fnpick{display:flex;flex-direction:column;margin-top:6px;background:#fffaf0;border:2px solid var(--line);box-shadow:0 3px 0 var(--line);max-width:340px}
.fnpick button{display:block;text-align:left;padding:8px 10px;background:none;border:0;border-bottom:1px solid #e8dcc0;}
.fnpick button:last-child{border-bottom:0}
.fnpick button:hover,.fnpick button:focus-visible{background:var(--butter)}
.fnpick b{display:block;font-size:14px}
.fnpick small{display:block;font-size:12px;opacity:.75;margin-top:2px}

/* task types: the values of a category, each with its look; the little pictures are sprites (16-tasktypes.js) */
.ttset input[type=text]{width:9em;font:inherit;font-size:13px}
.ttval{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ttval input[type=text]{width:8em;font:inherit;font-size:13px}
.ttpic{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:none}
.ttpic canvas{max-width:28px;max-height:28px;image-rendering:pixelated}

/* ---- 13-build-drawer.css ---- */
/* Phones, Build (Andrea, 23 Nov, after Fanti's home editor): tools in a rail on the left, categories in the
   bottom bar, and a drawer that opens at half height. Two type faces only: Pixelify Sans for names and
   headings, Nunito for everything you read. Thin lines and quiet labels so the town is what you see. */
.sgrab,.rail{display:none}
@media (max-width:760px){
  /* the drawer */
  body.mode-build .dock{top:auto;height:56%;transition:transform .22s ease,height .22s ease;box-shadow:0 -3px 0 rgba(74,46,30,.35)!important}
  body.mode-build.sheetfull .dock{height:calc(100% - env(safe-area-inset-top))}
  body.mode-build .dock.dragging{transition:none}
  body.mode-build .sgrab{display:grid;place-items:center;height:20px;background:var(--wood);touch-action:none;cursor:grab;flex:none}
  .sgrab span{width:44px;height:5px;background:var(--wood2);box-shadow:0 1px 0 rgba(255,248,230,.35)}

  /* the bottom bar is Build's categories */
  body.mode-build .hotbar{gap:2px;background:var(--wood)!important}
  body.mode-build .hotbar button.cat{height:56px;border:0;border-radius:0}
  body.mode-build .hotbar button.cat:active{background:var(--wood2);transform:none}
  .hotbar button.cat i{display:grid;place-items:center;}
  .hotbar button.cat i canvas,.hotbar button.cat i img{max-height:28px!important;max-width:34px!important;width:auto!important;}
  .hotbar button.cat i svg{width:24px;height:24px}
  .hotbar button.cat b{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:500;font-size:10px;letter-spacing:0;padding:0}

  /* the tool rail: on every tab (Andrea, 25 Nov); Work has Map and Move, Decor also Remove and the recent things */
  .rail{display:flex;flex-direction:column;align-items:center;gap:4px;position:fixed;z-index:9;left:8px;top:calc(64px + env(safe-area-inset-top));
    padding:5px;background:rgba(74,46,30,.88);clip-path:var(--cut)}
  .rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:48px;border:0;background:transparent;color:#fff8e6;padding:0;gap:0}
  .rail button i{font-style:normal;display:grid;place-items:center;height:28px;font-size:19px}
  .rail button i img.fic{width:26px;height:26px;}
  .rail button i svg{width:24px;height:24px}
  .rail button i canvas{max-width:32px!important;max-height:30px!important;width:auto!important;image-rendering:pixelated}
  .rail button b{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:500;font-size:9.5px;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rail button.slot{height:44px;background:rgba(255,248,230,.1)}
  .rail button.on{background:var(--butter);color:var(--ink);clip-path:var(--cut2)}
  .rail hr{width:32px;border:0;border-top:2px solid rgba(255,248,230,.25);margin:2px 0}
  .rail button[data-rail=undo],.rail button[data-rail=redo]{height:36px}
  body.sheet .rail,body.capturing .rail{display:none!important}

  /* the half drawer leaves the top of the map free, so the map controls stay there */
  body.mode-build.sheet:not(.sheetfull) .mapctl{display:flex!important}
  body.mode-build .tools .ur,body.mode-build .tools .ursep{display:none}
  body.mode-build .tools:has(.hold > .hl.muted:only-child){display:none}
  body.mode-build .card{bottom:calc(84px + env(safe-area-inset-bottom))}

  /* calmer tiles in the drawer: three across, a quiet name under each */
  body.mode-build .dock .grid2{grid-template-columns:repeat(3,1fr);gap:8px}
  body.mode-build .dock .tile{min-height:96px;box-shadow:inset 0 -2px 0 rgba(107,68,40,.18)!important}
  body.mode-build .dock .tile{font-size:11px;font-weight:600;gap:6px;padding:8px 4px 6px}
  body.mode-build .dock .tile canvas{max-width:72px;max-height:60px}
  body.mode-build .dock h3.sec{font-size:14px;margin:16px 2px 8px;opacity:.85}
  body.mode-build .dock h3.sec small{font-weight:600;opacity:.5}

  /* the drawer's own tab row: the categories again, with no ✕ (tap the open one or drag the handle down) */
  body.mode-build .dock #sheetX{display:none}
  body.mode-build .dock .tabs.icons .tl{font-size:10px;letter-spacing:0}
  /* sub-groups: one line of chips you can scroll sideways */
  body.mode-build .dock .subtabs{flex-wrap:nowrap;overflow-x:auto;margin:0 -10px 12px;padding:0 10px;scrollbar-width:none}
  body.mode-build .dock .subtabs::-webkit-scrollbar{display:none}
}
/* carrying something on a phone: the tools slide off the screen until you let go, so you see where it lands */
@media (max-width:760px){
  .rail,.hotbar,.mapctl,body.mode-build .dock{transition:transform .2s ease,height .22s ease}
  body.carrying .rail{transform:translateX(calc(-100% - 16px))}
  body.carrying .mapctl{transform:translateY(calc(-100% - 16px - env(safe-area-inset-top)))}
  body.carrying .hotbar,body.carrying.mode-build .dock{transform:translateY(calc(100% + 16px + env(safe-area-inset-bottom)))!important}
}

/* ---- 14-fanti-skin.css ---- */
/* =====================================================================
   Fanti skin (Andrea, 23 Nov): cleaner pixel look borrowed from her Fanti app.
   One palette (rose-brown panel, cream text, gold for the main action), one font (Pixelify Sans),
   one outline per panel, no shadows, no wood frames, no notched corners. Rows are set apart by space, not borders.
   Loaded last, so it wins over the older skin in 07-pixel-skin.css.
   ===================================================================== */
/* the Fanti roles (--f-*) are named in 00-base.css; this skin points the older roles at them */
:root{ --ink:var(--f-cardink); --line:var(--f-line); }
body,button,input,textarea,select{letter-spacing:.2px}
/* the panel */
.dock{background:var(--f-panel)!important;color:var(--f-text)}
.dock::after{background:var(--f-line)!important;width:3px!important;right:-3px!important}
.dhead{padding:8px 10px!important}
.body{padding:10px!important}
/* mode tabs + tabs: flat, text only, the chosen one lifted */
.tabs{padding:0 10px 0!important;gap:4px!important}
.tabs button{clip-path:none!important;border:0!important;opacity:1!important;text-transform:uppercase;font-size:12px!important;padding:8px 10px!important;background:transparent!important}
.tabs button.on{background:var(--f-panel)!important;color:var(--f-text)!important;}
.tabs .n{background:var(--f-gold)!important;color:var(--f-line)!important;border-radius:0!important;font-family:"Pixelify Sans"!important}
/* rows: no borders, no shadows, a flat inset colour, 2px gaps */
.row,.prow,.zone.zland,.tile,.btile{background:var(--f-row)!important;border:0!important;box-shadow:none!important;clip-path:none!important;color:var(--f-text)!important;margin-bottom:2px!important}
.row:hover,.prow:hover,.tile:hover{background:var(--f-rowhi)!important}
.row small,.row .sub,.row .meta,.row span:not(.dot){color:var(--f-mute)!important}
.tile.on,.row.sel{background:var(--f-deep)!important;}
.sec,.zhead{font-size:14px!important;opacity:.9}
/* buttons: light card buttons, gold only for the one key action (see 15-fanti-frames.css), one dark outline */
.btn,button.primary,.chip,.counters button,.dk-btn,.dk-undo,.dk-star,.sendgrid button,.subtabs button,.insp .top .back{
  background:var(--f-card)!important;color:var(--f-cardink)!important;border:2px solid var(--f-line)!important;box-shadow:none!important;clip-path:none!important;border-radius:0!important;text-transform:uppercase;font-size:12px!important}
.subtabs{background:none!important;clip-path:none!important;gap:4px!important;border:0!important}
.subtabs button.on{background:var(--f-line)!important;}
/* the catch-up card: one light card, no ghosts, no inner boxes */
.dk-card{color:var(--f-cardink)!important;box-shadow:none!important;clip-path:none!important}
.dk-ghost{background:var(--f-deep)!important;border:0!important;opacity:1!important;height:6px!important;bottom:0!important}
.dk-ghost.g2{display:none}
.dk-dest{background:transparent!important;border:0!important;clip-path:none!important;padding:0!important;font:600 12px "Pixelify Sans"!important;text-transform:uppercase;}
.dk-star{border:0!important;background:transparent!important}
.dk-prog{background:var(--f-deep)!important;clip-path:none!important;height:6px!important}
.dk-prog i{background:var(--f-gold)!important}
.dk-actions{background:none!important}
.dk-btn small{font-size:11px!important}
.dk-i{border-color:color-mix(in srgb, var(--f-cardink) 40%, transparent)!important}
.body p,.body .hint,.hintline,.dk-hint,.muted{color:var(--f-mute)!important}
/* floating parts on the map: same flat panel, no wood frame, no drop shadow */
.mapctl,.tools,.menu,.card,.wikicard,.capture{border:2px solid var(--f-line)!important;border-image:none!important;background:var(--f-panel)!important;filter:none!important;color:var(--f-text)}
.mapctl button,.tools button{color:var(--f-text)!important;background:transparent!important}
.tools button.on{background:var(--f-row)!important;border:0!important;}
.toast{background:var(--f-line)!important;clip-path:none!important;color:var(--f-text)!important}
.toast button{background:var(--f-gold)!important;border:0!important;color:var(--f-line)!important}
.unfold{background:var(--f-panel)!important;color:var(--f-text)!important;clip-path:none!important;border:2px solid var(--f-line)!important}
.lbl,.maplabel{font-family:"Pixelify Sans"!important}
/* phone hotbar */
.hotbar{background:var(--f-panel)!important;border:0!important;border-top:2px solid var(--f-line)!important;box-shadow:none!important;padding:6px!important}
.hotbar button{background:transparent!important;border:0!important;clip-path:none!important;color:var(--f-text)!important;text-transform:uppercase;font-size:11px!important}
.hotbar button.on,.hotbar button[data-hb=new]{background:var(--f-row)!important}
.tip{background:var(--f-line)!important;color:var(--f-text)!important;border:0!important;clip-path:none!important}
input,textarea,select,.find{background:var(--f-card)!important;color:var(--f-cardink)!important;border:2px solid var(--f-line)!important;clip-path:none!important}
.find{border:0!important;}
/* header rows */
.dock .dhead.tabrow,body.mode-build .dock .dhead.tabrow{background:var(--f-deep)!important;border-bottom:0!important}
.tabs button{color:var(--f-tabmute)!important}
.tbtn{clip-path:none!important;}
.tabtools .find{background:transparent!important}
.tabtools .find svg,.tabtools .tbtn svg{filter:none}
/* building cards in Build */
.hq{clip-path:none!important;box-shadow:none!important;}
.hqpic{background:var(--f-deep)!important;border-right:0!important}
.row .pvdot,.row i.dot{outline:0}
.sheetx{background:transparent!important;border:0!important;}
.tabs.icons button{font-size:10px!important}
/* Build's categories on a PC: icon only, the name shows as a tip on hover (Andrea, 23 Nov) */
@media (min-width:761px){
  .tabs.icons .tl{display:none}
  .tabs.icons button{padding:8px 4px!important}
  .ticon{width:32px;height:32px}
}
/* a pack's functions as small tags instead of a sentence */
.fntags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.fntag{background:var(--f-deep);font-size:11px;text-transform:uppercase;padding:2px 6px}
.srcs li{background:var(--f-row);border:0!important;color:var(--f-text)}
.note{color:var(--f-mute)!important}
.hq.pack .hqpic{display:grid;place-items:center;min-height:0}
/* function cards: a flat row like the others, so their text reads on the panel */
.fncard{background:var(--f-row)!important;border:0!important;clip-path:none!important;}
.fncard .fnsays,.fncard .fnhits,.fncard small,.fncard label{opacity:1!important}
.fncard .fnrun{margin-top:8px}
/* Work's three tabs fit the panel with the longer name Go through */
.tabs:not(.icons) button{padding:8px 7px!important}

/* ---- 15-fanti-frames.css ---- */
/* =====================================================================
   Fanti frames (Andrea, 23 Nov): her own polished pixel boxes from the Fanti game, drawn at 2x.
   Sources in tools/sprites/fanti-frames/. Each is a 9-slice: corners stay sharp, the middle stretches.
   ===================================================================== */
:root{
  --fr-panel:url(sprites/ui/panel.png); --fr-row:url(sprites/ui/row.png); --fr-btn:url(sprites/ui/btn-light.png);
  --fr-btn-dark:url(sprites/ui/btn-dark.png); --fr-gold:url(sprites/ui/btn-gold.png); --fr-card:url(sprites/ui/card-light.png);
  --fr-tab:url(sprites/ui/tab-light.png); --fr-tab-dark:url(sprites/ui/tab-dark.png);
}
/* the panel: the wood-grain board from Fanti's menus */
.body{background:var(--f-panel) url(sprites/ui/grain.png) 0 0 / 224px auto repeat!important;image-rendering:pixelated}
/* rows and cards in lists: the small Fanti box */
.row,.prow,.hq,.srcs li{border:8px solid transparent!important;border-image:var(--fr-row) 4 fill / 8px stretch!important;background:none!important;}
.row:hover,.prow:hover{filter:brightness(1.06)}
.row.sel{border-image:url(sprites/ui/row-dark.png) 4 fill / 8px stretch!important}
/* Buttons have three levels (Andrea, 23 Nov):
   light   = every ordinary button; hover is a shade lighter.
   pressed = Fanti's dark button: what is chosen or held down looks pushed in, not lifted out.
   gold    = only the one key action on a screen (.key, New, Done on the catch-up card). Gold is rare on purpose. */
.btn,.chip,.counters button,.dk-btn,.dk-undo,.sendgrid button,.subtabs button,.insp .top .back,.recentbar button,.seg button{
  border:12px solid transparent!important;border-image:var(--fr-btn) 7 fill / 12px stretch!important;background:none!important;
  color:var(--f-text)!important;padding:0 4px!important;image-rendering:pixelated}
.btn:hover,.chip:hover,.dk-btn:hover,.sendgrid button:hover,.subtabs button:hover,.seg button:hover,.insp .top .back:hover{filter:brightness(1.1)}
.subtabs button.on,.seg button.on,.chip.on,.sendgrid button.on,
.btn:active,.chip:active,.dk-btn:active,.sendgrid button:active,.subtabs button:active,.seg button:active,.insp .top .back:active{
  border-image:var(--fr-btn-dark) 7 fill / 12px stretch!important;filter:none!important;color:var(--f-text)!important;
  padding-top:2px!important;padding-bottom:0!important}
/* chip with ✕ (.chip.chipx): a choice that is made and can be taken off. The label opens the choice again, the ✕ inside clears it.
   Two buttons in one chip; use chipXHTML() to make one. */
.chip.chipx{display:inline-flex!important;align-items:center;gap:2px;max-width:100%;padding-right:2px!important}
.chipx > button{display:inline-flex;align-items:center;gap:6px;min-width:0;background:none!important;border:0!important;border-image:none!important;
  box-shadow:none!important;clip-path:none!important;padding:0!important;font:inherit;color:inherit}
.chipx > button:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chipx > .chipx-x{margin-left:6px;padding:2px 6px!important;font-size:14px}
.chipx .dot{width:10px;height:10px;flex:none;border:2px solid var(--f-line)}
.chipx > .chipx-x:hover,.chipx > .chipx-x:focus-visible{color:var(--f-gold)!important}
.tile.on{box-shadow:inset 0 4px 0 var(--f-line),inset 0 -2px 0 var(--f-rowhi)!important}
.btn.key,.capgo,.dk-btn.go,.dk-btn.done,.tbtn{
  border:10px solid transparent!important;border-image:var(--fr-gold) 5 fill / 10px stretch!important;background:none!important;color:var(--f-line)!important}
.btn.key:active,.capgo:active,.dk-btn.go:active,.dk-btn.done:active,.tbtn:active{border-image:var(--fr-gold) 5 fill / 10px stretch!important;filter:brightness(.9)!important}
/* in a deck, Done is the gold one (Andrea, 23 Nov: the aim is to get things done); putting away or choosing is a plain button */
.btn[disabled]{filter:grayscale(.5) opacity(.7)}
/* the catch-up card: Fanti's light dialogue card */
.dk-card{border:12px solid transparent!important;border-image:var(--fr-card) 6 fill / 12px stretch!important;background:none!important;}
/* mode tabs: Fanti's tabs, the chosen one light */
/* icons from Fanti on the phone bar and the tabs */
.hotbar i img.fic,.ticon img.fic{height:32px;display:block}
.ticon img.fic{width:30px;height:30px}
.subtabs button,.subtabs button.on,.subtabs button:active{border-width:8px!important;border-image-width:8px!important;padding:0 2px!important}
.subtabs button.on,.subtabs button:active{padding-top:2px!important}
/* a tab row never squeezes: tabs that do not fit go to a new line. The Build drawer scrolls instead (13-build-drawer.css) */
.subtabs{flex-wrap:wrap;flex-shrink:0;overflow:visible}
/* the inspector: light text on the dark Fanti box, never on cream. A building's card stands alone in the panel, so it needs no box. */
.body .insp{border:8px solid transparent!important;border-image:url(sprites/ui/row-dark.png) 4 fill / 8px stretch!important;}
.body .insp[data-insp=lot]{border:0!important;border-image:none!important;padding:0!important}
.insp .top .kind{color:var(--f-mute)!important;opacity:1!important}
.insp .top .ltabs{min-width:0}
.insp .top .ltabs button{flex:1 1 auto;min-width:0;font-size:11px!important}
/* a project's or utility's page: the same Fanti rows and light text as the lists (its task rows were cream with light text) */
.pv .pvname,.pv h2.pvname.ut{color:var(--f-text)!important}
.pv .pvname:focus{background:var(--f-deep)!important}
.pvzone,.utfn,.utdesc{opacity:1!important}
.pvx{border:12px solid transparent!important;border-image:var(--fr-btn) 7 fill / 12px stretch!important;background:none!important;clip-path:none!important;
  box-shadow:none!important;width:40px!important;height:40px!important;}
.pvx:hover{filter:brightness(1.1)}
.pvsum{border:8px solid transparent!important;border-image:url(sprites/ui/row-dark.png) 4 fill / 8px stretch!important;background:none!important;clip-path:none!important;color:var(--f-text)!important}
.trow{border:8px solid transparent!important;border-image:var(--fr-row) 4 fill / 8px stretch!important;background:none!important;clip-path:none!important;
  box-shadow:none!important;padding:2px 4px 2px 6px!important;}
.trow:hover{filter:brightness(1.06)}
.trow.pri{border-left-width:8px!important;box-shadow:inset 4px 0 0 var(--f-pri)!important}
.trow .tstar.on{color:var(--f-gold)!important}
.tadd{border-color:var(--f-mute)!important;}
.tadd input{color:var(--f-text)!important}
.tadd:focus-within{background:var(--f-deep)!important}
.pvtabs button{font-size:11px!important}
.tadd input::placeholder{color:var(--f-mute)!important;opacity:1}
/* Build → Places: the New place row, and a plot's little swatch */
.newplace{margin:0 0 10px}
.newplace b{display:block;font-size:13px;margin:0 0 4px;}
.newplace .btns{display:flex;gap:4px;margin:0}
.newplace .btn{flex:1 1 auto;font-size:11px!important}
.plotsw{display:block;width:56px;height:40px;background:var(--f-plot);border:2px dashed var(--f-line);transform:skewY(-20deg)}
.fntags .chip{font-size:11px!important;margin-left:auto}
.fntag.off{opacity:.5}
.hq .utdesc{display:block;font-size:11px;margin:2px 0 4px}
/* catch up: the dock's picture top left, to find it on the map */
.dk-dock{flex:none;width:40px;height:36px;padding:0;border:0;background:none;display:grid;place-items:center}
.dk-dock canvas{width:auto!important;height:34px!important;max-width:40px!important;}
.dk-dock:hover{filter:brightness(1.15)}
body.mode-build #hotbar{flex-wrap:wrap}
/* text on the light card is dark: the panel's light paragraph colour made a card's description vanish (Andrea, 23 Nov) */
.dk-card p,.dk-card .dk-body,.dk-card .dk-due,.dk-card .dk-i,.dk-card dt,.dk-card dd{color:var(--f-cardink)!important;opacity:1!important}
.dk-card .dk-due.late{color:var(--f-late)!important}
/* a symbol on a gold button is dark, like its word: the green check vanished in the gold */
.btn.key img.fic,.dk-btn.go img.fic,.dk-btn.done img.fic,.capgo img.fic{filter:brightness(0) opacity(.78)}
/* the New button's plus keeps its colours: darkened, the round icon is only a black disc */
.tabtools .tbtn img.fic{width:24px;height:24px}
/* Readable everywhere (Andrea, 23 Nov: "I can't see the text"). Quiet text is a lighter colour, never see-through:
   a half-clear light text on the brown panel fell under 3:1. */
.dock .note,.dock small,.dock label,.dock .dk-hint,.dock kbd,.dock .linkbtn,.dock .info,.dock .zgrip,.dock .zpaint,.dock .zdel,
.dock .pvzone,.dock .utfn,.dock .utdesc,#capture .caplast,#capture .note{opacity:1!important;color:var(--f-mute)!important}
.dock .hq b,.dock .row b,.dock .tstar,.dock .tmore,.newplace b{color:var(--f-text)!important}
.dock .tstar.on,.dock .star.on{color:var(--f-gold)!important}
.dock .star:not(.on){opacity:.7!important}
.pvtabs .n{background:var(--f-gold)!important;color:var(--f-line)!important}
.btn:disabled,.btn[disabled]{opacity:.75!important}
.dk-dest .car{opacity:1!important}
.seg2{border:0!important;gap:2px;border-radius:0!important;overflow:visible!important}
.seg2 button{border:10px solid transparent!important;border-image:var(--fr-btn) 7 fill / 10px stretch!important;background:none!important;color:var(--f-text)!important;padding:0 6px!important}
.seg2 button.on{border-image:var(--fr-btn-dark) 7 fill / 10px stretch!important;padding-top:2px!important}
.dock .info{background:var(--f-card)!important;color:var(--f-cardink)!important;clip-path:none!important}
.dock .zland .zpaint{border:10px solid transparent!important;border-image:var(--fr-btn) 7 fill / 10px stretch!important;background:none!important;box-shadow:none!important;
  color:var(--f-text)!important;padding:0 4px!important}
.dock .dk-btn.go small,.dock .dk-btn.done small,.dock .btn.key small{color:var(--f-line)!important}
/* Fonts (Andrea, 23 Nov: "something readable everywhere"). The pixel font is for short labels that name things:
   mode tabs, tabs, buttons, section heads, counts and map labels. Everything you read is in Nunito:
   task titles, descriptions, lists, notes, fields, cards and tips. */
body,input,textarea,select,.dock p,.dock small,.dock label,.dock li,.dock .row,.dock .row b,.dock .hq b,.dock .note,.dock .utdesc,
.dk-title,.dk-body,.dk-card p,.tt b,.tt small,#tip,.toast,#capture input,.insp .title,.utdesc{
  font-family:Nunito,system-ui,sans-serif!important;letter-spacing:0!important}
.dk-title{font-weight:800!important;font-size:21px!important;line-height:1.3!important}
.dk-body,.dk-card p{font-weight:600!important;font-size:16px!important;line-height:1.5!important}
.dock .row b,.dock .hq b,.tt b{font-weight:800!important}
.dock .note,.dock small{font-weight:600!important}
button,.btn,.chip,.tabs button,.sec,.subtabs button,.dk-dest,.n,.lbl,.maplabel{font-family:"Pixelify Sans",system-ui,sans-serif!important}
button.tt,button.dk-title{font-family:Nunito,system-ui,sans-serif!important}
/* the picker in Catch up ("Where does it go?" and New place): light text on the dark Fanti box, like the inspector.
   Its places and projects are the small Fanti rows; the + buttons are dashed, so they read as "make a new one". */
.dk-sheet{border:8px solid transparent!important;border-image:url(sprites/ui/row-dark.png) 4 fill / 8px stretch!important;background:none!important;
  clip-path:none!important;}
.dk-h4,.dk-sheet .note{color:var(--f-mute)!important;opacity:1!important;font-family:"Pixelify Sans",sans-serif!important}
.dk-pl,.dk-pb{border:8px solid transparent!important;border-image:var(--fr-row) 4 fill / 8px stretch!important;background:none!important;clip-path:none!important;
  box-shadow:inset 5px 0 0 var(--pc,transparent)!important;}
.dk-pl:hover,.dk-pb:hover{filter:brightness(1.1)}
.dk-pl small,.dk-pb kbd{opacity:1!important}
.dk-plnew,.dk-pbnew{border:2px dashed var(--f-mute)!important;border-image:none!important;box-shadow:none!important;background:transparent!important}
.dk-x{border:12px solid transparent!important;border-image:var(--fr-btn) 7 fill / 12px stretch!important;background:none!important;clip-path:none!important;
  color:var(--f-text)!important;padding:0!important;width:40px!important;height:40px!important;image-rendering:pixelated}
/* Done in Go through: a plain, big check (Andrea, 23 Nov: an arrow is not satisfying) */
.dk-btn .ic.tick{font:700 26px/32px "Pixelify Sans",sans-serif;}
/* System controls in Fanti dress: tick boxes, choices, drop-downs, dates and scrollbars (Andrea, 23 Nov: the OS ones are off-brand) */
:root{accent-color:var(--f-gold)}
input[type=checkbox],input[type=radio]{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin:0;flex:none;border:2px solid var(--f-line)!important;
  background:var(--f-card)!important;box-shadow:inset 0 -2px 0 var(--f-wood);border-radius:0;cursor:pointer;vertical-align:-4px;clip-path:none!important}
input[type=checkbox]:checked,input[type=radio]:checked{background:var(--f-cardink)!important;box-shadow:inset 0 0 0 3px var(--f-card)}
input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:2px solid var(--f-gold);outline-offset:2px}
select:not(.chip){appearance:none;-webkit-appearance:none;border:2px solid var(--f-line);border-radius:0;color:var(--f-cardink);padding:4px 24px 4px 8px;
  background:var(--f-card) linear-gradient(45deg,transparent 50%,var(--f-cardink) 50%) calc(100% - 13px) 55% / 5px 5px no-repeat!important;
  background-image:linear-gradient(45deg,transparent 50%,var(--f-cardink) 50%),linear-gradient(135deg,var(--f-cardink) 50%,transparent 50%)!important;
  background-position:calc(100% - 14px) 55%,calc(100% - 9px) 55%!important;background-size:5px 5px!important;background-repeat:no-repeat!important}
input[type=date]:not(.chip){color:var(--f-cardink);background:var(--f-card)!important}
input[type=date]::-webkit-calendar-picker-indicator{opacity:.7;cursor:pointer}
*{scrollbar-color:var(--f-wood) transparent;scrollbar-width:thin}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--f-wood);border:2px solid var(--f-deep)}
::-webkit-scrollbar-track{background:transparent}
@media (pointer:coarse){ *{scrollbar-width:none} ::-webkit-scrollbar{display:none} }
/* choice cards and connections: the light card with dark ink, so the words read (they were cream on cream) */
.radio,.conn{background:var(--f-card)!important;border-color:var(--f-line)!important}
.radio:has(input:checked){background:var(--f-gold)!important}
.radio b,.radio small,.conn b,.conn small,.conn .addr{color:var(--f-cardink)!important;opacity:1!important}
.dk-card .dk-i[aria-expanded="true"]{background:var(--f-cardink)!important;color:var(--f-card)!important}
/* the brush choices in the hold bar (Brush, Square, Fill, sizes): the light card with dark text, the chosen one sunk in.
   Before, cream text on white made the choices not chosen almost vanish on a phone (Andrea, 24 Nov) */
.hold .lshapes button{background:var(--f-card)!important;color:var(--f-cardink)!important}
.hold .lshapes button.on{background:var(--f-deep)!important;color:var(--f-text)!important}
/* the ☰ menu's rows are light cards with dark text (the panel's cream text was unreadable on them) */
.menu button{background:var(--f-card)!important;color:var(--f-cardink)!important;border-color:var(--f-line)!important}

/* ---- 16-guide.css ---- */
/* the guide (20-guide.js): light and easy to read (Andrea, 23 Nov). Cream paper, headings in the pixel font,
   body text in Nunito, the reading font (system font until it loads) with air around it, big sprites and small drawings. On a phone: the list, then the page. */
.wiki{--w-paper:#fbf4ea;--w-side:#f1e4d3;--w-ink:#4f2b2a;--w-soft:#7a5a50;--w-line:#e2cfbb;--w-accent:#b8641f;--w-gold:#f5a524}
.wikicard{width:min(920px,100%)!important;max-height:min(700px,94vh)!important;padding:0!important;background:var(--w-paper)!important;
  border:3px solid var(--f-line)!important;color:var(--w-ink)!important}
.wiki .wtop{background:var(--f-panel)!important;color:var(--f-text);border:0!important;font-family:"Pixelify Sans"!important;font-size:20px;gap:8px;padding:10px 14px}
.wiki .wtop b{flex:1;letter-spacing:1px}
.wiki .wtop .btn{color:var(--f-text)!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:16px}
.wiki .wback{display:none}
/* the list of entries */
.wiki .wbody nav{background:var(--w-side);border:0!important;border-right:1px solid var(--w-line)!important;min-width:220px;gap:14px;padding:14px 10px}
.wiki .wch{display:flex;flex-direction:column;gap:1px}
.wiki .wch small{color:var(--w-soft);font-size:13px;letter-spacing:1px;text-transform:uppercase;padding:0 8px 4px}
.wiki .wbody nav button{display:flex;align-items:center;gap:10px;color:var(--w-ink);border-radius:0!important;padding:6px 8px;font-size:15px;font-weight:500;
  font-family:"Nunito",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif!important}
.wiki .wbody nav button:hover{background:#fff8ee}
.wiki .wbody nav button.on{background:var(--f-panel);color:var(--f-text)}
.wiki nav i{width:26px;height:22px;display:inline-grid;place-items:center;flex:none}
.wiki nav i canvas,.wiki .wsee i canvas{max-width:26px;max-height:22px;width:auto!important;height:auto!important;image-rendering:pixelated}
/* the page */
.wiki .wbody article{max-width:none;flex:1;padding:24px 32px 32px;color:var(--w-ink);
  font-family:"Nunito",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif!important;font-size:16px;line-height:1.6}
.wiki article *{font-family:inherit}
.wiki article header{display:flex;gap:22px;align-items:center;margin-bottom:22px}
.wiki .wbig{width:120px;height:104px;display:grid;place-items:center;flex:none;background:#fff;border:2px solid var(--w-line)}
.wiki .wbig canvas{image-rendering:pixelated;transform:scale(1.6)}
.wiki article header small{color:var(--w-accent);font-size:13px;letter-spacing:1px;text-transform:uppercase}
.wiki article h3{font-family:"Pixelify Sans"!important;font-size:32px;line-height:1.1;margin:2px 0 6px;color:var(--w-ink)}
.wiki .wwhat{margin:0;font-size:18px;color:var(--w-soft)}
.wiki .wsecs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.wiki .wsecs section{background:#fff;border:1px solid var(--w-line);padding:14px 16px}
.wiki h4{font-family:"Pixelify Sans"!important;font-size:18px;margin:0 0 4px;color:var(--w-ink);font-weight:600}
.wiki .wsecs p{margin:0}
.wiki article b{font-weight:700}
.wiki article a[data-wiki]{color:var(--w-accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* small drawings: sprites in a row, with arrows between steps */
.wiki .wfig{display:flex;align-items:flex-end;justify-content:center;flex-wrap:wrap;gap:8px;background:#e9f2dc;border:1px solid #cfdcbb;padding:18px 12px 12px;margin:0 0 18px}
.wiki .wset{gap:22px}
.wiki .wtile{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none!important;color:var(--w-ink)!important}
.wiki .wtile span{min-height:56px;display:grid;place-items:end center}
.wiki .wtile canvas{image-rendering:pixelated}
.wiki .wtile small{font-size:13px;font-weight:600}
.wiki .warr{font-size:22px;color:var(--w-soft);align-self:center;padding-bottom:18px}
.wiki .wrule{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 18px}
.wiki .wrule span{background:#e9f2dc;border:1px solid #cfdcbb;padding:12px 14px;font-size:15px}
.wiki .wrule b{display:block;font-family:"Pixelify Sans"!important;font-size:20px;color:var(--w-accent)}
/* see also */
.wiki .wsee{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:24px}
.wiki .wsee h4{width:100%}
.wiki .wsee .chip{display:inline-flex;align-items:center;gap:6px;background:#fff!important;color:var(--w-ink)!important;border:1px solid var(--w-line)!important;
  border-radius:0!important;box-shadow:none!important;font-weight:600;font-size:14px;padding:5px 10px;text-transform:none}
.wiki .wsee .chip:hover{border-color:var(--w-accent)!important}
/* the small ? next to a word in the app */
.wq{width:20px;height:20px;border:2px solid var(--f-line);background:var(--f-card);color:var(--f-cardink);border-radius:0;font-size:12px;font-weight:700;
  line-height:1;padding:0;display:inline-grid;place-items:center;vertical-align:middle;margin-left:6px;cursor:pointer;flex:none}
.wq:hover{background:var(--f-gold)}
@media (max-width:760px){
  .wiki{padding:0!important}
  .wikicard{width:100%!important;height:100%;max-height:100%!important;border:0!important}
  .wiki .wback{display:inline-flex}
  .wiki .wlistmode .wback{visibility:hidden}
  .wiki .wbody{flex-direction:column}
  .wiki .wbody nav{flex-direction:column;flex-wrap:nowrap;display:none;flex:1;overflow:auto;border:0!important}
  .wiki .wlistmode nav{display:flex}
  .wiki .wlistmode article{display:none}
  .wiki .wbody nav button{font-size:17px;padding:10px 8px}
  .wiki .wbody article{padding:18px 16px 28px}
  .wiki article header{gap:14px}
  .wiki .wbig{width:84px;height:76px}
  .wiki .wbig canvas{transform:scale(1.1)}
  .wiki article h3{font-size:26px}
  .wiki .wrule{grid-template-columns:1fr}
}

/* ---- 17-calendar.css ---- */
/* ---------- the Calendar place: the half-built banner, the settings, and Pick a time ----------
   Only colour roles from 00-base.css. A calendar's own colour comes from the calendar as data (--ev, --cc). */

/* a place that isn't set up yet */
.halfbuilt{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;margin:10px 0;padding:10px 12px;
  background:var(--f-deep);border:2px dashed var(--f-gold);color:var(--f-text)}
.halfbuilt b{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:600}
.halfbuilt small{grid-column:1;color:var(--f-mute)}
.halfbuilt .btn{grid-column:2;grid-row:1 / span 2}

/* Settings: adding a calendar, then accounts and calendars */
.caladdbtns{display:flex;flex-direction:column;gap:8px}
.caladdbtns .btn{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px}
.caladdbtns .btn small{font-family:Nunito,sans-serif;text-transform:none;font-weight:600;color:var(--f-mute)}
.calaccts{display:flex;flex-direction:column;gap:6px}
.calacct{display:flex;gap:8px;align-items:center;padding:8px;background:var(--f-row);border:2px solid var(--f-line)}
.calacct > div{flex:1;min-width:0}
.calacct b{display:block;overflow:hidden;text-overflow:ellipsis}
.calacct small{color:var(--f-mute)}
.calacct.broken{border-style:dashed}
.calcals{display:flex;flex-direction:column;gap:4px}
.calhead,.calrow{display:grid;grid-template-columns:14px 1fr 64px 64px;gap:8px;align-items:center}
.calhead small{color:var(--f-mute);text-align:center;font-family:"Pixelify Sans",Nunito,sans-serif}
.calrow{padding:6px 8px;background:var(--f-row);border:2px solid var(--f-line)}
.calrow input{justify-self:center;width:18px;height:18px;accent-color:var(--f-gold)}
.calname{min-width:0}.calname b,.calname small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calname small{color:var(--f-mute)}
.caldot{width:12px;height:12px;border:1px solid var(--f-line);background:var(--cc,var(--f-wood))}

/* a box's booked time on its card */
.booked{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 8px;background:var(--f-deep);border:2px solid var(--f-line)}
.booked small{color:var(--f-text)}
.booked.over{border-color:var(--f-gold)}

/* Pick a time */
.tpwrap{z-index:60}
.tpcard{width:min(980px,100%);height:min(760px,96vh);display:flex;flex-direction:column;gap:8px;padding:12px;
  background:var(--f-panel);color:var(--f-text);border:2px solid var(--f-line);box-shadow:0 4px 0 var(--f-line)}
.tptop{display:flex;align-items:center;gap:10px}
.tptop b{font-family:"Pixelify Sans",Nunito,sans-serif;font-size:18px;font-weight:600}
.tpbox{flex:1;min-width:0;color:var(--f-mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpnav{display:flex;align-items:center;gap:6px}
.tpdays{flex:1;display:flex;gap:4px;min-width:0;justify-content:center}
.tprange{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:600}
.tpchip{flex:1;display:flex;flex-direction:column;align-items:center;padding:3px 0;background:var(--f-deep);color:var(--f-text);border:2px solid var(--f-line);min-width:0}
.tpchip small{color:var(--f-mute);font-size:11px}
.tpchip b{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:600}
.tpchip.today{border-color:var(--f-gold)}
.tpchip.on{background:var(--f-card);color:var(--f-cardink)}
.tpchip.on small{color:var(--f-cardink)}
.tpgrid{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;background:var(--f-card);color:var(--f-cardink);border:2px solid var(--f-line)}
.tphead,.tpallday{display:grid;grid-template-columns:38px repeat(var(--cols),1fr);border-bottom:1px solid var(--f-wood)}
.tphead b{padding:4px;text-align:center;font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:600;font-size:13px}
.tphead b.today{color:var(--f-late)}
.tpallday small{padding:3px;font-size:10px}
.tpallday div{display:flex;flex-wrap:wrap;gap:2px;padding:2px;min-width:0}
.tpallday span{font-size:11px;padding:0 4px;border-left:4px solid var(--ev,var(--f-wood));background:var(--f-plot);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpscroll{overflow-y:auto;min-height:0;flex:1}
.tpbody{position:relative;display:grid;grid-template-columns:38px repeat(var(--cols),1fr)}
.tphours{position:relative}
.tphours small{position:absolute;left:0;right:0;padding:0 4px;font-size:11px;font-variant-numeric:tabular-nums;transform:translateY(-1px)}
.tpcol{position:relative;border-left:1px solid var(--f-wood);cursor:pointer;
  background-image:repeating-linear-gradient(to bottom,var(--f-wood) 0 1px,transparent 1px 44px)}
.tpcol.today{background-color:var(--f-plot)}
.tpev{position:absolute;left:2px;right:2px;overflow:hidden;padding:2px 4px;font-size:11px;line-height:1.2;
  background:var(--f-card);border:1px solid var(--f-wood);border-left:5px solid var(--ev,var(--f-wood));color:var(--f-cardink);cursor:default}
.tpev b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpev small{color:var(--f-cardink)}
.tpbook{position:absolute;left:4px;right:4px;z-index:2;overflow:hidden;padding:2px 6px;font-size:12px;line-height:1.2;cursor:grab;touch-action:none;
  background:var(--f-gold);color:var(--f-line);border:2px solid var(--f-line);box-shadow:2px 2px 0 var(--f-line)}
.tpbook b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpbook:focus-visible{outline:3px solid var(--f-text)}
.tpgrip{position:absolute;left:0;right:0;bottom:0;height:10px;cursor:ns-resize}
.tpgrip::after{content:"";position:absolute;left:50%;bottom:2px;width:18px;height:3px;margin-left:-9px;background:var(--f-line)}
.tpnote{margin:0;color:var(--f-mute);font-size:13px}
/* the box's deadline: a line at the end of its day, and a warning when the time is after it */
.tpcol.due{border-right:3px solid var(--f-late)}
.tpdue{margin-left:6px;padding:0 4px;font-size:10px;font-weight:700;background:var(--f-late);color:var(--f-card)}
.tphead b.due{border-right:3px solid var(--f-late)}
.tphead b.late,.tpchip.late small{text-decoration:line-through}
.tpchip.due{border-color:var(--f-late)}
.tpnote.late{color:var(--f-text);font-weight:700}
.tpnote.late::before{content:"⚠ ";color:var(--f-gold)}
.tpwhen.late{color:var(--f-gold)}
.tplegend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--f-mute)}
.tplegend span{display:flex;gap:4px;align-items:center}
.tplegend i{width:10px;height:10px;border:1px solid var(--f-line);background:var(--ev,var(--f-wood))}
.tplegend .tpinto{margin-left:auto;color:var(--f-text)}
.tpfoot{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tpfoot .chips{flex:1 1 auto}
.tpwhen{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:600}
@media (max-width:760px){
  .tpwrap{padding:0}
  .tpcard{width:100%;height:100vh;height:100dvh;max-height:none;padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px))}
  .tpfoot .chips{flex-basis:100%}
  .tpfoot .btn.key{flex:1}
  .tplegend .tpinto{margin-left:0;flex-basis:100%}
}

/* ---- 17-claude.css ---- */
/* ---------- Claude on the island: the rounds on a card in Go through (15-claude.js) ---------- */
.cl-rounds{margin:10px 0 4px;display:flex;flex-direction:column;gap:6px;user-select:text;-webkit-user-select:text}
.cl-round{display:flex;flex-direction:column;gap:2px}
.dock .dk-card .cl-lbl,.dk-card .cl-lbl{font-family:"Pixelify Sans",sans-serif;font-size:12px;letter-spacing:.02em;color:var(--f-cardink)!important;opacity:1!important;text-transform:uppercase}
.dk-card .cl-ask{margin:0;font-size:14px!important;font-weight:600}
.cl-ans{background:var(--paper);color:var(--f-cardink);border:2px solid var(--f-line);padding:8px 10px;font-size:15px;line-height:1.5;
  white-space:pre-wrap;word-break:break-word;max-height:38vh;overflow:auto;overscroll-behavior:contain}
.dk-card .cl-wait{margin:0;font-style:italic}
.dk-card .cl-older summary{cursor:pointer;font-family:"Pixelify Sans",sans-serif;font-size:12px;color:var(--f-cardink)!important}
.cl-older .cl-round{margin:6px 0;padding-left:8px;border-left:3px solid var(--f-wood)}
.cl-btns{display:flex;gap:6px;flex-wrap:wrap}
.claudeask textarea{width:100%;box-sizing:border-box;font:inherit;border:2px solid var(--f-line);padding:7px 9px;background:var(--paper);margin:6px 0;resize:vertical}
.dk.picking .cl-ans{max-height:18vh}

/* ---- 17-newplace.css ---- */
/* ---------- New place: one window from everywhere (15-newplace.js). Only colour roles from 00-base.css ---------- */
.npwrap{z-index:60}
.npcard{width:min(560px,100%);max-height:min(760px,94vh);display:flex;flex-direction:column;gap:8px;padding:12px;
  background:var(--f-panel);color:var(--f-text);border:2px solid var(--f-line);box-shadow:0 4px 0 var(--f-line)}
.nptop{display:flex;align-items:center;gap:10px}
.nptop b{flex:1;font-family:"Pixelify Sans",Nunito,sans-serif;font-size:18px;font-weight:600}
.npfor{margin:0;padding:2px 0;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.npfor small{color:var(--f-mute)}
.nplabel{font-family:"Pixelify Sans",Nunito,sans-serif;font-weight:600}
.npcard .note{margin:0;color:var(--f-mute)}
.npbody{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.npbody input{width:100%}
.npideas{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.npideas small{color:var(--f-mute)}
.npgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px}
.npgrid .tile.on{outline:3px solid var(--f-gold)}
.nppacks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.nppacks .dk-pl.on{outline:3px solid var(--f-gold)}
.npfoot{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.npfoot small{flex:1 1 160px;color:var(--f-mute)}
@media (max-width:760px){
  .npwrap{padding:0;place-items:end stretch}
  .npcard{width:100%;max-height:92dvh;padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px))}
  .npfoot .btn.key{flex:1}
}

/* ---- 17-projpick.css ---- */
/* ---------- The project picker (16-projpick.js). Only colour roles from 00-base.css ----------
   The field looks like the other fields (the light card). The list is the panel with rows, like the task menu. */
.ppfield{display:flex!important;align-items:center;gap:8px;width:100%;min-height:38px;padding:6px 10px!important;text-align:left;
  background:var(--f-card)!important;color:var(--f-cardink)!important;border:2px solid var(--f-line)!important;border-image:none!important;
  border-radius:0!important;box-shadow:inset 0 -2px 0 var(--f-wood)!important;clip-path:none!important;font-family:Nunito,system-ui,sans-serif!important;
  font-weight:700;font-size:15px;letter-spacing:0!important}
.ppfield:focus-visible{outline:2px solid var(--f-gold);outline-offset:2px}
.ppfield .ppname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ppfield .ppcaret{font-size:12px}
.ppfield .dot,.pprow .dot{width:12px;height:12px;flex:none;border:2px solid var(--f-line);border-radius:3px}
.ppwrap{z-index:70;padding:0;display:none}
.ppwrap:not(.sheet){background:transparent}
.ppwrap.show{display:block}
.ppcard{position:fixed;display:flex;flex-direction:column;gap:6px;padding:8px;min-height:0;
  background:var(--f-panel);color:var(--f-text);border:2px solid var(--f-line);box-shadow:0 4px 0 var(--f-line)}
.pptop{display:none;align-items:center;gap:10px}
.pptop b{flex:1;font-family:"Pixelify Sans",Nunito,sans-serif;font-size:18px;font-weight:600}
.ppq{width:100%;padding:9px 10px;font:inherit;font-size:16px}
.pplist{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:2px;padding:2px}
.pph{font-family:"Pixelify Sans",Nunito,sans-serif;font-size:13px;color:var(--f-mute);padding:8px 6px 2px;letter-spacing:.5px}
.pph:first-child{padding-top:2px}
.pprow{display:flex!important;align-items:center;gap:9px;min-height:40px;padding:6px 10px!important;text-align:left;width:100%;
  background:var(--f-row)!important;color:var(--f-text)!important;border:0!important;border-image:none!important;border-radius:0!important;
  box-shadow:none!important;clip-path:none!important;font-family:Nunito,system-ui,sans-serif!important;font-weight:700;font-size:15px;letter-spacing:0!important}
.pprow.at{background:var(--f-rowhi)!important}
@media (hover:hover){.pprow:hover{background:var(--f-rowhi)!important}}
.pprow.at{box-shadow:inset 4px 0 0 var(--f-gold)!important}
.pprow .ppname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pprow .ppname b{color:var(--f-gold);font-weight:900}
.pprow .ppok{font-weight:900}
.pprow .ppnone{background:transparent;border-style:dashed}
.ppnew{border:2px dashed var(--f-mute)!important;background:transparent!important;margin-top:4px}
.ppnote{margin:6px;color:var(--f-mute)}
.ppfoot{color:var(--f-mute);font-size:12px;padding:0 4px}
/* on a phone: a sheet from the bottom, with the windows' dim behind it and a heading you can close */
.ppwrap.sheet .ppcard{left:0;right:0;width:auto;height:85dvh;padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px))}
.ppwrap.sheet .pptop{display:flex}
.ppwrap.sheet .pprow{min-height:48px;font-size:16px}

/* ---- 18-work.css ---- */
/* ---------- the five tabs, each with its own views, + New and search (13-work.js) ---------- */
/* five tabs share the row evenly, so all of them show in a narrow panel */
#tabs{gap:2px!important;padding:0 6px!important}
#tabs button{flex:1 1 0;min-width:0;justify-content:center;gap:3px;padding:8px 1px!important;font-size:10.5px!important;letter-spacing:0!important}
#tabs .tl{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* the hold strip (what is in your hand) belongs to placing and Decor; in Work it shows only while you place */
body.mode-work:not(.armed-on) .tools .hold{display:none}
.wsubrow{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.wsubrow .wsub{margin:0;flex:1 1 auto;min-width:0}
.wsubrow .newin{flex:none;margin:0 0 0 auto}
/* the tool bar is on every tab (Andrea, 25 Nov); Remove and the recent things belong to Decor */
@media (min-width:761px){ body.mode-work .tools{display:flex} }
body.mode-work .tools [data-tool="erase"],body.mode-work .tools .recentbar,body.mode-work .tools .toolsep{display:none}
/* Decor's categories sit at the top of its tab, as a row of icons */
.dsubrow{margin:0 0 8px}
.dsubrow button.on{background:var(--f-deep)!important}
/* the New window: its main button stays in sight while the building list scrolls */
.capture .capgo{position:sticky;bottom:0;z-index:1}
.wfind{display:flex;align-items:center;gap:6px;margin:0 0 10px;padding:0 10px;height:38px;background:var(--f-deep);border:2px solid var(--f-line);cursor:text}
.wfind .fic,.wfind img.fic{width:18px;height:18px;flex:none}
.wfind input{flex:1;min-width:0;border:0;background:none;outline:0;font:600 15px Nunito, system-ui, sans-serif;color:var(--f-text);padding:6px 0}
.wfind input::placeholder{color:var(--f-mute)}
.wfind:focus-within{outline:3px solid var(--f-line);outline-offset:1px}
.wgroup{align-items:center;margin:0 0 10px}
.wgroup > span{font-size:13px;color:var(--f-mute)}
.wgroup .chip.on{background:var(--f-line)!important;color:var(--f-text)!important}
.sec .dot{display:inline-block;width:10px;height:10px;border:2px solid var(--f-line);vertical-align:middle}
/* the panel skin dresses every input as a light card; this one sits sunk in its own well instead */
.wfind input{background:none!important;border:0!important;box-shadow:none!important;clip-path:none!important;height:auto!important}
/* placing a building from Work: you stay in Work, and only the hold strip of the tool bar shows (armLot in 10-map-edit.js) */
body.mode-work.armed-on .tools{display:flex}
body.mode-work.armed-on .tools > :not(.hold){display:none}
