/* One typeface (DM Sans) and two sizes for the status cards and the inventory: 20px for the big number, 18px for a panel heading,
   14px for everything else. The inventory is wider, and each place that holds things has its own colour (--zc) so you can see at a glance
   what belongs to what. Loaded last, so it wins over the older rules. */

/* ---- status cards ---- */
.chips .stat, .chips .stat * { font-family: var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; }
.chips .stat .k, .chips .stat .k .lab, .chips .stat .v small, .chips .wx-t small, .chips .tm-t small, .chips .wx-t .wx, .chips #sNeeds { font-size: 14px !important; font-weight: 600; color: var(--muted); }
.chips .stat .v, .chips .wx-t b, .chips .tm-t b { font-size: 20px !important; font-weight: 700; line-height: 1.15; }
.chips .stat .k .ico { display: none; }
.chips .wx-t { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.chips .wx-t b { flex: 1 1 100%; }
body:not(.mobile) .chips .stat { height: 78px; }
body:not(.mobile) .chips .tmcard { gap: 4px; } body:not(.mobile) .chips .tmcard svg { width: 40px; height: 40px; }
body:not(.mobile) #cardPop svg { height: 34px; max-width: 70px; }

/* ---- inventory and the panels beside it ---- */
.invpanel { width: 256px; background: color-mix(in srgb, var(--panel) 76%, transparent) !important; backdrop-filter: blur(3px); }      /* thin and see-through: the farm shows behind */
.flockpanel { right: 268px; }
.invpanel, .invpanel *, #nearPanels, #nearPanels * { font-family: var(--font-body) !important; font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; font-style: normal !important; }
.invpanel .ip-ico, .invpanel .ip-ico *, #nearPanels .ip-ico, #nearPanels .ip-ico * { font-size: 22px !important; }
.invpanel .ip-h, .invpanel .ip-h *, #nearPanels .ip-h, #nearPanels .ip-h * { font-size: 18px !important; font-weight: 700; color: inherit; }
.invpanel .ip-cl, .invpanel .ip-item .nm { font-weight: 500; color: var(--fg); }      /* the same weight as a row in the Build panel */
.invpanel .ip-cap, .invpanel .ip-item .qty, .invpanel .ip-item small { color: var(--muted); }
.invpanel .ip-units { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.invpanel .ip-item.unit { padding: 4px 6px; }

/* each place gets a colour: its heading is a coloured tag and the section has a coloured edge and tint */
[data-zone] { --zc: #8a8f87; }
[data-zone="hands"] { --zc: #d9741a; }  [data-zone="loose"] { --zc: #a8861a; }  [data-zone="pockets"] { --zc: #2f6fb0; }  [data-zone="bags"] { --zc: #7a4fa8; }
[data-zone="basket"] { --zc: #4a8a2e; } [data-zone="bucket"] { --zc: #1f8aa8; } [data-zone="truck"] { --zc: #b5412b; }
[data-zone="stand"], [data-zone="stall"] { --zc: #2f8a52; } [data-zone="supplies"] { --zc: #1f8ab0; } [data-zone="fridge"], [data-zone="sfridge"] { --zc: #1f8a8a; } [data-zone="pantry"] { --zc: #b04a80; }
[data-zone="barn"] { --zc: #8a5a2a; } [data-zone="shelf"], [data-zone="shopbasket"], [data-zone="baskets"] { --zc: #c0562a; }
section.ip-zone[data-zone], .ip-item.ip-zone[data-zone="basket"], .ip-item.ip-zone[data-zone="bucket"] { border: 2px solid color-mix(in srgb, var(--zc) 45%, transparent); border-left: 8px solid var(--zc); border-radius: 8px; background: color-mix(in srgb, var(--zc) 9%, var(--panel)); padding: 6px 8px; margin: 8px 0; }
.invpanel .ip-zone > h4, #nearPanels .ip-zone.near > .ip-h > span { display: inline-block; background: var(--zc); color: #fff; padding: 2px 12px; border-radius: 12px; margin: 0 0 6px; font-weight: 700; }
#nearPanels .ip-zone.near > .ip-h > span { font-size: 18px !important; }
.ip-zone.over { background: color-mix(in srgb, var(--zc) 28%, var(--panel)) !important; }
.ip-zone.ok { background: color-mix(in srgb, var(--good) 24%, var(--panel)) !important; }

/* the tutorial pulses the box it is talking about; the panel is redrawn often, so the glow is re-applied by the tutorial each step and by the panel's own class list */
@keyframes tutglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,74,0); } 50% { box-shadow: 0 0 0 5px rgba(255,210,74,.9); } }
.tut-glow { animation: tutglow 1.1s ease-in-out infinite; }
#tutBox button { margin-left: 8px; }

/* the little x that puts a thing down is easy to hit, and the Drop buttons (top of the board, left of the Inventory) pulse so you notice them */
.invpanel .ip-x { width: 24px; height: 24px; top: -9px; right: -7px; font-size: 20px !important; line-height: 1; border-width: 2px; border-color: #b9402a; color: #b9402a; background: #fff; }
.invpanel .ip-x.no { border-color: rgba(0,0,0,.25); color: #999; }
.dropchip { animation: dropPulse2 1s ease-in-out infinite; font-weight: 700; }
@keyframes dropPulse2 { 0%, 100% { box-shadow: 0 0 0 0 rgba(236,172,32,0); transform: scale(1); } 50% { box-shadow: 0 0 0 7px rgba(236,172,32,.85); transform: scale(1.1); } }

/* the coop cleanliness dial sits left of popularity, with the same dial shape */
body:not(.mobile) #cardCoop svg { height: 34px; max-width: 70px; }
#cardCoop { align-self: stretch; }

/* inventory polish: cartons and other single items have no box of their own, the x is a bit smaller, and things have room below them */
.invpanel .ip-item.unit { border-color: transparent !important; background: transparent !important; box-shadow: none; }
.invpanel .ip-item.unit:hover { background: color-mix(in srgb, var(--zc, #888) 12%, transparent) !important; }
.invpanel .ip-x { width: 18px; height: 18px; top: -6px; right: -4px; font-size: 15px !important; border-width: 1.5px; }
/* the pictures sit evenly between their label and the next one: the row's padding above leaves just room for the x */
.invpanel .ip-item.unit { height: auto; padding: 3px 6px; }
.invpanel .ip-units { padding: 6px 0 4px; row-gap: 10px; }
.invpanel .ip-cat { padding-bottom: 8px; }
section.ip-zone[data-zone], .ip-item.ip-zone[data-zone="basket"], .ip-item.ip-zone[data-zone="bucket"] { padding-bottom: 14px; }

/* the tutorial window: roomier text, a close x top right, and a big blue Next bottom right */
#tutBox { max-width: min(440px, 88%); padding: 16px 44px 14px 18px; font: 600 14px/1.75 'DM Sans', sans-serif; text-align: left; }
#tutBox .tuttext { padding-right: 6px; }
#tutBox .tutfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
#tutBox .tutfoot small { display: inline; opacity: .75; font-size: 13px; font-weight: 500; margin: 0 10px 0 0; }
#tutBox button { margin: 0; font-family: 'DM Sans', sans-serif; cursor: pointer; }
#tutBox .tutlink { border: 0; background: none; color: #bcd9ff; text-decoration: underline; font-size: 13px; font-weight: 500; padding: 0; }
#tutBox .tutbig { margin-left: auto; border: 0; border-radius: 10px; background: #2f7fd9; color: #fff; font-size: 16px; font-weight: 700; padding: 10px 28px; box-shadow: 0 2px 0 #1d56a0; }
#tutBox .tutbig:hover { background: #3b8cea; }
#tutBox #tutX { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; line-height: 24px; font-weight: 700; }
#tutBox #tutX:hover { background: rgba(255,255,255,.3); }

/* the little x on a single item and the x on a carried tool are one size and one look */
.invpanel .ip-x, .invpanel .ip-drop.dx { width: 20px; height: 20px; padding: 0; border: 1.5px solid #b9402a; border-radius: 50%; background: #fff; color: #b9402a; font-size: 15px !important; font-weight: 800; line-height: 17px; display: inline-flex; align-items: center; justify-content: center; }
.invpanel .ip-drop.dx { margin-left: auto; }
.invpanel .ip-x { top: -7px; right: -5px; }
[data-zone="me"] { --zc: #d9741a; }
/* One Inventory: Tools, Your stuff, the truck, the stand and the rest are subheadings under it. A place is marked by a coloured edge and a bar showing how full it is; no boxes inside boxes. */
section.ip-zone[data-zone], .ip-item.ip-zone[data-zone="basket"], .ip-item.ip-zone[data-zone="bucket"], .ip-item.ip-zone[data-zone="shopbasket"] { border: 0; border-left: 5px solid var(--zc); border-radius: 0 6px 6px 0; background: none; padding: 2px 4px 4px 8px; margin: 10px 0 0; }
/* every section's heading, in the Inventory and the Build panel alike: its name in its colour, and an arrow that opens and shuts it */
.invpanel .ip-zone > h4 { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: none; color: var(--zc); padding: 0; margin: 0 0 2px; border-radius: 0; font-weight: 700; cursor: pointer; }
.invpanel .ip-zone > h4 .fold { font-size: 11px !important; opacity: .85; }
#nearPanels { margin: 0; padding: 0; }
.zbar { height: 6px; border-radius: 3px; overflow: hidden; margin: 2px 0 6px; background: color-mix(in srgb, var(--zc) 20%, transparent); } .zbar i { display: block; height: 100%; border-radius: 3px; background: var(--zc); } .zbar.full i { background: #c0392b; }
.invpanel .ip-cat { border: 0; background: none; padding: 0 0 6px; margin: 0; }
.invpanel .ip-item:not(.unit) { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; } .invpanel .ip-item:not(.unit):hover { border-color: color-mix(in srgb, var(--zc, #888) 40%, transparent); }
.invpanel .ip-item.ip-zone { padding-left: 8px; }
/* a container inside a list (the basket, a bucket, the shopping basket) ends with a line, so what follows is plainly not in it */
.invpanel .ip-item.ip-zone { border-bottom: 2px solid color-mix(in srgb, var(--zc, #888) 35%, transparent) !important; padding-bottom: 8px; margin-bottom: 8px; }
.ip-total { font-size: 18px; } .ip-total small { font-size: 14px; font-weight: 600; }
.invpanel .ip-cap { display: none; }      /* a bar says how full something is, no words needed */
.invpanel .ip-bar { height: 6px; background: color-mix(in srgb, var(--zc, #888) 20%, transparent); }

/* The title screen: the farm shows through behind the menu, which floats on a frosted card; the game's own bars step aside. */
.menuov { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(18,26,12,.55) 100%) !important; }
body.title .top, body.title .trackrow, body.title .todo, body.title .stage > :not(canvas):not(#verRow), body.title .bugworm { visibility: hidden; }
.mm { background: rgba(255,251,240,.86) !important; backdrop-filter: blur(6px); }
.mm .logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 2px; }
.mm .logo h1 { font-size: 30px; color: #6b2d1c; text-shadow: 0 2px 0 #f1d48a; }
.mm .logo img { width: 30px; height: 30px; image-rendering: pixelated; }
.mm .sub { text-align: center; }
/* A cleaner top bar: one strip, its readouts divided by thin lines rather than each in a box of its own, and the menu buttons as icons. */
.top .chips { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 4px; gap: 0 !important; }
.chips .stat { border: 0 !important; background: none !important; border-radius: 0 !important; }
.chips .stat + .stat { border-left: 1px solid var(--line) !important; }
body:not(.mobile) .chips .stat { height: 72px !important; }
body:not(.mobile) .menubtns, .menubtns { display: flex !important; flex-wrap: nowrap; gap: 4px; align-items: center; margin-left: auto; padding-left: 6px; height: auto !important; }
body:not(.mobile) .top .chips { display: flex !important; } body:not(.mobile) .chips .stat { flex: 1 1 0 !important; }
/* every card the same width, what is in it centred */
body:not(.mobile) .chips .stat { justify-content: center; align-items: center; text-align: center; }
.menubtns .btn .lab { display: none; }
.menubtns .btn { padding: 6px 8px; width: auto !important; min-width: 0 !important; } .menubtns .btn .ico { font-size: 18px; }
.chips .tm-t small, .chips #sDay { white-space: nowrap; }

/* ---- a phone held upright (the mobile view): menu buttons get a row of their own under the five status cards, the board's own Sneak and
   Building buttons give way to the touch pad's, the tutorial is smaller, and the Inventory sits below, full width (placeInventory). Held
   sideways there is room for one row, and the touch pad's Build and Sneak would sit over the board, so the board keeps its own. ---- */
@media (orientation: portrait) {
  body.mobile .top .chips { display: grid !important; grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr) 46px; align-items: center; column-gap: 2px; }
  body.mobile .top .chips > .stat { min-width: 0; padding-inline: 5px; } body.mobile .top .chips .v, body.mobile .top .chips .stat b { font-size: 18px !important; } body.mobile #cardPop svg { width: 40px; height: auto; }
  body.mobile .top .menubtns { grid-column: 1 / -1; justify-content: space-between; margin: 0; padding: 4px 2px 2px; border-top: 1px solid var(--line); }
  body.mobile .top .menubtns .btn { flex: 1 1 0; display: grid; place-items: center; padding: 3px 0; }
  body.mobile .stagebtns > #bSneak { display: none; }
  /* every bit of height left goes to the board (boardSize): Build and Sneak stack beside the Act button rather than taking a row over it, and the
     Inventory and To-do bars are slimmer */
  body.mobile .touch { padding-block: 2px; }
  body.mobile .pad { display: grid; grid-template-columns: auto auto; gap: 8px 14px; align-items: center; }
  body.mobile .pad > .btn { grid-column: 1; padding: 6px 14px; font-size: 12px; }
  body.mobile .pad > #btnAct { grid-column: 2; grid-row: 1 / 3; }
  body.invbelow #invPanel { padding-block: 4px; } body.invbelow #invPanel .ip-h, body.invbelow #invPanel .ip-h * { font-size: 14px !important; }
  body.mobile .todo { padding-block: 1px; }
}
/* the smallest phones (320px across) cannot fit the five readouts with their pictures: the numbers stay, the thermometer and clock face go */
@media (orientation: portrait) and (max-width: 370px) { body.mobile #therm, body.mobile #aclock { display: none; }
  body.mobile .top .chips { grid-template-columns: min-content min-content minmax(0, 1fr) minmax(0, 1fr) 46px; } }
@media (orientation: landscape) { body.mobile #btnBuild, body.mobile #btnSneak { display: none; } }
body.mobile #tutBox { top: 8px; max-width: 92%; padding: 10px 36px 10px 12px; font-size: 12px; line-height: 1.5; }
body.mobile #tutBox .tutbig { font-size: 14px; padding: 6px 16px; } body.mobile #tutBox .tutfoot { margin-top: 6px; }
body.invbelow .invpanel#invPanel { position: static; width: auto; max-height: none; margin-inline: 8px; }
/* the section under the pointer, outlined in its own colour like its place on the map */
.ip-zone[data-zone].hl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--zc) 65%, #fff), 0 0 0 4px rgba(0,0,0,.35); border-radius: 8px; }
/* "Stock the farm store" under your egg cartons: the farm store's green; grey while no carton is full */
.invpanel .ip-stock { display: block; width: 100%; margin: 2px 0 4px; padding: 5px 8px; border: 0; border-radius: 8px; background: #2f8a52; color: #fff; font-weight: 700; cursor: pointer; }
.invpanel .ip-stock:hover { filter: brightness(1.08); }
.invpanel .ip-stock.no { background: #b9bdb6; color: #f4f4f0; }

/* ---- the menus (Farm status, Settings, Debug, Help, Log) in the panels' type: big headings, body text in the panels' font, places in their
   colours the way the Inventory shows them ---- */
.sheet-head h2 { font-size: 22px; }
.sheet .stat { border: 2px solid color-mix(in srgb, var(--zc, #8a8f87) 45%, transparent); border-left: 8px solid var(--zc, #8a8f87);
  background: color-mix(in srgb, var(--zc, #8a8f87) 9%, var(--panel)); padding: 8px 10px 10px; }
.sheet .stat .k { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 4px; }
.sheet .stat > .k:first-child { display: inline-block; margin: 0 0 6px; padding: 2px 12px; border-radius: 12px; background: var(--zc, #8a8f87); color: #fff;
  font-size: 14px; font-weight: 700; }
.sheet .stat #sPets, .sheet .stat #sSupplies { font-size: 14px; color: var(--fg); line-height: 1.5; }
.sheet .stat .meter { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--zc, #888) 20%, transparent); }
.sheet .stat .meter i { background: var(--zc, var(--good)); } .sheet .stat .meter.low i { background: var(--bad); }
.sheet .stat.buy { border: 0; background: none; display: grid; place-items: center; }
[data-zone="st-feed"] { --zc: #a8861a; } [data-zone="st-coop"] { --zc: #8a5a2a; } [data-zone="st-chick"] { --zc: #c99a12; }
.sheet .sliders .slider label, .sheet .sliders .slider output { font-size: 14px; }
#sheetDebug .sliders .slider label, #sheetDebug .sliders .slider output { font-size: 12px; line-height: 1.25; }
.sheet .stat .v small { font-size: 14px; }

/* Settings: a short list of sliders, each with its name, the slider and its value on one line */
.setpanel { width: min(520px, 100%); }
.set-row { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 12px; margin-top: 14px; font-size: 18px; font-weight: 600; }
.set-row input[type=range] { width: 100%; accent-color: var(--accent); }
.set-row input[type=checkbox] { width: 39px; height: 39px; margin: 0; accent-color: var(--accent); cursor: pointer; }      /* three times the usual box (the owner) */
.set-row output { font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.setnote { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
/* the Debug button: a small bug, smaller than the menu buttons beside it */
/* the menu buttons in two rows, right-aligned in the top bar: the game's sheets above, the panels that open on the board below (the owner) */
/* the menu buttons in two groups side by side (the owner, November 2026): the panels (Flock, Status, Build, Craft, Talk), then Settings and
   Help; the home button on its own at the far left of the bar, bigger */
body:not(.mobile) .menubtns, .menubtns { flex-direction: row; align-items: center; gap: 12px !important; }
.menubtns .mb-group { display: flex; gap: 3px; }
.menubtns .mb-group + .mb-group { padding-left: 12px; border-left: 1px solid var(--line); }
.top .homebtn { padding: 6px 10px; align-self: center; flex: none; } .top .homebtn .ico { font-size: 22px; } .top .homebtn .lab { display: none; }
.menubtns .btn { padding: 3px 6px; } .menubtns .btn .ico { font-size: 14px; }
.menubtns .btn[aria-pressed="true"] { background: #f3e2b8; box-shadow: inset 0 0 0 2px #c9963c; }
/* the panels the buttons open, at the board's top left, one at a time (33c) */
.invpanel.craftpanel, .invpanel.talkpanel, .invpanel.flockpanel { left: 6px; right: auto; }
/* Debug: no button, only a small faint bug beside the version (the owner: hard to click by accident) */
.bugworm { background: rgba(0,0,0,.35); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.25); border-radius: 4px;
  padding: 0 5px; margin: 0; font: 600 10px 'DM Sans', sans-serif; line-height: 14px; cursor: pointer; pointer-events: auto; }      /* a small button, right of the frame rate */
.bugworm:hover { background: rgba(0,0,0,.6); color: #fff; }
/* the version beside the title on the main menu */
.mm .logo .mm-ver { font: 600 12px 'DM Sans', sans-serif; color: #8a6a4a; align-self: flex-end; margin: 0 0 6px -4px; }
.dbg-range { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

/* ---- the Flock: three hens to a row, each the map's own picture, her name, where she is, and what is wrong in words ---- */
.flockpanel { width: 330px; overflow-x: hidden; }
[data-zone="fl-hens"] { --zc: #b5762b; } [data-zone="fl-fancy"] { --zc: #7a4fa8; } [data-zone="fl-roosters"] { --zc: #b5412b; }
.fl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fl-c { position: relative; min-width: 0; padding: 4px 4px 6px; border: 0; border-radius: 7px; background: color-mix(in srgb, var(--zc, #888) 10%, transparent);
  text-align: center; }
.fl-c img.fl-p { display: block; width: 80px; height: 64px; margin: 0 auto; image-rendering: pixelated; }
.flockpanel .fl-n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flockpanel .fl-l, .flockpanel .fl-w b { font-size: 12px !important; }
.fl-l { margin: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-w { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 2px; }
.fl-w b { padding: 0 6px; border-radius: 8px; color: #fff; font-weight: 700; }
.fl-w b.y { background: #c98a12; } .fl-w b.r { background: #c0392b; }
/* how a thing keeps, in words beside its name in the Inventory (26n2): the Flock panel's pills, amber, red, and blue while frozen */
.cw { display: inline-flex; flex-wrap: wrap; gap: 2px 3px; margin-left: 4px; vertical-align: 1px; }
.cw b { padding: 0 5px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; text-transform: none; letter-spacing: 0; }
.cw b.y { background: #c98a12; } .cw b.r { background: #c0392b; } .cw b.b { background: #3a7fc0; }
.fl-c.dead { opacity: .6; } .fl-c.dead img { filter: grayscale(1); }
.fl-c.dead::after { left: 18%; top: 22px; width: 64%; }
/* a clear gap between the Inventory's main sections (Your stuff, the farm store, the truck, the stall...), so each reads as its own place */
#ipMine > section.ip-zone[data-zone] + section.ip-zone[data-zone] { margin-top: 20px !important; }

/* the Inventory in two boxes, a gap between them: what you carry on you (the heading and Your stuff), then everything else near you (the truck,
   the farm store, the stall...). One click on the heading still opens and closes both. The outer panel only lays them out. */
.invpanel#invPanel { background: none !important; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; }
/* each place near you (the truck, the farm store, its Supplies, the drill's hopper...) is a box of its own (the owner), with the same gap */
#invPanel > .ip-me, #nearPanels > section.ip-zone {
  background: color-mix(in srgb, var(--panel) 76%, transparent); backdrop-filter: blur(3px); border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 5px 8px 8px; }
#nearPanels:not([hidden]) { margin-top: 12px; }
#nearPanels > section.ip-zone[data-zone] { margin-top: 12px !important; }
#ipMine > :first-child, #nearPanels > section.ip-zone[data-zone]:first-child { margin-top: 0 !important; }
/* prices you set at the farm store and the stall (19i): green when normal, orange a bit off, red far off, with a small "high" or "low" */
/* a price on the row of what it is the price of (pricedHtml, 33) */
.invpanel .ip-clrow { display: flex; align-items: center; gap: 6px; }
.invpanel .ip-clrow .ip-cl { flex: 1; white-space: nowrap; }
.invpanel .ip-price { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 4px; border-radius: 8px;
  background: rgba(47, 138, 82, .07); }
.invpanel .ip-price button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: #e4e8e0; font-weight: 700; cursor: pointer; }
.invpanel .ip-price button:hover { background: #d4dbcf; }
.invpanel .ip-price .pv { min-width: 58px; text-align: center; font-weight: 700; }
.invpanel .ip-price .pv small { font-size: 10px; font-weight: 600; margin-left: 3px; }
.invpanel .ip-price .pv.ok { color: #2f8a52; }
.invpanel .ip-price .pv.off { color: #d9822b; }
.invpanel .ip-price .pv.far { color: #c0392b; }
.set-h { margin: 16px 0 0; font: 700 14px var(--font-display); }

/* the Craft panel (33b): as wide as its row of boxes, its labels smaller than the panels' 14px, the pictures bigger */
.invpanel.craftpanel { width: max-content; max-width: calc(100% - 290px); }
.invpanel.craftpanel .cr-emo { font-size: 22px !important; }
.invpanel.craftpanel .cr-box small, .invpanel.craftpanel .cr-col > b, .invpanel.craftpanel .cr-why, .invpanel.craftpanel .cr-ch small { font-size: 10px !important; }
.invpanel.craftpanel .cr-col > b { text-transform: uppercase !important; letter-spacing: .04em !important; }
.invpanel.craftpanel .cr-op { font-size: 22px !important; font-weight: 700; }
.invpanel.craftpanel .cr-ch span, .invpanel.craftpanel .cr-go { font-size: 12px !important; }
.invpanel.craftpanel .cr-bk .cr-emo { font-size: 18px !important; } .invpanel.craftpanel .cr-rec i, .invpanel.craftpanel .cr-rec b { font-size: 12px !important; }
.invpanel.craftpanel .cr-poof { font-size: 13px !important; font-weight: 800; }
.invpanel.craftpanel .cr-go { font-size: 22px !important; font-weight: 800; } .invpanel.craftpanel .cr-reset { font-size: 11px !important; }
.invpanel.craftpanel .cr-why { max-width: none; }
/* (the owner) no scroll bars on the Inventory: it scrolls with the wheel or a drag, and nothing in it is wider than the panel. A price row
   shrinks its name, not the price, so the + never runs off the edge. */
.invpanel { overflow-x: hidden; scrollbar-width: none; } .invpanel::-webkit-scrollbar { display: none; }
.invpanel .ip-clrow .ip-cl { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .invpanel .ip-price { flex: none; } .invpanel .ip-price .pv { min-width: 40px; }
/* the Inventory heading stays where it is at the top while the list scrolls under it, on a solid background of its own */
#invPanel { padding-top: 0; } #invPanel #ipHead { top: 0; z-index: 6; margin: 0 -8px 2px; padding: 6px 13px 4px; border-radius: 9px 9px 0 0; background: var(--panel); }
/* every fold arrow the size of the Inventory's own (the owner) */
.invpanel .fold, #nearPanels .fold, .invpanel .ip-zone > h4 .fold { font-size: 18px !important; line-height: 1; opacity: 1; }
