/* Manners - styles

   Last updated: 2026-11-01 by Claude for Grá
   Change:  v2. The plant box on a job (picture, credit, RHS button), photo
            tags in the viewer, and the job's photo row.
   Before:  v1, 31 Oct 2026. Bright and airy: warm off-white, white cards, one leaf green
            for progress and a soft terracotta for what's ready now. No red,
            no alarms. Fraunces for headings, DM Sans for everything else.
   Before:  The Outer Limits v1 (never deployed).
   Deployed version: (fill in after uploading)
*/
:root{
  --bg:#faf8f3; --card:#ffffff; --line:#ebe6db; --line-hi:#d8d0bf;
  --text:#2b3326; --dim:#636b5c;
  --leaf:#4f7d31; --leaf-soft:#e8f0de; --clay:#b4593a; --clay-soft:#f7e6dd; --sand:#efe6d2;
  --head:'Fraunces',Georgia,serif;
  --body:'DM Sans',system-ui,-apple-system,sans-serif;
  --bar:66px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:var(--bg);font-family:var(--body);color:var(--text);font-size:16px;line-height:1.45;min-height:100vh;
  padding:10px 16px calc(var(--bar) + env(safe-area-inset-bottom,0px) + 20px);
  padding-top:calc(12px + env(safe-area-inset-top,0px));
}
.frame{max-width:560px;margin:0 auto}
.board{position:relative;min-height:62vh;padding-bottom:20px}

/* the sign */
.sign{display:flex;align-items:center;gap:12px;padding:8px 0 10px}
.sprig{flex:0 0 auto;width:34px;height:34px}
.sprig path{fill:none;stroke:var(--leaf);stroke-width:1.8;stroke-linecap:round}
.sprig .leaf{fill:var(--leaf-soft)}
.titles{min-width:0}
.sign h1{margin:0;font-family:var(--head);font-weight:600;font-size:clamp(26px,7.4vw,32px);line-height:1.08;
  letter-spacing:-.3px;overflow-wrap:anywhere}
.strip{margin:2px 0 0;font-size:14px;color:var(--dim)}

/* home */
.hello{font-family:var(--head);font-size:22px;margin:10px 0 2px}
.calm{font-family:var(--head);font-size:19px;color:var(--dim);margin:18px 0 6px}
ul.next li{background:var(--card);border-radius:12px;padding:12px;margin-bottom:8px;border:1px solid var(--line)}
ul.next li:last-child{border-bottom:1px solid var(--line)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.chips.filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin:6px -16px 2px;padding-left:16px;padding-right:16px;scrollbar-width:none}
.chips.filter::-webkit-scrollbar{display:none}
.chips .chip{flex:0 0 auto;font-size:14px;padding:8px 14px;min-height:40px;border-radius:20px}
.picker .chip{font-size:15px}
.fold{margin-top:22px}
.linkish{background:none;border:0;padding:4px 0;color:var(--leaf);font:inherit;font-weight:600;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;min-height:36px}

