.pc-shell {
  gap: 14px;
}

.pc-top-actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
}

.pc-icon-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.pc-icon-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-icon-button svg path {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.pc-icon-button:hover,
.pc-icon-button:focus-visible {
  background: rgba(122, 241, 221, 0.1);
  color: rgba(213, 255, 242, 0.98);
}

.pc-icon-button:focus-visible {
  outline: 2px solid rgba(122, 241, 221, 0.78);
  outline-offset: 2px;
}

.pc-eyebrow {
  margin: 0 0 6px;
  color: rgba(122, 241, 221, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pc-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.pc-subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.pc-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
  border-radius: 24px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 173, 143, 0.22), transparent 42%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  padding: 20px 18px 18px;
}

.pc-hero--compact {
  padding: 18px;
}

.pc-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pc-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.pc-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-understanding {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.26);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.pc-understanding strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.pc-understanding p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.62;
}

.pc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 0.5px solid rgba(122, 241, 221, 0.28);
  background: rgba(0, 173, 143, 0.12);
  color: rgba(213, 255, 242, 0.94);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pc-card {
  position: relative;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  padding: 16px 52px 15px 14px;
}

.pc-card-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 0.5px solid rgba(122, 241, 221, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(213, 255, 242, 0.18), transparent 46%),
    rgba(122, 241, 221, 0.08);
  color: rgba(213, 255, 242, 0.82);
  font-size: 0;
  font-weight: 800;
  line-height: 0;
  text-align: center;
  font-family: "Noto Sans SC", "Nunito Sans", system-ui, sans-serif;
}

.pc-card-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pc-card-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.pc-card--full {
  grid-column: 1 / -1;
}

.pc-card__label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.35;
}

.pc-card__value {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.pc-card__note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.48;
}

.pc-profile-panel {
  display: grid;
  gap: 12px;
}

.pc-profile-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pc-profile-panel__head strong {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
}

.pc-profile-panel__head span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.pc-profile-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.pc-text-button {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(122, 241, 221, 0.12);
  color: rgba(213, 255, 242, 0.96);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pc-text-button:focus-visible {
  outline: 2px solid rgba(122, 241, 221, 0.82);
  outline-offset: 2px;
}

.pc-info-list,
.pc-profile-form,
.pc-profile-extra-fields {
  display: grid;
  gap: 10px;
}

.pc-info-list[hidden],
.pc-profile-form[hidden],
.pc-text-button[hidden] {
  display: none !important;
}

.pc-info-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
}

.pc-info-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.pc-info-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.35;
}

.pc-profile-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.pc-profile-form input,
.pc-profile-form select {
  width: 100%;
  min-height: 44px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.12)),
    rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pc-profile-form input[type="hidden"] {
  display: none;
}

.pc-profile-form input:focus,
.pc-profile-form select:focus {
  border-color: rgba(122, 241, 221, 0.62);
  outline: none;
}

.pc-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pc-choice {
  appearance: none;
  min-height: 40px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.12)),
    rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pc-choice.is-active {
  border-color: rgba(122, 241, 221, 0.52);
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 241, 221, 0.2), transparent 62%),
    rgba(0, 173, 143, 0.13);
  color: rgba(213, 255, 242, 0.96);
}

.pc-choice:active {
  transform: scale(0.99);
}

.pc-choice:focus-visible {
  outline: 2px solid rgba(122, 241, 221, 0.78);
  outline-offset: 2px;
}

.pc-profile-form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.pc-settings-shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.pc-settings-hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(122, 241, 221, 0.18), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.pc-settings-layout,
.pc-settings-block {
  display: grid;
  gap: 12px;
}

.pc-settings-card {
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 54px rgba(0, 0, 0, 0.26);
}

.pc-settings-form {
  gap: 13px;
}

.pc-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 -2px;
}

.pc-section-title h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.pc-section-title span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  white-space: nowrap;
}

.pc-action-list,
.pc-link-grid,
.pc-record-list {
  display: grid;
  gap: 10px;
}

.pc-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  color: inherit;
  padding: 14px;
  text-decoration: none;
}

.pc-action:focus-visible,
.pc-link-card:focus-visible,
.pc-pill-button:focus-visible {
  outline: 2px solid rgba(122, 241, 221, 0.82);
  outline-offset: 2px;
}

.pc-action strong {
  display: block;
  color: rgba(255, 255, 255, 0.93);
  font-size: 15px;
  line-height: 1.35;
}

.pc-action span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.pc-action__go {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  margin-top: 0;
  place-items: center;
  border: 0.5px solid rgba(122, 241, 221, 0.22);
  border-radius: 50%;
  background: rgba(122, 241, 221, 0.08);
}

.pc-action > .pc-action__go {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pc-action__go::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(213, 255, 242, 0.82);
  border-top: 2px solid rgba(213, 255, 242, 0.82);
  transform: translate(-62%, -50%) rotate(45deg);
}

.pc-link-grid {
  grid-template-columns: 1fr 1fr;
}

.pc-link-card {
  position: relative;
  min-height: 92px;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 16px 52px 14px 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pc-link-card:active,
.pc-action:active {
  transform: scale(0.99);
}

.pc-link-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.35;
}

.pc-link-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0.5px solid rgba(122, 241, 221, 0.2);
  border-radius: 50%;
  background: rgba(122, 241, 221, 0.075);
  color: rgba(213, 255, 242, 0.84);
  font-size: 0;
  font-weight: 800;
  line-height: 0;
  text-align: center;
  font-family: "Noto Sans SC", "Nunito Sans", system-ui, sans-serif;
}

