/* crafting_v1: building panel section + Make / Tree / Pantry sheets (parchment + wood + brass, like the town panels) */
.cr-e { font-style: normal; font-size: 1.25rem; line-height: 1; display: inline-block; }
.cr-e.big { font-size: 2rem; padding: 6px 10px; border-radius: 12px; }
.cr-gem { font-style: normal; font-size: .8em; }
.cr-panel { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 2px; }
.cr-collect { min-height: 44px; font-size: 1rem !important; }
.cr-jobs { display: flex; flex-direction: column; gap: 4px; }
.cr-job { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.55); border: 1.5px solid rgba(107,66,38,.35); border-radius: 12px; padding: 5px 8px; min-height: 34px; }
.cr-job.head { padding: 6px 8px; }
.cr-jm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-jt { display: flex; justify-content: space-between; gap: 6px; font: 600 .84rem system-ui, sans-serif; color: var(--ink, #2a1c12); }
.cr-jt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-jt span { color: #6b4226; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-bar { display: block; height: 7px; background: rgba(107,66,38,.25); border-radius: 9px; overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5aa05a, #8fd079); border-radius: 9px; }
.cr-jb { display: flex; flex-direction: column; gap: 3px; }
.cr-jb .btn, .cr-job .btn { padding: 4px 8px; font-size: .74rem; min-height: 28px; white-space: nowrap; }
.cr-jw { flex: 1; font: 500 .8rem system-ui, sans-serif; color: #5a4030; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-empty { font: 500 .82rem system-ui, sans-serif; color: #6b5340; padding: 4px 4px; }
.cr-actions { display: flex; gap: 6px; }
.cr-make { flex: 1; min-height: 44px; font-size: 1rem !important; }
.cr-make small { font-size: .7em; opacity: .8; margin-left: 4px; }
.cr-side { min-width: 48px; font-size: 1.2rem; }
.cr-note { font: 600 .8rem system-ui, sans-serif; color: #2a6b42; background: #eef8ee; border-radius: 9px; padding: 4px 8px; }
.cr-boost { font: 600 .8rem system-ui, sans-serif; color: #7a4a00; background: #fff1c9; border: 1.5px solid #e0b24a; border-radius: 9px; padding: 4px 8px; }
.cr-farm { margin: 4px 0; padding: 6px 8px; background: rgba(255,255,255,.5); border: 1.5px solid rgba(107,66,38,.35); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.cr-farm-h { display: flex; align-items: center; gap: 8px; font: 600 .85rem system-ui, sans-serif; flex-wrap: nowrap; }
.cr-farm-h .btn { margin-left: auto; min-height: 30px; }
.cr-pen { display: inline-flex; align-items: center; gap: 2px; } .cr-pen.lock { opacity: .45; font-size: .7rem; } .cr-pen .cr-e { font-size: 1rem; }
.cr-herd { font: 500 .78rem system-ui, sans-serif; color: #9a4a3e; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .cr-herd.ok { color: #2a6b42; }
.cr-herd .btn { min-height: 28px; padding: 3px 8px; font-size: .75rem; }
/* barracks tiers */
.cr-tiers { display: flex; gap: 5px; margin: 4px 0 2px; }
.cr-tier { flex: 1; display: flex; flex-direction: column; gap: 0; align-items: center; padding: 4px 3px; border-radius: 12px; border: 2px solid rgba(107,66,38,.4); background: rgba(255,255,255,.55); font: 700 .85rem system-ui, sans-serif; color: #2a1c12; cursor: pointer; }
.cr-tier small { font: 500 .68rem system-ui, sans-serif; color: #6b5340; text-align: center; }
.cr-tier.on { background: linear-gradient(180deg, #f6dc8a, #d9a93f); border-color: #8a5a1b; }
.cr-tier.lock { opacity: .55; cursor: default; }
.cr-troops { margin: 2px 0 0; font: 500 .75rem system-ui, sans-serif; color: #6b5340; }
/* sheets */
.cr-sheet { position: fixed; inset: 0; z-index: 9000; background: linear-gradient(180deg, #f3e2c0, #e6cf9c); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 6px) 10px 10px; gap: 8px; overflow: hidden; color: #2a1c12; font-family: system-ui, sans-serif; }
.cr-sheet[hidden], #crConfirm[hidden] { display: none; }
.cr-head { display: flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #6b4226, #3e2616); color: #f6e7c4; border-radius: 14px; padding: 6px 8px; }
.cr-head h3 { flex: 1; margin: 0; font: 700 1.05rem Georgia, serif; text-align: center; }
.cr-x, .cr-hb { border: 0; background: rgba(255,255,255,.14); color: #f6e7c4; border-radius: 10px; min-width: 40px; min-height: 40px; font-size: 1.3rem; cursor: pointer; }
.cr-tabs { display: flex; gap: 5px; }
.cr-tab { flex: 1; min-height: 34px; border-radius: 10px; border: 1.5px solid rgba(107,66,38,.45); background: rgba(255,255,255,.5); font: 700 .85rem system-ui, sans-serif; color: #3e2616; cursor: pointer; }
.cr-tab.on { background: #6b4226; color: #f6e7c4; }
.cr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cr-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px 4px; min-height: 66px; border-radius: 12px; border: 2px solid rgba(107,66,38,.4); background: rgba(255,255,255,.65); cursor: pointer; color: #2a1c12; }
.cr-tile b { font: 700 .66rem system-ui, sans-serif; text-align: center; line-height: 1.1; }
.cr-tile small { font: 600 .62rem system-ui, sans-serif; color: #6b5340; }
.cr-tile.sel { border-color: #b8860b; background: #fff3cf; box-shadow: 0 0 0 2px #e8c35e; }
.cr-tile.lock { opacity: .6; background: rgba(210,200,180,.6); }
.cr-detail { background: rgba(255,255,255,.6); border: 1.5px solid rgba(107,66,38,.4); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.cr-dh { display: flex; align-items: center; gap: 8px; } .cr-dh .cr-e { font-size: 1.8rem; }
.cr-dh > div { flex: 1; min-width: 0; } .cr-dn { font: 700 1.05rem Georgia, serif; display: block; } .cr-dh small { font: 500 .74rem system-ui, sans-serif; color: #6b5340; display: block; }
.cr-have { font: 500 .78rem system-ui, sans-serif; color: #5a4030; text-align: right; white-space: nowrap; }
.cr-for { margin: 0; font: 500 .78rem/1.25 system-ui, sans-serif; color: #4a3626; }
.cr-sec { font: 800 .68rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a5a2b; margin-top: 2px; }
.cr-qty { display: flex; gap: 6px; align-items: stretch; }
.cr-qty .btn { min-width: 44px; min-height: 44px; font-size: 1.2rem; padding: 0 10px; }
.cr-qty input { flex: 1; min-width: 0; text-align: center; font: 700 1.3rem system-ui, sans-serif; border: 2px solid #8a5a2b; border-radius: 12px; background: #fffaf0; color: #2a1c12; }
.cr-qty .cr-max { min-width: 96px; font-size: .95rem; }
.cr-chips { gap: 5px; }
.cr-total { font: 500 .85rem system-ui, sans-serif; color: #3e2616; }
.cr-whys { display: flex; flex-direction: column; gap: 4px; }
.cr-why { display: flex; align-items: center; gap: 6px; text-align: left; border: 1.5px solid rgba(154,74,62,.45); background: #fbefea; color: #7a3a2e; border-radius: 10px; padding: 6px 8px; font: 600 .82rem system-ui, sans-serif; cursor: pointer; min-height: 34px; }
.cr-why i { font-style: normal; } .cr-why b.bad { color: #b03a2a; } .cr-why b.okc { color: #2a6b42; }
.cr-why.ok { border-color: rgba(42,107,66,.45); background: #eef8ee; color: #2a6b42; cursor: default; }
.cr-why.bad { cursor: default; }
.cr-src { display: flex; align-items: center; gap: 8px; text-align: left; border: 1.5px dashed rgba(154,74,62,.55); background: #fff6f1; border-radius: 10px; padding: 5px 8px; font: 500 .78rem system-ui, sans-serif; color: #5a3a30; cursor: pointer; }
.cr-src span { flex: 1; display: flex; flex-direction: column; } .cr-src b { font-weight: 700; color: #9a3a2a; } .cr-src i { font-style: normal; font-weight: 900; font-size: 1.1rem; }
.cr-start { min-height: 48px; font-size: 1rem !important; margin-top: 2px; }
.cr-hint { margin: 4px 2px; font: 500 .85rem system-ui, sans-serif; color: #5a4030; }
/* tree */
.cr-tree { background: rgba(255,255,255,.4); border: 1.5px solid rgba(107,66,38,.35); border-radius: 14px; padding: 6px 6px 4px; display: flex; flex-direction: column; gap: 4px; }
.cr-trow { display: flex; align-items: center; gap: 6px; }
.cr-tl { flex: 0 0 44px; font: 800 .62rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #8a5a2b; line-height: 1.1; }
.cr-nodes { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.cr-n { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--bc, #888); background: #fffaf0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cr-ne { font-size: 1.15rem; line-height: 1; }
.cr-nb { position: absolute; right: -4px; bottom: -4px; font-style: normal; font: 800 .6rem system-ui, sans-serif; background: #fff; border-radius: 9px; min-width: 15px; text-align: center; padding: 0 2px; color: #2a6b42; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.cr-n.done { background: #e4f4df; } .cr-n.ready { background: #fff1c0; box-shadow: 0 0 0 3px #e8b83d; } .cr-n.open { background: #fffaf0; }
.cr-n.lock { background: #ddd5c4; filter: grayscale(.7); opacity: .85; } .cr-n.lock .cr-nb { color: #7a3a2e; }
.cr-n.sel { outline: 3px solid #2a1c12; outline-offset: 1px; }
.cr-n.pre { box-shadow: 0 0 0 3px #3e9a52; } .cr-n.opn { box-shadow: 0 0 0 3px #d97a1f; }
.cr-n.bld { border-radius: 12px; width: 46px; }
.cr-legend { display: flex; gap: 8px; flex-wrap: wrap; font: 600 .62rem system-ui, sans-serif; color: #5a4030; padding: 2px 4px; }
.cr-legend .lg.ready { color: #8a6a00; } .cr-legend .lg.done { color: #2a6b42; } .cr-legend .lg.lock { color: #7a3a2e; }
.cr-opens { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-mini { display: inline-flex; align-items: center; gap: 3px; border: 1.5px solid rgba(107,66,38,.4); background: #fff; border-radius: 999px; padding: 2px 8px; font: 600 .74rem system-ui, sans-serif; color: #3e2616; cursor: pointer; }
.cr-mini .cr-e { font-size: .95rem; }
/* pantry */
.cr-pantry { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow: hidden; }
.cr-prow { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.6); border: 1.5px solid rgba(107,66,38,.3); border-radius: 12px; padding: 4px 8px; }
.cr-pm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cr-pm b { font: 700 .86rem system-ui, sans-serif; } .cr-pm small { font: 500 .68rem system-ui, sans-serif; color: #6b5340; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-tag { font: 700 .66rem system-ui, sans-serif; background: #eadbb7; border-radius: 8px; padding: 2px 6px; color: #6b4226; }
.cr-foot { margin: 0; font: 600 .74rem system-ui, sans-serif; color: #6b4226; text-align: center; }
/* confirm */
#crConfirm { position: fixed; inset: 0; z-index: 9500; background: rgba(20,12,6,.55); display: flex; align-items: center; justify-content: center; padding: 18px; }
.cr-cbox { background: #f6e7c4; border: 3px solid #8a5a2b; border-radius: 18px; padding: 16px; width: min(92vw, 360px); display: flex; flex-direction: column; gap: 8px; text-align: center; color: #2a1c12; font-family: system-ui, sans-serif; }
.cr-cbox b { font: 700 1.1rem Georgia, serif; } .cr-cbox p { margin: 0; font-size: .9rem; } .cr-cg { font-size: 1rem !important; }
/* Barracks with a crafted troop type picked: the cost chips get one more row, so the panel tightens to stay one screen (no scroll at 390x844) */
.wk:has(.cr-tier.on:not([data-t="militia"])) .ruler-tip { display: none; }
.wk:has(.cr-tier.on:not([data-t="militia"])) .uc-cost { gap: 4px; }
.wk:has(.cr-tier.on:not([data-t="militia"])) .uc-cost .uc-chip { min-height: 24px; padding: 1px 7px; font-size: .74rem; }
.wk:has(.cr-tier.on:not([data-t="militia"])) .uc-cost .uc-chip .cr-e, .wk:has(.cr-tier.on:not([data-t="militia"])) .uc-cost .uc-chip .cur-ico { font-size: .9rem; width: 14px !important; height: 14px !important; }

/* Double Speed running: the button turns into a live "2× on" timer (not greyed out) */
.cr-jb .btn[data-cr-dbl][disabled] { opacity: 1; background: linear-gradient(#8bd18b, #4f9d57); color: #fff; border-color: #2f6f3a; text-shadow: 0 1px 0 rgba(0,0,0,.35); cursor: default; }

/* narrow phones: the running job's buttons sit side by side on their own line under the name and timer, so the full item name and count show */
.cr-job.head { flex-wrap: wrap; }
.cr-job.head .cr-jm { flex: 1 1 0; min-width: 0; }
.cr-job.head .cr-jb { flex: 1 0 100%; flex-direction: row; gap: 6px; }
.cr-job.head .cr-jb .btn { flex: 1 1 0; min-width: 0; }
.cr-jt b { overflow: visible; text-overflow: clip; }

/* narrow phones (360-400 wide): a crafting building's upgrade card is compacted so the panel with two running jobs stays one screen */
@media (max-width: 400px) {
  .wk:has(.cr-panel) .uc-cost { gap: 4px; }
  .wk:has(.cr-panel) .uc-cost .uc-chip { min-height: 24px; padding: 1px 7px; font-size: .74rem; }
  .wk:has(.cr-panel) .uc-cost .uc-chip .cr-e, .wk:has(.cr-panel) .uc-cost .uc-chip .cur-ico { font-size: .9rem; width: 14px !important; height: 14px !important; }
  .wk:has(.cr-panel) .wk-upgrade { font-size: .92rem; padding-top: 7px; padding-bottom: 7px; white-space: nowrap; }
  .wk:has(.cr-panel) .wk-upgrade small { font-size: .7rem; }
}

/* ================= ux1 (2026-11-13): crafting you can read at a glance ================= */
.cr-panel { gap: 6px; }
.cr-panel .cr-sec { display: flex; align-items: baseline; gap: 4px; margin: 2px 2px 0; font-size: .74rem; }
.cr-idle { text-transform: none; letter-spacing: 0; font-weight: 600; color: #6b5340; }
.cr-mks { display: flex; flex-direction: column; gap: 5px; }
.cr-mk { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; border: 2px solid rgba(107,66,38,.3); background: rgba(255,255,255,.6); }
.cr-mk.ok { border-color: rgba(42,107,66,.55); background: #f1faef; }
.cr-mk > .cr-e { font-size: 1.9rem; flex: none; }
.cr-mkm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.cr-mkm b { font: 700 1rem system-ui, sans-serif; color: #2a1c12; }
.cr-mkm small { font: 500 .78rem system-ui, sans-serif; color: #5a4030; }
.cr-mkm small em { font-style: normal; font-weight: 800; color: #b07a00; }
.cr-mkm .uc-chips { gap: 4px; margin-top: 1px; }
.cr-mkm .uc-chip { min-height: 28px; padding: 1px 8px; font-size: .78rem; }
.cr-mkb { flex: none; display: flex; gap: 5px; }
.cr-mkgo { min-width: 84px; min-height: 46px; font-size: 1rem !important; }
.cr-mkamt { min-width: 44px; min-height: 46px; font-size: 1.2rem !important; padding: 0 !important; }
.cr-nx { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.4); border: 1.5px dashed rgba(107,66,38,.45); font-family: system-ui, sans-serif; }
.cr-nx.done { border-style: solid; border-color: rgba(42,107,66,.45); background: #eef8ee; color: #2a6b42; font-weight: 700; font-size: .85rem; flex-direction: row; gap: 6px; }
.cr-nx.done i { font-style: normal; }
.cr-nxt { font: 600 .82rem system-ui, sans-serif; color: #3e2616; display: flex; align-items: center; gap: 4px; }
.cr-nxt .cr-e { font-size: 1.05rem; }
.cr-nx .cr-why { min-height: 44px; font-size: .85rem; }
.cr-actions .cr-all { flex: 1.5; min-height: 46px; font-size: .95rem !important; }
.cr-actions .cr-side { flex: 1; min-width: 0; min-height: 46px; font-size: .92rem !important; position: relative; }
.cr-dot { font-style: normal; background: #c0392b; color: #fff; border-radius: 9px; font-size: .72rem; padding: 0 6px; margin-left: 3px; }
/* farm pen */
.cr-farm { gap: 6px; }
.cr-pcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cr-pc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 4px 2px; border-radius: 10px; border: 1.5px solid rgba(107,66,38,.3); background: rgba(255,255,255,.55); font-family: system-ui, sans-serif; line-height: 1.15; }
.cr-pc.has { background: #f1faef; border-color: rgba(42,107,66,.5); }
.cr-pc.lock { opacity: .6; }
.cr-pc .cr-e { font-size: 1.4rem; }
.cr-pc b { font-size: .78rem; } .cr-pc small { font-size: .74rem; color: #5a4030; }
.cr-penb { min-height: 48px; font-size: 1rem !important; }
.cr-herd { flex-direction: column; align-items: stretch; gap: 5px; padding: 6px 8px; border-radius: 12px; background: #fbefea; border: 1.5px solid rgba(154,74,62,.45); font: 600 .85rem system-ui, sans-serif; color: #7a3a2e; }
.cr-herd.ok { background: #eef8ee; border-color: rgba(42,107,66,.45); color: #2a6b42; flex-direction: row; align-items: center; }
.cr-herd.ok i { font-style: normal; font-weight: 900; }
.cr-tend { min-height: 46px; font-size: .98rem !important; }
/* pantry */
.cr-chestmsg { margin: 0; background: #e6f4e4; border: 2px solid #4fa05a; border-radius: 12px; padding: 8px 10px; font: 700 .9rem system-ui, sans-serif; color: #1f6b32; }
.cr-pantry.act { flex: none; }
.cr-pantry.act .cr-prow { min-height: 52px; }
.cr-prow .btn.sm { min-height: 44px; }
.cr-pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.cr-pt { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 2px 3px; min-height: 60px; border-radius: 10px; border: 1.5px solid rgba(107,66,38,.35); background: #fffaf0; color: #2a1c12; cursor: pointer; min-width: 0; }
.cr-pt .cr-e { font-size: 1.3rem; } .cr-pt b { font: 800 .88rem system-ui, sans-serif; }
.cr-pt small { font: 600 .72rem system-ui, sans-serif; color: #6b5340; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-pt.sel { outline: 3px solid #2a1c12; outline-offset: 1px; background: #fff3cf; }
.cr-pdet { flex: none; min-height: 48px; background: rgba(255,255,255,.65); border: 1.5px solid rgba(107,66,38,.35); border-radius: 12px; padding: 6px 10px; font: 500 .86rem/1.25 system-ui, sans-serif; color: #3e2616; }
/* tree: what to do next */
.cr-donext { display: flex; flex-direction: column; gap: 4px; }
.cr-do { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; text-align: left; border-radius: 12px; border: 2px solid rgba(154,74,62,.5); background: #fff6f1; padding: 4px 10px; font-family: system-ui, sans-serif; color: #2a1c12; cursor: pointer; margin: 0; }
.cr-do.ready { border-color: #e8b83d; background: #fff3cf; }
.cr-do .cr-e { font-size: 1.5rem; }
.cr-do span { flex: 1; display: flex; flex-direction: column; line-height: 1.15; } .cr-do b { font-size: .92rem; } .cr-do small { font-size: .76rem; color: #5a4030; font-weight: 500; }
.cr-do i { font-style: normal; font-weight: 900; font-size: 1.3rem; }
.cr-treehint { text-align: center; }
.cr-tile.can { border-color: #e8b83d; background: #fff8e0; }
/* a crafting building: the make list is the star, so the banter and the upgrade card give up height */
.wk:has(.cr-panel) .wk-bubble { display: none; }
.wk:has(.cr-panel) .wp, .wk:has(.cr-farm) .wp { display: none; }
.wk:has(.cr-panel) .uc, .wk:has(.cr-farm) .uc { padding: 8px 10px; gap: 4px; }
.wk:has(.cr-panel) .uc .uc-perk, .wk:has(.cr-panel) .uc .uc-rp, .wk:has(.cr-farm) .uc .uc-perk, .wk:has(.cr-farm) .uc .uc-rp { display: none; }
.wk:has(.cr-panel) .uc .uc-gains { gap: 0; }
.wk:has(.cr-panel) .uc .uc-chip { min-height: 26px; }
.wk:has(.cr-panel) .uc .uc-btn { min-height: 44px; }
.wk:has(.cr-panel) .wk-details { margin-top: 0; }
@media (max-height: 800px) {
  .cr-mk { padding: 4px 8px; }
  .cr-mk > .cr-e { font-size: 1.6rem; }
  .cr-mkgo, .cr-mkamt, .cr-actions .cr-all, .cr-actions .cr-side { min-height: 44px; }
  .cr-panel { gap: 4px; }
}
.cr-mkm small { white-space: nowrap; }
.cr-mkgo { min-width: 76px; } .cr-mkamt { min-width: 40px; }
.cr-mkm .uc-chip { white-space: nowrap; }
.cr-actions .cr-all, .cr-actions .cr-side { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 3px; padding-left: 4px !important; padding-right: 4px !important; }
.cr-nx { padding: 5px 8px; gap: 3px; }
.cr-nx .cr-why { min-height: 40px; padding-top: 2px; padding-bottom: 2px; }
.cr-nxt { font-size: .76rem; }
@media (max-width: 380px) { .cr-mkgo { min-width: 70px; } .cr-mk { gap: 6px; padding: 4px 6px; } }
/* the crafting sheet sits at the bottom, as tall as it needs to be: the make list is the star, the painted scene shows above it */
@media (max-width: 820px) {
  .overlay-card.prod-scene > #overlayBody:has(.cr-panel), .overlay-card.prod-scene > #overlayBody:has(.cr-farm), .overlay-card.prod-scene > #overlayBody:has(.cr-panel) { padding-top: 58px; display: flex; flex-direction: column; }
  .overlay-card.prod-scene > #overlayBody:has(.cr-panel) > .wk2, .overlay-card.prod-scene > #overlayBody:has(.cr-farm) > .wk2 { margin-top: auto; flex: none; }
}
/* the Armory / Lovers pages don't load the Town's chip + button styles: give the sheet its own so have/need reads green/red everywhere */
.cr-sheet .uc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-sheet .uc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; min-height: 30px; border-radius: 999px; font: 700 .85rem system-ui, sans-serif; background: #eaf6ea; border: 1.5px solid rgba(42,107,66,.5); color: #2a6b42; cursor: default; }
.cr-sheet .uc-chip.short { background: #fbefea; border-color: rgba(154,74,62,.55); color: #9a3a2e; cursor: pointer; }
.cr-sheet .uc-chip .cur-ico, .cr-sheet .uc-chip img { width: 18px; height: 18px; }
.cr-sheet .btn.good { background: linear-gradient(180deg, #5db96f, #2f8a45); color: #fff; border: 2px solid #2a6b3a; font-family: system-ui, sans-serif; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.cr-sheet .btn.good:disabled, .cr-sheet .btn.good[aria-disabled=true] { opacity: .55; filter: saturate(.5); }
/* ux1 round 2 */
.cr-mkm b .cr-new { font: 800 .68rem system-ui, sans-serif; font-style: normal; color: #fff; background: #d99a00; border-radius: 8px; padding: 1px 6px; vertical-align: 2px; }
.cr-herd.ok { padding: 4px 8px; min-height: 0; display: block; }
.cr-pc { padding: 3px 2px; } .cr-pc .cr-e { font-size: 1.25rem; } .cr-pc b { font-size: .74rem; }
.cr-pc small { white-space: nowrap; } .cr-pc b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cr-penb { min-height: 46px; }
.cr-tendrow { display: flex; align-items: center; gap: 6px; } .cr-tendrow .cr-tend { flex: 1; min-height: 44px; white-space: nowrap; padding: 0 8px !important; } .cr-tendrow .uc-chip { flex: none; }
.wk:has(.cr-farm) .uc .uc-chip { min-height: 26px; }
.wk:has(.cr-farm) .uc .uc-btn { min-height: 44px; }
.wk:has(.cr-farm) .wk-rate { display: none; }
.wk:has(.cr-farm) .uc .uc-gain + .uc-gain { display: none; }
.pin-badge.pin-make-badge { background: #d99a00; color: #2a1c12; font-size: 1rem; box-shadow: 0 0 0 2px rgba(255,236,180,.8), 0 2px 8px rgba(60,40,0,.5); }

/* farm_care_v1: the Farm building panel keeps one small pointer card to the Farm animals screen */
.cr-farmcard .cr-herd { padding: 6px 9px; } .cr-farmcard .cr-herd:not(.ok) { display: block; color: #9a4a3e; }
.cr-farmcard .cr-penb { min-height: 46px; }