/* the plan */
.chart{margin:6px 0 0;background:var(--card);border:1px solid var(--line);border-radius:14px;line-height:0;padding:6px}
.map{width:100%;height:auto;display:block}
.map .decor circle,.map .decor ellipse,.map .decor rect{fill:none;stroke:var(--line-hi);stroke-width:1.2}
.map .decor .needle{fill:var(--dim)}
.map .decor rect.house{fill:#e4ddd0;stroke:none}
.rg{cursor:pointer;outline:none}
.rg .shape{stroke-width:1.4;transition:fill .4s ease}
.rg .shape:not(.band){stroke:#c9bfa9}
.rg.unset .shape{stroke-dasharray:4 3}
.rg .band-edge{fill:none;stroke:#c9bfa9;stroke-width:17;stroke-linecap:round}
.rg .shape.band{fill:none;stroke-width:14;stroke-linecap:round}
.rg:hover .shape,.rg:focus-visible .shape{stroke:var(--leaf);stroke-width:2.6}
.rg:hover .band-edge,.rg:focus-visible .band-edge{stroke:var(--leaf)}
.ml{font-family:var(--body);font-size:12px;fill:var(--text)}
.ml-small{font-size:11px}
.ml-l{font-size:17px}
.ml-m{font-size:14px}
.ml-note{font-family:var(--body);font-style:italic;font-size:11px;fill:var(--dim)}
.ml-house{font-family:var(--head);font-style:italic;font-size:13px;fill:var(--dim)}
.badge circle{fill:var(--card);stroke:var(--leaf);stroke-width:1.5}
.badge text{font-family:var(--body);font-size:11px;font-weight:600;fill:var(--leaf)}
.rg.unset .badge circle{stroke:var(--line-hi);stroke-dasharray:2 2}
.rg.unset .badge text{fill:var(--dim)}
.legend{display:flex;align-items:center;gap:10px;margin:10px 4px 0;font-size:13px;color:var(--dim)}
.legend .ramp{flex:1;height:8px;border-radius:4px;background:linear-gradient(90deg,#efe6d2,#8fb868)}

ul.regions{margin-top:14px}
li.regrow{padding:0;border-bottom:0;margin-top:8px}
li.regrow .fix{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 14px;
  background:var(--card);border-radius:12px;border:1px solid var(--line)}
li.regrow .fix:active{background:var(--leaf-soft)}
li.regrow .name{font-size:16px}
.mark{flex:0 0 auto;font-family:var(--head);font-weight:600;font-size:22px;color:var(--leaf);min-width:40px;text-align:right}
.mark.unset{color:var(--line-hi)}

/* a region */
.back{margin:2px 0 8px}
.markbox{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 14px 12px;margin:4px 0 6px}
.markline{display:flex;align-items:baseline;gap:6px}
.markline .mark{font-size:44px;line-height:1;min-width:0;text-align:left}
.markline .of{color:var(--dim);font-size:15px}
.markline .word{margin-left:auto;font-family:var(--head);font-size:18px;color:var(--leaf)}
.meter{height:10px;background:var(--sand);border-radius:5px;margin:10px 0 4px;overflow:hidden}
.meter span{display:block;height:100%;background:var(--leaf);border-radius:5px;transition:width .5s ease}
.head .cloth.small{margin-left:auto;min-height:38px;padding:6px 12px;font-size:14px}
.thumbs{display:flex;gap:8px;overflow-x:auto;padding:8px 0 6px;scrollbar-width:thin}
.thumb{flex:0 0 auto;width:112px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:0;
  overflow:hidden;cursor:pointer;font:inherit;color:var(--dim);text-align:left}
.thumb img{display:block;width:112px;height:84px;object-fit:cover;background:var(--sand)}
.thumb span{display:block;font-size:12px;padding:5px 7px}
.viewer img{display:block;width:100%;height:auto;max-height:62vh;object-fit:contain;border-radius:10px;background:var(--sand);min-height:120px}
.compare{position:relative;border-radius:10px;overflow:hidden;background:var(--sand);min-height:160px;margin-bottom:8px}
.compare img{display:block;width:100%;height:auto}
.compare img.over{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.compare .tag{position:absolute;bottom:8px;font-size:12px;background:rgba(255,255,255,.88);padding:3px 8px;border-radius:10px;color:var(--text)}
.compare .tag.l{left:8px}.compare .tag.r{right:8px}
.slider{display:flex;align-items:center;gap:12px;margin:14px 0 6px}
.slider input{flex:1;accent-color:var(--leaf)}
.slider span{font-family:var(--head);font-size:30px;color:var(--leaf);min-width:52px;text-align:right}
#cmp-x{width:100%;accent-color:var(--leaf)}
.tick{display:flex;align-items:center;gap:10px;font-size:15px;margin:4px 0 8px;min-height:44px}
.sheet .tick input{width:22px;height:22px;min-height:0;margin:0;accent-color:var(--leaf);box-shadow:none}

/* the Log: scores */
.tab{display:flex;gap:10px;margin:12px 0 4px}
.drinker{flex:1;padding:12px;border-radius:12px;background:var(--card);border:1px solid var(--line);
  cursor:pointer;color:inherit;font-family:inherit;text-align:left}
.drinker.active{border-color:var(--leaf);box-shadow:0 0 0 1px var(--leaf) inset}
.drinker h2{margin:0;font-family:var(--head);font-weight:600;font-size:20px;line-height:1;
  display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.drinker h2 span{font-family:var(--body);font-size:16px;color:var(--leaf)}
.tally{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-height:24px;align-items:flex-end}
.tally path{stroke:var(--leaf);stroke-width:2;fill:none;stroke-linecap:round}
.owed{font-size:14px;color:var(--dim);margin:6px 0 0;line-height:1.2}

.settle{font-size:15px;color:var(--dim);margin:8px 0 4px;line-height:1.5}
.settle b{color:var(--text);font-weight:600}
.empty{font-family:var(--head);font-size:20px;text-align:center;margin:30px 6px 6px;line-height:1.2}
.spend{background:var(--card);border:1px solid var(--line-hi);font-family:var(--body);font-size:15px;font-weight:600;color:var(--leaf);
  min-height:44px;padding:8px 16px;border-radius:22px;cursor:pointer;margin:6px 0 2px}
.spend:disabled{color:var(--dim);cursor:default}

/* sections */
section{margin-top:12px}
.head{display:flex;align-items:baseline;gap:8px;cursor:pointer;margin-top:22px}
.head h3{margin:0;font-family:var(--head);font-weight:600;font-size:19px;line-height:1.2}
.head .when{font-size:13px;color:var(--dim);flex:1}
.head.late h3{color:var(--clay)}
.head .caret{font-size:13px;color:var(--dim)}
.head:focus-visible{outline:2px solid var(--leaf);outline-offset:3px;border-radius:4px}
.head.plain{cursor:default;align-items:center}

ul{list-style:none;margin:8px 0 0;padding:0}
li{display:flex;align-items:flex-start;gap:10px;padding:12px 0;position:relative;border-bottom:1px solid var(--line)}
li:last-child{border-bottom:0}
li.done .name,li.done .meta,li.done .pts,li.done .rates{opacity:.4}

.tapzone{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;background:none;border:0;
  color:inherit;font-family:inherit;text-align:left;padding:0;cursor:pointer;min-height:44px}
.tapzone:focus-visible{outline:2px solid var(--leaf);outline-offset:3px;border-radius:6px}
.glass{flex:0 0 auto;width:26px;height:26px;margin-top:0}
.glass .ring{fill:var(--card);stroke:var(--line-hi);stroke-width:1.6}
.glass .fill{fill:none;stroke:var(--leaf);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:16;stroke-dashoffset:16}
.tapzone:hover .glass .ring{stroke:var(--leaf)}
li.done .glass .ring{fill:var(--leaf-soft);stroke:var(--leaf)}
li.done .glass .fill{animation:draw .35s ease forwards}
.body{flex:1;min-width:0}
.name{font-size:16px;font-weight:600;line-height:1.3;color:var(--text);display:block}
.meta{font-size:13px;color:var(--dim);line-height:1.5;display:block;margin-top:3px}
.meta em{font-style:normal;color:var(--clay);font-weight:600}
.meta b{font-weight:600;color:var(--text)}
.meta i{font-style:italic}
.cat{display:inline-block;font-size:12px;padding:0 8px;border-radius:10px;background:var(--sand);color:var(--text)}
.cat.proj{background:var(--leaf-soft);color:var(--leaf)}

.side{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.pts{font-size:14px;color:var(--text);line-height:1;font-weight:600}
.pts small{font-size:12px;color:var(--dim);margin-left:6px;font-weight:400}
.rates{display:flex;gap:4px}
.chip{background:var(--card);border:1px solid var(--line-hi);font-family:var(--body);font-size:13px;color:var(--dim);
  padding:4px 8px;border-radius:8px;cursor:pointer;line-height:1.3;min-height:32px}
.chip.mine{color:var(--leaf);border-color:var(--leaf);background:var(--leaf-soft);font-weight:600}
.more{background:none;border:0;color:var(--dim);font-size:18px;cursor:pointer;padding:6px 4px;line-height:1;
  min-width:36px;min-height:44px}

.tags{margin-top:6px}
.tags li{justify-content:space-between;align-items:center;font-size:15px}
.tags em{font-style:normal;color:var(--leaf);font-size:14px}

/* the tick: a soft line through, and a few leaves */
.strike{position:absolute;left:38px;right:0;top:50%;height:14px;overflow:visible;pointer-events:none}
.strike path{fill:none;stroke:var(--leaf);stroke-width:2;stroke-linecap:round;opacity:.5;stroke-dasharray:320;stroke-dashoffset:320}
li.done .strike path{animation:draw .4s ease forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.dust{position:absolute;pointer-events:none;width:7px;height:4px;border-radius:50% 0;background:var(--leaf);opacity:.8}
@keyframes puff{to{transform:translate(var(--dx),calc(var(--dy) * -1)) rotate(140deg);opacity:0}}

.bottom{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.cloth{background:var(--card);border:1px solid var(--line-hi);cursor:pointer;font-family:var(--body);font-size:15px;
  color:var(--text);min-height:44px;padding:8px 14px;border-radius:10px}
.cloth:active{background:var(--leaf-soft)}
.cloth:disabled{opacity:.5;cursor:default}

/* the bar */
.nav{
  position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;
  padding:4px 4px calc(env(safe-area-inset-bottom,0px) + 4px);
  background:rgba(255,255,255,.96);border-top:1px solid var(--line);
}
.nav button{
  flex:1;background:none;border:0;cursor:pointer;color:var(--dim);min-width:0;
  font-family:var(--body);font-size:12px;padding:6px 1px 6px;
  display:flex;flex-direction:column;align-items:center;gap:3px;min-height:54px
}
.nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav button.on{color:var(--leaf);font-weight:600}
.addbtn{
  position:fixed;z-index:41;right:18px;
  bottom:calc(var(--bar) + env(safe-area-inset-bottom,0px) + 16px);
  width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;
  font-family:var(--body);font-weight:400;font-size:30px;line-height:1;
  color:#fff;background:var(--leaf);box-shadow:0 6px 18px rgba(79,125,49,.32);
}
.addbtn[hidden]{display:none}

/* sheets */
.scrim{position:fixed;inset:0;background:rgba(43,51,38,.38);z-index:50;display:flex;
  align-items:flex-end;justify-content:center;padding:12px}
.sheet{width:100%;max-width:480px;border-radius:16px;padding:20px 16px 16px;
  margin-bottom:calc(env(safe-area-inset-bottom,0px));
  background:var(--card);box-shadow:0 -8px 40px rgba(43,51,38,.18);max-height:88vh;overflow:auto}
.sheet h4{font-family:var(--head);font-weight:600;font-size:21px;margin:0 0 8px;line-height:1.2}
.sheet p{font-size:15px;color:var(--dim);margin:0 0 12px;line-height:1.5}
.sheet button.opt{display:block;width:100%;text-align:left;background:none;border:0;color:var(--text);
  font-family:var(--body);font-size:16px;min-height:50px;padding:12px 4px;cursor:pointer;border-bottom:1px solid var(--line)}
.sheet button.opt:disabled{color:var(--dim);opacity:.5;cursor:default}
.sheet button.opt span{float:right;color:var(--dim);font-size:14px}
.sheet .form button.opt,.sheet button.opt.go{margin-top:10px;text-align:center;border:0;border-radius:26px;
  background:var(--leaf);color:#fff;font-weight:600}
.stepper{display:flex;align-items:center;gap:14px;justify-content:center;margin:8px 0 14px}
.stepper button{width:48px;height:48px;border-radius:50%;background:var(--card);cursor:pointer;
  border:1px solid var(--line-hi);color:var(--text);font-size:24px;font-family:var(--body)}
.stepper .val{font-family:var(--head);font-weight:600;font-size:40px;min-width:56px;text-align:center;line-height:1;color:var(--leaf)}
.scale{font-size:14px;color:var(--dim);text-align:center;margin:10px 0 2px;line-height:1.45}
.sheet input,.sheet select,.sheet textarea{width:100%;background:var(--bg);border:1px solid var(--line-hi);color:var(--text);
  font-family:var(--body);font-size:16px;padding:10px 12px;border-radius:10px;margin-bottom:10px;min-height:46px}
.sheet textarea{resize:vertical}
.sheet input:focus,.sheet select:focus,.sheet textarea:focus{outline:none;border-color:var(--leaf);box-shadow:0 0 0 2px var(--leaf-soft)}
.close{margin-top:12px;width:100%}
.amber{color:var(--leaf);font-weight:600}
.nowt{font-size:13px;color:var(--dim)}

.toast{
  position:fixed;z-index:39;left:16px;right:88px;
  bottom:calc(var(--bar) + env(safe-area-inset-bottom,0px) + 16px);
  margin:0;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.4;
  color:#fff;background:#3b4a34;box-shadow:0 6px 18px rgba(43,51,38,.25);
  opacity:0;transform:translateY(6px);pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.toast.show{opacity:1;transform:translateY(0)}
.toast.undoable{pointer-events:auto;display:flex;align-items:center;gap:10px}
.toast .undo{margin-left:auto;flex:0 0 auto;background:none;border:1px solid rgba(255,255,255,.6);cursor:pointer;
  font-family:var(--body);font-size:14px;font-weight:600;color:#fff;min-height:36px;padding:4px 12px;border-radius:18px}

/* one-offs, together, waiting, out of season, history */
.head.special h3{color:var(--text)}
.head.double h3{color:var(--leaf)}
.head.dormant h3{color:var(--dim)}
.switch{display:flex;gap:6px;margin:10px 0 2px}
.switch .chip{font-size:14px;padding:6px 14px;min-height:38px}
li.hist{flex-wrap:wrap}
.again{flex-basis:100%;display:flex;gap:6px;justify-content:flex-end;margin-top:2px}
.more-hist{margin-top:10px}
.news{margin:2px 0 6px;padding:0}
.news li{display:block;font-size:15px;line-height:1.5;padding:8px 0}

/* search */
input.search{width:100%;margin:12px 0 4px;background:var(--card);border:1px solid var(--line-hi);color:var(--text);
  font-family:var(--body);font-size:16px;padding:12px 14px;border-radius:12px;min-height:48px;-webkit-appearance:none;appearance:none}
input.search:focus{outline:none;border-color:var(--leaf);box-shadow:0 0 0 2px var(--leaf-soft)}

/* forms */
.form label{display:block;font-size:13px;color:var(--dim);margin:4px 0 4px}
.row2{display:flex;gap:8px;align-items:baseline}
.row2 > span{font-size:15px;color:var(--dim)}
.row2 .grow{flex:1;min-width:0}
.row2 input[type=number]{flex:0 0 90px}
.row2 .grow input,.row2 .grow select{width:100%}
.row2 select{flex:1}
[hidden]{display:none !important}
#f-err{color:var(--clay);min-height:0;margin:0}
#f-err:empty{display:none}

/* the Log's jobs with no time set */
.head.sub{margin-top:6px}
.head.sub .when{font-size:14px;line-height:1.45}
ul.untimed li{padding:0}
.fix{display:block;width:100%;text-align:left;background:none;border:0;color:inherit;cursor:pointer;
  font-family:inherit;padding:10px 0;min-height:44px}
.fix:focus-visible{outline:2px solid var(--leaf);outline-offset:2px;border-radius:8px}

@media (prefers-reduced-motion:reduce){
  li.done .strike path,li.done .glass .fill{animation:none;stroke-dashoffset:0}
  .dust{display:none}
}

/* v2: the plant on a job */
.plantbox{background:var(--leaf-soft);border-radius:12px;padding:10px;margin:4px 0 12px}
.plantpic{position:relative;border-radius:9px;overflow:hidden;background:var(--sand);min-height:120px}
.plantpic img{display:block;width:100%;height:auto;max-height:46vh;object-fit:cover}
.plantpic img:not([src]){display:none}
.plantpic .loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--dim);padding:10px;text-align:center}
.credit{font-size:12px;color:var(--dim);margin:5px 2px 0;line-height:1.35;overflow-wrap:anywhere}
.credit a{color:var(--leaf)}
.plantline{display:flex;align-items:center;gap:10px;margin-top:8px}
.plantname{font-family:var(--head);font-size:18px;font-weight:600;flex:1 1 auto}
a.rhs{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:72px;padding:0 16px;
  border-radius:22px;background:var(--leaf);color:#fff;font-weight:600;text-decoration:none;letter-spacing:.04em}
a.rhs:active{opacity:.8}
.plantbox .scale{text-align:left;margin:6px 2px 0}
.phototags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px}
.phototags span{font-size:13px;background:var(--leaf-soft);color:var(--text);border-radius:12px;padding:3px 10px}
#jobphotos{margin-bottom:6px}
