/* LDM-12 photographer access links. Kept isolated from the established
   dashboard styles and written to inherit whichever UI layer is active. */
.pg-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.pg-empty { font-size: 12.5px; opacity: .72; }

.pg-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
}
.pg-card.is-dead { opacity: .6; }
.pg-card .pg-main { flex: 1 1 210px; min-width: 0; }
.pg-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.pg-card .pg-meta { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; opacity: .78; }
.pg-card .pg-note { display: block; margin-top: 2px; font-size: 11.5px; font-style: italic; opacity: .66; }

.pg-state {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.pg-state.is-ok { color: #247b3e; background: rgba(52, 199, 89, .13); }
.pg-state.is-warn { color: #8a4b00; background: rgba(255, 159, 10, .15); }
.pg-state.is-dead { color: #8a2333; background: rgba(179, 38, 30, .11); }

.pg-btns { display: flex; flex: none; flex-wrap: wrap; gap: 6px; }
.pg-btns .mini { font-size: 11.5px; }

.pg-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
}
/* The layout rules above would otherwise beat the plain [hidden] rule. */
.pg-form[hidden], #pgAddBtn[hidden] { display: none; }
.pg-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 650; }
.pg-form .pg-wide { grid-column: 1 / -1; }
.pg-form .pg-opt { font-weight: 400; opacity: .6; }
.pg-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.pg-form input:focus { outline: 2px solid rgba(0, 113, 227, .35); outline-offset: 1px; }
.pg-actions { display: flex; grid-column: 1 / -1; gap: 8px; }
.pg-ghost { opacity: .7; }

.pg-fresh {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid rgba(52, 199, 89, .35);
  border-radius: 10px;
  background: rgba(52, 199, 89, .09);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

@media (max-width: 640px) {
  .pg-form { grid-template-columns: minmax(0, 1fr); }
  .pg-card .pg-btns { width: 100%; }
  .pg-card .pg-btns .mini { flex: 1 1 auto; }
}
