/* Plumoda assistant: menu bar (feedback 18), welcome popup and mobile card (feedback 17).
   Colours come from the tokens in base.css / home.css only. */

/* the assistant row at the bottom of the Products and Apps menus and in the mobile sheet:
   a quiet footer like the menu's own band, a short line on the left and one button on the right */
.mega-ask {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 36px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: var(--bg);
}
.mega-band:has(+ .mega-ask) {
  border-radius: 0;
}
.mega-band + .mega-ask {
  background: var(--surface);
}
.mega-ask-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.mega-ask-ic .ico {
  width: 16px;
  height: 16px;
}
.mega-ask-txt {
  flex: 1;
  min-width: 0;
  margin: 0;
  font: 400 14px/1.45 var(--text);
  color: var(--ink-2);
}
.mega-ask-txt strong {
  font-weight: 600;
  color: var(--ink);
}
.mega-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 38px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-press);
  font: 600 14px/1 var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease);
}
.mega-ask-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.mega-ask-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mega-ask-go {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 0.16s var(--ease);
}
.mega-ask-btn:hover .mega-ask-go {
  transform: translateX(2px);
}
/* the mobile sheet: a card, the button full width under the line */
.sheet .mega-ask {
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.sheet .mega-ask-txt {
  flex: 1 1 0;
}
.sheet .mega-ask-btn {
  justify-content: center;
  width: 100%;
  height: 44px;
}

/* buttons of our own, so the popup looks the same on every page */
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}
.pm-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pm-btn-p {
  background: var(--accent);
  color: var(--accent-ink);
}
.pm-btn-p:hover {
  background: var(--accent-press);
}
.pm-btn-o {
  background: transparent;
  color: var(--accent-press);
  border-color: var(--accent);
}
.pm-btn-o:hover {
  background: var(--accent-soft);
}
.pm-btn-s {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

/* dialog: two columns like the reference (questions left, our assistant right), sized to fit
   the screen so the box does not scroll at normal window sizes (Mikkel 5/11-2026) */
.pm-dlg {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  font-family: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* the dialog sits outside .np, so the sprite icons get their line style here */
.pm-dlg .ico,
.mega-ask .ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.pm-dlg::backdrop {
  background: color-mix(in srgb, var(--ink) 50%, transparent);
}
.pm-dlg[open] {
  animation: pm-in 0.24s var(--ease);
}
@keyframes pm-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pm-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    'main side'
    'foot foot';
  column-gap: 48px;
  row-gap: 28px;
  padding: 44px 44px 32px;
}
.pm-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.pm-x .ico {
  width: 16px;
  height: 16px;
}
.pm-x:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.pm-x:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pm-main {
  grid-area: main;
  display: grid;
  align-content: start;
  gap: 28px;
  min-width: 0;
}
.pm-head h2 {
  margin: 0 0 12px;
  font: 600 40px/1.08 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.pm-mark {
  padding: 0 0.06em;
  background: linear-gradient(
    transparent 58%,
    var(--accent-soft) 58%,
    var(--accent-soft) 94%,
    transparent 94%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pm-lede {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pm-lede b {
  font-weight: 600;
  color: var(--ink);
}
.pm-field {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.pm-q {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  font: 600 19px/1.3 var(--display);
  letter-spacing: -0.005em;
  color: var(--ink);
}
.pm-q small {
  display: block;
  margin-top: 2px;
  font: 400 14px/1.4 var(--text);
  letter-spacing: 0;
  color: var(--ink-2);
}

/* industry listbox */
.pm-lb-wrap {
  position: relative;
  max-width: 380px;
}
.pm-lb-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1 var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease);
}
.pm-lb-btn:hover {
  border-color: var(--ink-3);
}
.pm-lb-btn:focus-visible,
.pm-lb-btn[aria-expanded='true'] {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.pm-ph {
  color: var(--ink-3);
}
.pm-lb-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.16s var(--ease);
}
.pm-lb-btn[aria-expanded='true'] .pm-lb-chev {
  transform: translateY(2px) rotate(-135deg);
}
.pm-lb {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.pm-lb:focus {
  outline: none;
}
.pm-lb [role='option'] {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px 8px 34px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.pm-lb [role='option'].is-active {
  background: var(--accent-soft);
}
.pm-lb [aria-selected='true']::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 5.72 5 8.22 9.5 3.22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 5.72 5 8.22 9.5 3.22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* goals: plain checkboxes in two columns, with our own box so it matches the brand */
.pm-goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.pm-goal,
.pm-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 22px;
  color: var(--ink);
  cursor: pointer;
}
.pm-goal input,
.pm-consent input {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
  margin: 0;
}
.pm-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--ink-3);
  border-radius: 5px;
  background: var(--surface);
  box-sizing: border-box;
  transition:
    background-color 0.14s var(--ease),
    border-color 0.14s var(--ease);
}
.pm-goal:hover .pm-box,
.pm-consent:hover .pm-box {
  border-color: var(--accent);
}
.pm-goal:has(input:checked) .pm-box,
.pm-consent:has(input:checked) .pm-box {
  background: var(--accent);
  border-color: var(--accent);
}
/* The tick is a centred SVG mask, so it sits exactly in the middle of the box at any box size (Mikkel 5/11). */
.pm-goal:has(input:checked) .pm-box::after,
.pm-consent:has(input:checked) .pm-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 5.72 5 8.22 9.5 3.22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 5.72 5 8.22 9.5 3.22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.pm-goal:has(input:focus-visible) .pm-box,
.pm-consent:has(input:focus-visible) .pm-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pm-goal.is-off {
  color: var(--ink-3);
  cursor: not-allowed;
}
.pm-goal.is-off .pm-box {
  border-color: var(--line-2);
}

/* right column: the assistant, on brand blue */
.pm-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  min-width: 0;
}
.pm-visual {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 236px;
}
.pm-orb {
  position: absolute;
  width: 228px;
  height: 228px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, var(--accent-soft));
}
.pm-card {
  position: relative;
  width: 252px;
  padding: 14px 16px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  color: var(--ink);
  transform: translateY(-10px);
}
.pm-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-card-top b {
  font-weight: 600;
  font-size: 14px;
}
.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.pm-chip {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 500;
}
.pm-card-big {
  display: block;
  margin: 12px 0 0;
  font: 600 28px/1 var(--display);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.pm-card-sub {
  display: block;
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.pm-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pm-rows li {
  display: grid;
  grid-template-columns: 14px 62px 1fr 38px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.pm-rows .ico {
  width: 14px;
  height: 14px;
  color: var(--ink-2);
}
.pm-rows span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.pm-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-2);
  overflow: hidden;
}
.pm-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}
.pm-rows li:nth-child(1) .pm-bar i {
  width: 82%;
}
.pm-rows li:nth-child(2) .pm-bar i {
  width: 36%;
}
.pm-rows li:nth-child(3) .pm-bar i {
  width: 18%;
}
.pm-toast {
  position: absolute;
  left: 2px;
  bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.pm-toast-ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--surface);
}
.pm-toast-ic .ico {
  width: 12px;
  height: 12px;
}
.pm-side.has-result .pm-visual {
  display: none;
}

