/* Boss HQ demo: Portal and Comms tabs. */
.pc-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pc-wait {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #f6f1e4;
  font-size: 13px;
}
.pc-wait em {
  font-style: normal;
  font-size: 11.5px;
  color: #8a6a2b;
}
.pc-admin {
  background: var(--sunk);
  border: 1px dashed var(--input);
  border-radius: 6px;
  padding: 12px 14px;
}
.pc-ahead {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.pc-ahead b {
  font-size: 13px;
}
.pc-ahead span {
  font-size: 11.5px;
  color: var(--muted);
}
.pc-agrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pc-thumb {
  width: 150px;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--hair);
}
.pc-thumb .pc-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.pc-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pc-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pc-tile {
  padding: 0;
  border: 2px solid var(--hair);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
}
.pc-tile.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--info-bg);
}
.pc-tile .pc-art {
  width: 100%;
  height: 96px;
  display: block;
  object-fit: cover;
}
.pc-tile span {
  display: block;
  padding: 6px 9px;
  font-size: 12.5px;
}
.cm-feed .cm-main {
  flex: 1;
  min-width: 0;
}
.cm-top {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.cm-text {
  margin-top: 2px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cm-chip {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cm-foot {
  padding: 10px 18px;
  font-size: 11.5px;
  border-top: 1px solid var(--hair);
}
.cm-add {
  padding: 14px 18px;
  border-top: 1px solid var(--hair);
  background: var(--sunk);
}
.cm-addhead {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}
.cm-addrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cm-in {
  flex: 1 1 220px;
  min-width: 0;
}
.cm-ph {
  font-size: 12.5px;
  display: flex;
  gap: 5px;
  align-items: center;
}
@media (max-width: 900px) {
  .pc-agrid {
    grid-template-columns: 1fr;
  }
  }
@media (max-width: 600px) {
  .cm-card .card-head .right {
    width: 100%;
  }
}

/* ---------- phone (m6) ---------- */
@media (max-width: 768px) {
  .pc-btns .btn,
  .cm-addrow .btn,
  .cm-card .card-head .btn,
  .cm-card .card-head .sel {
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .pc-admin {
    padding: 12px;
  }
  .pc-tiles {
    gap: 8px;
  }
  .pc-tile {
    min-height: 44px;
  }
  .cm-card .card-head .right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .cm-card .card-head .right > * {
    flex: 1 1 130px;
  }
  .cm-feed li {
    padding: 12px 14px;
  }
  .cm-top {
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .cm-foot a,
  .cm-addhead a,
  .cm-card .empty .tiny a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .cm-add {
    padding: 14px;
  }
  .cm-addrow {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cm-addrow > * {
    width: 100%;
  }
  .cm-addrow .sel {
    min-height: 44px;
  }
  .cm-in,
  .cm-addrow input[type='text'],
  .cm-addrow input:not([type]) {
    flex: none;
    min-height: 44px;
    font-size: 16px;
  }
  .cm-ph {
    min-height: 44px;
    font-size: 14px;
    gap: 10px;
  }
  .cm-ph input {
    width: 22px;
    height: 22px;
    margin: 0;
  }
}
/* F14D2: the How Comms works link is a 44px target on touch widths including 768 */
@media (max-width: 900px) {
  .cm-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
:root[data-theme='dark'] .pc-wait {
  background: #2e2a1f;
}
:root[data-theme='dark'] .pc-wait em {
  color: #d9b66b;
}

/* The pencil on the Portal tab's preview. */
.pc-pen { position: absolute; top: 8px; right: 22px; z-index: 5; }
.pc-pencil { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair); background: var(--card, #fff); color: var(--text, inherit); cursor: pointer; }
.pc-pencil:hover { background: var(--sunk, rgba(127, 127, 127, 0.12)); }
.pc-menu { position: absolute; top: 38px; right: 0; display: flex; flex-direction: column; min-width: 160px; padding: 4px; border-radius: 8px; border: 1px solid var(--hair); background: var(--card, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.pc-menu[hidden] { display: none; }
.pc-menu button { text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.pc-menu button:hover { background: rgba(127, 127, 127, 0.14); }

/* the demo makes no outside requests, so the sample address is shown but cannot be edited (the CSP allows only the demo's own pictures) */
.input.pc-ro {
  color: var(--muted);
  background: var(--sunk);
  cursor: default;
}
