#photo-cast {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-top:5px;
}
#photo-cast[hidden], #photo-character [hidden] {display:none!important}
.pc-link {
  min-height:40px;
  background:transparent;
  padding:4px 2px;
  color:var(--accent-dark);
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px;
}
.pc-chip {
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  min-height:38px;
  padding:3px 11px 3px 4px;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--paper);
  color:var(--ink);
  overflow-wrap:anywhere;
  font-size:13px;
}
.pc-chip img {width:31px;height:31px;border-radius:50%;object-fit:cover}
#photo-character {
  width:min(420px,calc(100% - 24px));
  max-width:420px;
  max-height:calc(100dvh - 24px);
  margin:auto;
  padding:22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  color:var(--ink);
  overflow:auto;
}
#photo-character::backdrop {background:#30223766}
.pc-head, .pc-actions, .pc-edit {display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.pc-head {justify-content:space-between;margin-bottom:12px;flex-wrap:nowrap}
.pc-head h2 {margin:0;font:400 26px/1.2 var(--serif)}
.pc-x {width:40px;height:40px;border-radius:50%;background:var(--lavender);color:var(--accent-dark);font-size:23px}
#pc-picture {display:block;width:100%;height:min(240px,30dvh);object-fit:contain;border-radius:10px;background:#fff;margin-bottom:14px}
.pc-field {display:block;margin:10px 0;color:var(--ink);font-size:13px;font-weight:600}
.pc-field input,.pc-field select {display:block;width:100%;min-height:42px;margin-top:5px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-weight:400}
.pc-hint,#pc-status {font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.pc-hint {color:var(--muted)}
#pc-status {color:var(--accent-dark)}
#pc-status:empty,.pc-edit:has([hidden] + [hidden]) {display:none}
.pc-actions {margin-top:15px}
.pc-edit:not(:empty) {margin-top:5px}
#pc-submit {white-space:normal;min-height:44px}
@media (max-width:480px) {
  #photo-character {padding:16px}
  .pc-field input,.pc-field select {font-size:16px}
  #photo-cast {justify-content:flex-start}
}
#pc-appearance {display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 12px;padding:0;border:0}
#pc-appearance legend {padding:0 0 3px;color:var(--ink);font-size:13px;font-weight:600}
#pc-appearance label {display:inline-flex;align-items:center;gap:6px;min-height:36px;font-size:14px;cursor:pointer}
#pc-appearance input {width:17px;height:17px;margin:0;accent-color:var(--accent)}
