/* プロフィール編集（管理画面と同ヘッダー · モバイル幅） */

.profile-page-main {
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}

.profile-page-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.15rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.profile-page-card .auth-lead {
  margin-top: 0;
}

.profile-page-card .auth-nav-actions {
  margin-top: 1.5rem;
}

@media (min-width: 30rem) {
  .profile-page-card {
    margin-top: 0.25rem;
  }
}

/* Push 端末登録（Notify settings 相当） */
.push-settings-row {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.push-settings-row > span:first-child {
  color: #64748b;
  display: inline-block;
  min-width: 5.5rem;
}

.push-device-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.push-device-empty {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.push-device-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}

.push-device-item:last-child {
  border-bottom: none;
}

.push-device-item-current {
  background: #eff6ff;
}

.push-device-line {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.25;
  overflow: hidden;
}

.push-device-line-meta {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.push-device-label-btn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9rem;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a3568;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.push-device-label-btn.push-device-label-empty {
  color: #64748b;
  font-weight: 500;
}

.push-device-label-input {
  flex: 0 1 8.5rem;
  min-width: 0;
  width: 8.5rem;
  max-width: 40%;
  padding: 0.15rem 0.35rem;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.push-device-tag {
  flex: 0 0 auto;
  color: #64748b;
  white-space: nowrap;
}

.push-device-tag-current {
  color: #2563eb;
  font-weight: 600;
}

.push-device-tag-date {
  margin-left: auto;
  font-size: 0.72rem;
}

.push-device-delete {
  flex: 0 0 auto;
  width: auto;
  min-width: 3.5rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.push-actions .auth-button {
  width: auto;
  flex: 1 1 7.5rem;
  min-width: 0;
}

@media (max-width: 899px) {
  .push-device-item {
    align-items: flex-start;
  }

  .push-device-line {
    flex-direction: column;
    align-items: stretch;
    row-gap: 0.2rem;
    overflow: visible;
  }

  .push-device-line-meta {
    flex: 0 0 auto;
    flex-wrap: wrap;
  }

  .push-device-label-btn,
  .push-device-label-input {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .push-device-tag-date {
    margin-left: auto;
  }

  .push-actions .auth-button {
    flex: 1 1 calc(50% - 0.25rem);
  }
}
