/* The build planner (planner-pages.ts, planner.js). The trees reuse the character page's .sk
   classes from site.css; what is here is the controls, the taller rows that hold the plus and
   minus buttons, the tooltip panel, the line that says why a tap did nothing, and the phone
   layout. Everything a finger presses is at least 30 px tall. A refused plus or minus is
   aria-disabled rather than disabled (planner.js says why on a tap), so it is dimmed here the
   way a disabled one is. */
.pl .pl-controls { display: grid; grid-template-columns: minmax(160px, 220px) minmax(150px, 190px) minmax(120px, 160px) minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: 4px 0 14px; border-bottom: 1px solid var(--rule); }
.pl .pl-row { min-width: 0; margin: 0; padding: 0; border: 0; }
.pl .pl-row .lab { margin-top: 4px; }
.pl .pl-step { display: flex; gap: 6px; align-items: stretch; }
.pl .pl-step .field { flex: 1 1 auto; min-width: 0; }
.pl .pl-step input { text-align: center; -moz-appearance: textfield; appearance: textfield; }
.pl .pl-step input::-webkit-inner-spin-button, .pl .pl-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pl .pl-pm { padding: 4px 0; width: 40px; font-size: 18px; line-height: 1; }
.pl .pl-quests { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.pl .pl-quests legend { float: left; width: 100%; padding: 0; }
.pl .pl-q { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink2); cursor: pointer; }
.pl .pl-q input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.pl .pl-quests .note { width: 100%; font-size: 13px; }

.pl .pl-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 14px 0 10px; font-family: "Exocet", Georgia, serif; font-size: 13.5px; color: var(--ink2); letter-spacing: .03em; }
.pl .pl-left-h { color: var(--ink3); }
.pl .pl-left b { color: var(--goldhi); font-weight: 400; font-size: 16px; }
.pl .pl-left .neg b { color: var(--bad); }
.pl .pl-notes { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--golddim); background: rgba(33, 27, 20, .7); color: var(--ink2); font-size: 14px; }
.pl .pl-notes ul { margin: 0; padding-left: 18px; }

.pl .pl-tabs button { min-height: 30px; color: var(--ink3); font-family: "Exocet", Georgia, serif; font-size: 12.5px; letter-spacing: .07em; padding: 6px 12px 5px; background: rgba(0, 0, 0, .5); border: 1px solid var(--rule); cursor: pointer; }
.pl .pl-tabs button:hover { color: #fff; }
.pl .pl-tabs button.on { background: rgba(199, 179, 119, .08); border-color: var(--edge); color: var(--title); }

.pl .pl-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 16px; align-items: start; }
.pl.busy .pl-n, .pl.busy .pl-pools b { opacity: .75; }
.pl .pl-view { min-width: 0; }
.pl .pl-page { max-width: 420px; }
.pl .pl-grid { grid-template-rows: repeat(var(--rows), 132px); }
.pl .pl-sk { gap: 4px; }
.pl .pl-ic { padding: 0; border: 0; cursor: pointer; }
.pl .pl-ic:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 2px; }
.pl .pl-sk.can .sk-ic { box-shadow: 0 0 0 1px var(--gold); }
.pl .pl-sk.can .sk-ic img { opacity: .7; filter: none; }
.pl .pl-sk.on .sk-ic img { opacity: 1; }
.pl .pl-sk.sel .sk-ic { box-shadow: 0 0 0 2px var(--goldhi); }
.pl .pl-sk .sk-nm { min-height: 2.4em; }
.pl .pl-ctl { display: inline-flex; align-items: center; gap: 2px; }
.pl .pl-b { width: 30px; height: 30px; padding: 0; border: 1px solid var(--rule2); background: var(--well); color: var(--goldhi); font: 400 17px/1 Georgia, serif; cursor: pointer; touch-action: manipulation; }
.pl .pl-b:hover:not(:disabled):not([aria-disabled="true"]) { border-color: var(--golddim); }
.pl .pl-b:disabled, .pl .pl-b[aria-disabled="true"] { color: var(--ink3); opacity: .45; cursor: default; }
.pl .pl-n { min-width: 34px; text-align: center; font-size: 13.5px; color: var(--ink); }
.pl .pl-n small { color: var(--ink3); font-size: 12px; }