/* the assistant field */
.pm-ask {
  display: grid;
  gap: 8px;
}
.pm-ask-l {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.pm-ta {
  position: relative;
}
.pm-ta textarea {
  display: block;
  width: 100%;
  height: 76px;
  padding: 10px 52px 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--accent-soft));
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/1.45 var(--text);
  resize: none;
  box-sizing: border-box;
}
.pm-ta textarea::placeholder {
  color: var(--ink-3);
}
.pm-ta textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.pm-send {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.pm-send:hover {
  background: var(--accent-press);
}
.pm-send:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pm-send .ico {
  width: 16px;
  height: 16px;
}
.pm-small {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* the suggestion takes the picture's place, so the box keeps its height */
.pm-result {
  flex: 1;
  color: var(--ink);
}
.pm-result h3 {
  margin: 0 0 8px;
  font: 600 20px/1.25 var(--display);
}
.pm-result p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pm-chans {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.pm-chans li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-press);
}
.pm-chans .ico {
  width: 15px;
  height: 15px;
}
.pm-links {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.pm-links a {
  display: block;
  padding: 3px 0;
  color: var(--accent-press);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}
.pm-links a:hover {
  text-decoration-color: var(--accent);
}
.pm-edit {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 500 14px/1.3 var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pm-edit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* footer: the storage choice on the left, the buttons on the right */
.pm-foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pm-consent {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-2);
}
.pm-consent input {
  width: 18px;
  height: 18px;
}
.pm-consent .pm-box {
  width: 18px;
  height: 18px;
}
.pm-acts {
  display: flex;
  flex: none;
  gap: 12px;
}
.pm-acts .pm-btn {
  height: 48px;
  padding: 0 22px;
}

/* mobile: a small card at the bottom, never over the first screen */
.pm-nudge {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  font-family: var(--text);
  animation: pm-up 0.26s var(--ease);
}
@keyframes pm-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pm-nudge p {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}
.pm-nudge p b {
  font: 600 17px/1.3 var(--display);
  color: var(--ink);
}
.pm-nudge-act {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pm-nudge-act .pm-btn {
  flex: 1;
}

/* laptops with a short screen: tighter spacing so it still fits */
@media (max-height: 820px) and (min-width: 641px) {
  .pm-in {
    padding: 34px 40px 22px;
    row-gap: 18px;
  }
  .pm-main {
    gap: 20px;
  }
  .pm-head h2 {
    font-size: 34px;
    margin-bottom: 8px;
  }
  .pm-q {
    margin-bottom: 10px;
  }
  .pm-goals {
    row-gap: 10px;
  }
  .pm-side {
    margin-top: 20px;
  }
  .pm-visual {
    min-height: 200px;
  }
  .pm-foot {
    padding-top: 16px;
  }
}
@media (max-width: 900px) and (min-width: 641px) {
  .pm-in {
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 32px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .pm-card {
    width: 230px;
  }
  .pm-foot {
    flex-wrap: wrap;
  }
}

/* phones: a bottom sheet, goals as chips, no picture, so it fits one screen */
@media (max-width: 640px) {
  .pm-dlg {
    width: 100vw;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }
  .pm-dlg[open] {
    animation: pm-up 0.26s var(--ease);
  }
  .pm-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'main' 'side' 'foot';
    row-gap: 16px;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .pm-x {
    top: 8px;
    right: 6px;
  }
  .pm-main {
    gap: 16px;
  }
  .pm-head h2 {
    margin: 0 36px 0 0;
    font-size: 26px;
  }
  .pm-lede {
    display: none;
  }
  .pm-q {
    margin-bottom: 8px;
    font-size: 17px;
  }
  .pm-q small {
    display: inline;
    margin: 0 0 0 4px;
  }
  .pm-lb-wrap {
    max-width: none;
  }
  .pm-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pm-goal {
    align-items: center;
    gap: 0;
    padding: 6px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
  }
  .pm-goal input {
    width: 100%;
    height: 100%;
  }
  .pm-goal .pm-box {
    display: none;
  }
  .pm-goal:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-press);
  }
  .pm-goal:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .pm-side {
    margin-top: 0;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .pm-visual,
  .pm-ask .pm-small {
    display: none;
  }
  .pm-ta textarea {
    height: 60px;
  }
  .pm-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 14px;
  }
  .pm-acts {
    gap: 8px;
  }
  .pm-acts .pm-btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0 14px;
  }
  .pm-acts .pm-btn-p {
    flex: 1 1 auto;
  }
  /* on a phone the suggestion replaces the questions, so the sheet never scrolls */
  .pm-in:has(.pm-side.has-result) .pm-main {
    display: none;
  }
}
@media (max-width: 640px) and (max-height: 780px) {
  .pm-in {
    row-gap: 12px;
    padding-top: 16px;
  }
  .pm-main {
    gap: 12px;
  }
  .pm-head h2 {
    font-size: 23px;
  }
  .pm-q {
    margin-bottom: 6px;
    font-size: 16px;
  }
  .pm-goals {
    gap: 6px;
  }
  .pm-goal {
    padding: 4px 10px;
    font-size: 13px;
  }
  .pm-lb-btn {
    height: 44px;
  }
  .pm-ta textarea {
    height: 46px;
  }
  .pm-foot {
    gap: 10px;
    padding-top: 10px;
  }
  .pm-acts .pm-btn {
    height: 44px;
  }
}
/* short phones (360×640 and the like): tighter still, so the sheet fits without scrolling */
@media (max-width: 640px) and (max-height: 720px) {
  .pm-in {
    row-gap: 10px;
    padding-top: 14px;
  }
  .pm-main {
    gap: 10px;
  }
  .pm-head h2 {
    font-size: 21px;
  }
  .pm-goals {
    gap: 5px;
  }
  .pm-goal {
    padding: 3px 9px;
    font-size: 12.5px;
    line-height: 18px;
  }
  .pm-lb-btn {
    height: 40px;
  }
  .pm-side {
    padding: 10px;
    gap: 8px;
  }
  .pm-ta textarea {
    height: 44px;
  }
  .pm-send {
    right: 6px;
    bottom: 6px;
    width: 32px;
    height: 32px;
  }
  .pm-foot {
    gap: 8px;
    padding-top: 8px;
  }
  .pm-acts .pm-btn {
    height: 40px;
  }
}
@media (max-width: 359px) {
  .pm-acts {
    flex-direction: column-reverse;
  }
  .pm-acts .pm-btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pm-dlg[open],
  .pm-nudge,
  .pm-dlg[open] {
    animation: pm-fade 0.2s linear;
  }
  @keyframes pm-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .mega-ask-go,
  .pm-lb-chev {
    transition: none;
  }
}