.pc-link-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pc-link-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.pc-link-card span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.pc-link-card .pc-link-icon {
  display: inline-flex;
  margin-top: 0;
  color: rgba(213, 255, 242, 0.84);
  font-size: 0;
  line-height: 0;
}

.pc-record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-record-list li {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.pc-latest-record-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}

.pc-latest-record-card .pc-card__label {
  margin-bottom: 4px;
}

.pc-latest-record-card .pc-card__note {
  margin-top: 0;
}

.pc-privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pc-privacy-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.pc-privacy-row span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.pc-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.pc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}

.pc-switch span {
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.18s ease;
  pointer-events: none;
}

.pc-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.pc-switch input:checked + span {
  background: linear-gradient(90deg, var(--nu-teal-a), var(--nu-teal-b));
}

.pc-switch input:checked + span::after {
  transform: translateX(22px);
}

.pc-pill-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pc-pill-button--danger {
  color: rgba(255, 220, 214, 0.96);
  border-color: rgba(255, 130, 110, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 120, 92, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.06);
}

.pc-pill-button--primary {
  color: rgba(213, 255, 242, 0.98);
  border-color: rgba(122, 241, 221, 0.28);
  background:
    radial-gradient(circle at 35% 0%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(90deg, rgba(0, 173, 143, 0.78), rgba(0, 160, 175, 0.78));
  box-shadow: 0 12px 30px rgba(0, 173, 143, 0.15);
}

.pc-pill-button:active {
  transform: scale(0.99);
}

.pc-logout-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0.5px solid rgba(255, 130, 130, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 120, 120, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(255, 224, 224, 0.95);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pc-logout-button:active {
  transform: scale(0.99);
}

.pc-logout-button:focus-visible {
  outline: 2px solid rgba(255, 170, 170, 0.72);
  outline-offset: 2px;
}

.pc-note-standalone {
  margin-top: 0;
}

.pc-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 380px) {
  .pc-grid,
  .pc-link-grid,
  .pc-footer-actions {
    grid-template-columns: 1fr;
  }

  .pc-title {
    font-size: 23px;
  }
}

@media (min-width: 600px) {
  :root {
    --mc-max: min(100%, 480px);
    --nu-max: min(100%, 480px);
    --mc-gutter-x: 10px;
  }

  .pc-shell {
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .pc-hero,
  .pc-card,
  .pc-action,
  .pc-link-card {
    border-radius: 22px;
  }
}

@media (min-width: 900px) {
  :root {
    --mc-max: min(calc(100% - 56px), 960px);
    --nu-max: min(calc(100% - 56px), 960px);
    --mc-gutter-x: 24px;
  }

  .pc-shell {
    gap: 18px;
    padding-top: calc(max(8px, env(safe-area-inset-top, 0px)) + 64px);
    padding-left: 0;
    padding-right: 0;
  }

  .pc-hero {
    padding: 24px;
  }

  .pc-settings-hero {
    padding: 28px;
  }

  .pc-hero__top {
    align-items: center;
  }

  .pc-eyebrow {
    font-size: 12px;
  }

  .pc-title {
    font-size: clamp(28px, 2.2vw, 34px);
  }

  .pc-subtitle {
    max-width: 520px;
    font-size: 15px;
  }

  .pc-avatar {
    width: 64px;
    height: 64px;
  }

  .pc-understanding {
    margin-top: 20px;
    padding: 16px 18px;
  }

  .pc-understanding strong {
    font-size: 14px;
  }

  .pc-understanding p {
    font-size: 15px;
  }

  .pc-section-title {
    margin-top: 8px;
  }

  .pc-section-title h2 {
    font-size: 17px;
  }

  .pc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .pc-card {
    min-height: 144px;
    padding: 17px 16px;
  }

  .pc-card__label,
  .pc-card__note,
  .pc-link-card span,
  .pc-action span {
    font-size: 13px;
  }

  .pc-card__value {
    font-size: 22px;
  }

  .pc-latest-record-card {
    min-height: 76px;
    padding: 16px 18px;
  }

  .pc-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pc-action {
    min-height: 92px;
    padding: 18px;
  }

  .pc-action strong {
    font-size: 16px;
  }

  .pc-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pc-link-card {
    min-height: 118px;
    padding: 18px;
  }

  .pc-link-card strong {
    font-size: 15px;
  }

  .pc-logout-button {
    max-width: 320px;
    align-self: center;
  }

  .pc-info-list,
  .pc-profile-extra-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-info-row {
    min-height: 62px;
  }

  .pc-profile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-settings-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    align-items: start;
    gap: 16px;
  }

  .pc-settings-block--profile {
    grid-row: span 2;
  }

  .pc-settings-block--profile .pc-settings-card {
    min-height: 100%;
  }

  .pc-settings-form .pc-pill-button,
  .pc-settings-form .pc-card__note {
    grid-column: 1 / -1;
  }

  .pc-settings-card {
    padding: 18px;
  }

  .pc-profile-form__actions,
  .pc-profile-actions,
  .pc-privacy-row,
  .pc-card--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  :root {
    --mc-max: min(calc(100% - 80px), 1040px);
    --nu-max: min(calc(100% - 80px), 1040px);
  }

  .pc-link-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pc-link-card {
    min-height: 132px;
  }
}
