/* アカウントのつながり一覧。既存の結果を主役にする。 */

.graphs-body .viewer-head { padding-bottom: 24px; }
.graphs-heading { font-size: 16px; margin: 0 0 10px; }
.graphs-guide { font-size: 13px; color: var(--text-dim); margin: 0 0 8px; }
.graphs-guide strong { font-weight: 500; color: var(--text); }
.graphs-note { font-size: 12px; color: var(--text-dim); margin: 0 0 22px; }
.graphs-error { padding: 20px 0; font-size: 13px; color: var(--text-dim); }
.graphs-error p { margin: 0 0 12px; }
.graphs-body [hidden] { display: none; }

/* 任意に開く新規依頼 */
.explore-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-top: 32px;
}
.explore-box summary { padding: 18px 20px; font-size: 14px; cursor: pointer; }
.explore-box summary:hover { color: var(--accent); }
.explore-content { padding: 0 20px 20px; }
.explore-lead {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 70ch;
  line-height: 1.65;
}
.explore-form { display: flex; align-items: flex-end; gap: 10px; max-width: 700px; }
.explore-field { flex: 1; min-width: 0; }
.explore-field label { display: block; font-size: 13px; font-weight: 500; }
.explore-help { margin: 4px 0 10px; font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }
.explore-input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 12px;
  min-width: 0;
}
.explore-input:focus { border-color: var(--accent); }
.explore-input[aria-invalid="true"] { border-color: var(--accent); }
.explore-input::placeholder { color: var(--text-faint); }
.explore-form .btn { flex-shrink: 0; min-height: 48px; }
.explore-status { margin: 12px 0 0; font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }
.explore-status:empty { display: none; }
.explore-status.is-ok { color: var(--text); border-left: 2px solid var(--accent); padding-left: 10px; }
.explore-status.is-err { color: var(--text); border-left: 2px solid var(--accent); padding-left: 10px; }
.explore-form .btn:disabled { opacity: .6; cursor: wait; }

/* 収集済みの結果 */
.graph-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.graph-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 17px;
  transition: border-color .15s ease;
}
.graph-card:hover { border-color: var(--line-strong); }
.graph-card-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.graph-seed { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.graph-type { font-size: 10.5px; padding: 2px 6px; border-radius: var(--r-sm); }
.graph-type.is-individual { color: var(--accent); background: var(--accent-wash); }
.graph-type.is-commercial, .graph-type.is-unknown {
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.graph-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-dim); }
.graph-stats .v { font-family: var(--mono); font-size: 16px; color: var(--text); font-weight: 500; }
.graph-reach { margin: 0; font-size: 11.5px; color: var(--text-dim); }
.graph-reach .v { font-family: var(--mono); }
.graph-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.graph-actions .btn { font-size: 12.5px; padding: 8px 12px; text-decoration: none; }
.graph-updated { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); margin: 0; }

@media (max-width: 640px) {
  .graphs-body .viewer-head { padding-top: 30px; }
  .graphs-body .viewer-head h1 { font-size: 24px; }
  .graphs-body .viewer-main { padding-inline: 20px; }
  .explore-form { flex-direction: column; align-items: stretch; }
  .explore-box summary { padding: 16px; }
  .explore-content { padding: 0 16px 16px; }
}