.pl .pl-specs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pl .pl-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 8px; border: 1px solid var(--rule); }
.pl .pl-spec.shown { border-color: var(--rule2); background: rgba(22, 19, 15, .72); }
.pl .pl-spec.on { border-color: var(--golddim); }
.pl .pl-spec.shut .pl-spec-nm { color: var(--ink3); }
.pl .pl-spec-nm { min-height: 30px; padding: 4px 0; border: 0; background: none; color: var(--goldhi); font-family: "Exocet", Georgia, serif; font-size: 14px; cursor: pointer; text-align: left; }
.pl .pl-spec .btn, .pl .pl-notes .btn { min-height: 30px; }
.pl .pl-notes .btn { margin-left: 6px; vertical-align: baseline; }
.pl .pl-spec .note { font-size: 13px; }
.pl .pl-spec-text { margin: 0 0 10px; color: var(--ink2); font-size: 14px; max-width: 60ch; }

.pl .pl-attrs { display: grid; gap: 6px; max-width: 420px; }
.pl .pl-attr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border: 1px solid var(--rule); background: rgba(22, 19, 15, .72); }
.pl .pl-attr-nm { display: flex; flex-direction: column; min-width: 0; font-family: "Exocet", Georgia, serif; color: var(--gold); font-size: 14px; }
.pl .pl-attr-nm small { font-family: inherit; font-size: 12px; color: var(--ink3); letter-spacing: 0; }
.pl .pl-attr .pl-n { min-width: 44px; font-size: 15px; }
.pl .pl-pools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 420px; margin: 12px 0 8px; }
.pl .pl-pools div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 1px solid var(--rule2); }
.pl .pl-pools span { font-family: "Exocet", Georgia, serif; font-size: 12.5px; color: var(--ink3); }
.pl .pl-pools b { font-weight: 400; font-size: 20px; color: var(--goldhi); }
.pl .pl-pas { list-style: none; margin: 4px 0 0; padding: 0; max-width: 420px; font-size: 13.5px; }
.pl .pl-pas li { padding: 2px 0; border-bottom: 1px solid var(--rule); color: #6c84f5; overflow-wrap: anywhere; min-width: 0; }
.pl .pl-pas li.unk { color: var(--ink3); }
.pl.opening .pl-controls { opacity: .7; }
.pl .pl-say { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; max-width: min(92vw, 520px); margin: 0; padding: 8px 14px; border: 1px solid var(--golddim); background: rgba(7, 6, 5, .96); color: var(--ink); font-size: 14px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.pl .pl-say[hidden] { display: none; }

.pl .pl-tip { position: sticky; top: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--rule2); background: rgba(7, 6, 5, .92); font-size: 14px; }
.pl .pl-tn { font-size: 17px; margin-bottom: 4px; }
.pl .pl-h { margin: 10px 0 2px; font: 400 13px/1.3 "Exocet", Georgia, serif; color: var(--gold); letter-spacing: .04em; }
.pl .pl-long { margin: 8px 0 4px; color: var(--ink2); }
.pl .pl-lines { list-style: none; margin: 0; padding: 0; color: #6c84f5; }
.pl .pl-lines li { padding: 1px 0; overflow-wrap: anywhere; }
.pl .pl-lines li.unk { color: var(--ink3); }
.pl .pl-prob { margin-top: 10px; font-size: 12.5px; color: var(--ink3); }
.pl .pl-foot { margin-top: 18px; }

@media (max-width: 900px) {
  .pl .pl-main { grid-template-columns: minmax(0, 1fr); }
  .pl .pl-tip { position: static; }
  .pl .pl-page, .pl .pl-attrs, .pl .pl-pools, .pl .pl-pas { max-width: none; }
}
@media (max-width: 760px) {
  .pl .pl-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pl .pl-quests { grid-column: 1 / -1; }
  .pl .pl-tabs { width: 100%; }
  .pl .pl-tabs button { flex: 1 1 auto; text-align: center; padding: 8px 8px; }
  .pl .sk-page { padding: 8px 4px 2px; }
}

/* Items (release 2): the slot grid is shaped like the game's inventory (the weapon and the shield
   tall at the sides, helm, amulet and armour between, rings beside the belt, gloves and boots
   below), three columns that shrink with the screen, so it fits 400 px with nothing sideways. */
.pl .pl-bonus { position: absolute; left: 2px; top: 2px; font: 400 11px/1 Georgia, serif; color: #6c84f5; background: rgba(7, 6, 5, .85); padding: 1px 3px; }
.pl .pl-ic { position: relative; }
.pl .pl-swap { display: flex; gap: 1px; margin: 0 0 10px; background: var(--rule2); width: max-content; max-width: 100%; }
.pl .pl-swap button { min-height: 32px; padding: 6px 12px; border: 0; background: var(--bg); color: var(--ink3); font-family: "Exocet", Georgia, serif; font-size: 13px; cursor: pointer; }
.pl .pl-swap button.on { background: var(--raised); color: var(--goldhi); }
.pl .pl-inv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "rh head neck" "rh tors lh" "rrin belt lrin" "glov . feet"; gap: 6px; max-width: 420px; }
.pl .pl-slot { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; min-width: 0; padding: 6px; border: 1px solid var(--rule2); background: rgba(7, 6, 5, .8); color: var(--ink3); text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.pl .pl-slot.full { border-color: var(--golddim); }
.pl .pl-slot.sel { box-shadow: 0 0 0 2px var(--goldhi); }
.pl .pl-slot-h { font-family: "Exocet", Georgia, serif; font-size: 11px; letter-spacing: .03em; }
.pl .pl-slot-n { font-size: 13px; color: var(--ink); }
.pl .pl-slot-b { font-size: 11.5px; color: var(--ink3); }
.pl .t-gold .pl-slot-n, .pl b.t-gold, .pl .pl-pick.t-gold span { color: #c7b377; }
.pl .t-green .pl-slot-n, .pl b.t-green, .pl .pl-pick.t-green span { color: #1eff00; }
.pl .t-white .pl-slot-n, .pl b.t-white, .pl .pl-pick.t-white span { color: var(--ink); }
.pl .pl-edit { margin: 14px 0; padding: 10px; border: 1px solid var(--rule2); max-width: 420px; }
.pl .pl-worn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.pl .pl-worn .btn, .pl .pl-charm .btn, .pl .pl-edit .btn { min-height: 30px; }
.pl .pl-basepick { display: block; margin: 6px 0; }
.pl .pl-roll { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; margin: 6px 0; font-size: 13.5px; color: #6c84f5; }
.pl .pl-roll span { grid-column: 1 / -1; overflow-wrap: anywhere; }
.pl .pl-roll input { width: 100%; min-width: 0; height: 30px; accent-color: var(--gold); margin: 0; }
.pl .pl-roll small { color: var(--ink3); }
.pl .pl-find { margin-top: 10px; }
.pl .pl-picklist { list-style: none; margin: 6px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.pl .pl-pick { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 36px; padding: 4px 6px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.pl .pl-pick small { color: var(--ink3); font-size: 12px; }
.pl .pl-pick.other { opacity: .6; }
.pl .pl-charm { padding: 6px 0; border-bottom: 1px solid var(--rule); max-width: 420px; }
.pl .pl-charm-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl .pl-tab { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13.5px; }
/* site.css gives every table 620 px at the least and th nowrap: the totals are a narrow panel */
.pl .pl-tab th { text-align: left; font: 400 13px/1.3 Georgia, serif; letter-spacing: 0; color: var(--ink2); padding: 3px 6px 3px 0; vertical-align: top; white-space: normal; border-bottom: 1px solid var(--rule); }
.pl .pl-tab td { padding: 3px 4px; vertical-align: top; overflow-wrap: anywhere; }
.pl .pl-tab td.neg { color: var(--bad); }
.pl .pl-tip .pl-pools { margin: 6px 0; }
.pl .pl-tab td.num { white-space: nowrap; }

/* The sheet (release 3): the socket row under a worn item (one button a socket, wrapping on a
   phone), the Ethereal switch, the set bonus sliders in the panel and the character screen's
   table, which shares .pl-tab. */
.pl .pl-socks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.pl .pl-socks .lab { width: 100%; margin: 0; }
.pl .pl-sock { display: inline-flex; align-items: stretch; max-width: 100%; }
.pl .pl-sock button { min-height: 30px; padding: 4px 8px; border: 1px dashed var(--rule2); background: var(--well); color: var(--ink3); font-size: 13px; cursor: pointer; overflow-wrap: anywhere; }
.pl .pl-sock.full button { border-style: solid; border-color: var(--golddim); color: #c7b377; }
.pl .pl-sock.sel button { box-shadow: 0 0 0 2px var(--goldhi); }
.pl .pl-sock .pl-sock-x { width: 28px; padding: 0; border-left: 0; color: var(--ink3); font-size: 15px; }
.pl .pl-eth { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin: 4px 0; color: var(--ink2); font-size: 13.5px; cursor: pointer; }
.pl .pl-eth input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.pl .pl-eth small { font-size: 12px; }
.pl .pl-set { margin: 4px 0 8px; font-size: 13.5px; }
.pl .pl-set b { font-weight: 400; color: var(--ink); }
.pl .pl-set .pl-roll { margin: 4px 0; }
.pl .pl-roll span small { color: var(--ink3); font-size: 12px; }
.pl .pl-lack li { color: var(--bad); }
