﻿/* Public card page â€” match workspace home theme (Outfit + navy/gold) */

body:has(.pc-page),
.pc-page {
  --pc-navy: #041b44;
  --pc-primary: #041b44;
  --pc-ink: #041b44;
  --pc-muted: #66788c;
  --pc-gold: #fcb61b;
  --pc-gold-bright: #fcb61b;
  --pc-gold-deep: #fcb61b;
  --pc-gold-light: #f8f1e3;
  --pc-input: #eef3f9;
  --pc-line: #e8edf4;
  --pc-link: #041b44;
  --pc-radius: 18px;
  --pc-shadow: 0 22px 60px rgba(16, 43, 78, 0.1);

  font-family: Outfit, sans-serif;
  color: var(--pc-ink);
  -webkit-font-smoothing: antialiased;
}

body:has(.pc-page) {
  background:
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(201, 172, 112, 0.1), transparent 50%),
    radial-gradient(ellipse 55% 40% at 10% 30%, rgba(16, 43, 78, 0.06), transparent 48%),
    #f4f7fb;
}

.pc-page {
  min-height: 100dvh;
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  background: transparent;
  color: var(--pc-ink);
}

.pc-page .pc-body {
  padding: 36px 24px 56px;
}

/* Floor: nothing on this page / its popups below 16px */
.pc-page,
body:has(.pc-page) .modal,
body:has(.pc-page) .save-sheet,
body:has(.pc-page) .exchange-sheet {
  font-size: 16px;
}

.pc-page *,
.pc-page *::before,
.pc-page *::after {
  box-sizing: border-box;
}

.pc-page h1,
.pc-page h2,
.pc-page h3 {
  font-family: inherit;
  letter-spacing: normal;
  color: var(--pc-primary);
}

/* Modern Lucide-style stroke icons */
.pc-page .icon,
body:has(.pc-page) .modal .icon,
body:has(.pc-page) .modal-close .icon,
body:has(.pc-page) .save-close .icon,
body:has(.pc-page) .exchange-close .icon,
body:has(.pc-page) .save-sheet .icon,
body:has(.pc-page) .exchange-sheet .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.pc-page .icon path,
.pc-page .icon circle,
.pc-page .icon rect,
.pc-page .icon line,
body:has(.pc-page) .modal .icon path,
body:has(.pc-page) .modal .icon circle,
body:has(.pc-page) .modal .icon rect,
body:has(.pc-page) .save-sheet .icon path,
body:has(.pc-page) .save-sheet .icon circle,
body:has(.pc-page) .save-sheet .icon rect,
body:has(.pc-page) .exchange-sheet .icon path,
body:has(.pc-page) .exchange-sheet .icon circle,
body:has(.pc-page) .exchange-sheet .icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-page .btn .icon {
  width: 17px;
  height: 17px;
}

.pc-page .btn.primary .icon {
  color: inherit;
}

.pc-page .btn:not(.primary) .icon {
  color: var(--pc-gold-deep);
}

.pc-page .profile-credit button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pc-page .profile-credit button .icon {
  width: 14px;
  height: 14px;
}

/* Sticky full-page header — match home */
.pc-page .pc-header,
.pc-page .public-top {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 236, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pc-page .pc-header-inner {
  width: 100%;
  max-width: none;
  min-height: 76px;
  padding: 14px 220px 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.pc-page .pc-header-actions,
.pc-page .public-top .row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 0px;
  flex-shrink: 0;
}

.pc-page .public-top .brand {
  font-size: 22px;
  font-weight: 650;
  color: var(--pc-ink);
  gap: 0;
  line-height: 0;
  flex-shrink: 0;
}

.pc-page .public-top .brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(210px, 52vw);
  object-fit: contain;
}

.pc-page .demo-pill {
  border: 1px solid var(--pc-line);
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pc-muted);
  box-shadow: 0 4px 14px rgba(16, 43, 78, 0.04);
  transition: border-color 0.15s, background 0.15s;
}

.pc-page .demo-pill:hover {
  border-color: var(--pc-gold);
  background: var(--pc-gold-light);
}

.pc-page .demo-pill b {
  color: var(--pc-ink);
  font-weight: 600;
}

.pc-page .demo-pill span:last-child {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--pc-gold-deep);
  background: var(--pc-gold-light);
  padding: 3px 8px;
  border-radius: 999px;
}

.pc-page .demo-pill .icon {
  width: 18px;
  height: 18px;
  color: var(--pc-gold-deep);
}

/* Workspace CTA — outside sticky header so fixed works */
.pc-page .pc-workspace-btn {
  position: fixed;
  top: 16px;
  right: 40px;
  z-index: 50;
  border-radius: 12px;
  background: var(--pc-navy) !important;
  border-color: var(--pc-navy) !important;
  color: #fff !important;
  min-height: 44px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(10, 22, 41, 0.18);
}

.pc-page .pc-workspace-btn:hover {
  background: #132238 !important;
}

/* Layout */
.pc-page .public-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.pc-page .public-context .eyebrow {
  color: var(--pc-gold-deep);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
}

.pc-page .public-context h1 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 650;
  margin: 16px 0 18px;
  max-width: 440px;
  color: var(--pc-primary);
  letter-spacing: normal;
}

.pc-page .public-context p {
  font-size: 17px;
  max-width: 400px;
  color: var(--pc-muted);
  line-height: 1.7;
}

.pc-page .context-foot {
  margin-top: 12px;
  font-size: 16px;
  color: var(--pc-muted);
  line-height: 1.7;
}

.pc-page .public-context .btn.small {
  font-family: inherit;
  font-size: 16px;
  min-height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--pc-line);
  color: var(--pc-ink);
}

.pc-page .public-context .btn.small:hover {
  background: var(--pc-input);
}

.pc-page .tiny {
  font-size: 16px;
  color: var(--pc-muted);
}

/* Profile card */
.pc-page .public-layout .profile {
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  box-shadow: var(--pc-shadow);
  animation: pc-rise 0.55s ease both;
}

@keyframes pc-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pc-page .profile-cover {
  height: 96px;
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(201, 172, 112, 0.28), transparent 55%),
    linear-gradient(145deg, #152a44 0%, var(--pc-navy) 55%, #060e18 100%);
  color: #c3d0e2;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.pc-page .org-mark {
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--pc-gold);
}

.pc-page .profile-body {
  padding: 0 28px 28px;
  text-align: center;
}

.pc-page .profile-body > .avatar {
  width: 88px;
  height: 88px;
  font-size: 28px;
  border: 5px solid #fff;
  border-radius: 50%;
  margin: -40px auto 16px;
  position: relative;
  background: linear-gradient(145deg, #d4b87a, #b8954f);
  color: var(--pc-navy);
  font-weight: 650;
  letter-spacing: normal;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(201, 172, 112, 0.35);
  font-family: inherit;
}

.pc-page .profile-body > .avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-page .profile-name {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: normal;
  color: var(--pc-primary);
  font-family: inherit;
}

.pc-page .profile-role {
  font-size: 16px;
  margin-top: 8px;
  color: var(--pc-muted);
}

.pc-page .profile-org {
  font-size: 16px;
  margin-top: 4px;
  color: #8a95a5;
}

.pc-page .profile-trust {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pc-gold-light);
  color: var(--pc-gold-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 550;
}

.pc-page .profile-trust .icon {
  width: 14px;
  height: 14px;
}

.pc-page .profile-bio {
  font-size: 16px;
  line-height: 1.65;
  margin: 18px auto 0;
  max-width: 340px;
  color: var(--pc-muted);
}

.pc-page .profile-actions {
  display: grid;
  gap: 10px;
  margin: 22px 0 6px;
}

.pc-page .profile-actions .btn {
  min-height: 50px;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 12px;
  gap: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.pc-page .profile-actions .btn .icon {
  width: 18px;
  height: 18px;
}

.pc-page .profile-actions .btn.primary {
  background: var(--pc-navy);
  border-color: var(--pc-navy);
  color: #fff;
}

.pc-page .profile-actions .btn.primary:hover {
  background: #132238;
  box-shadow: 0 8px 22px rgba(10, 22, 41, 0.2);
}

.pc-page .profile-actions .btn:not(.primary) {
  background: #fff;
  border: 1px solid var(--pc-line);
  color: var(--pc-ink);
}

.pc-page .profile-actions .btn:not(.primary):hover {
  background: var(--pc-input);
  border-color: #d5deea;
}

.pc-page .official-site {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--pc-line);
  font-size: 16px;
  font-weight: 550;
  color: var(--pc-link);
  text-align: left;
  text-decoration: none;
}

.pc-page .official-site .icon {
  width: 16px;
  height: 16px;
}

.pc-page .official-site[hidden] {
  display: none;
}

.pc-page .profile-section {
  text-align: left;
  border-top: 1px solid var(--pc-line);
  padding-top: 20px;
  margin-top: 20px;
}

.pc-page .profile-section h3 {
  font-size: 16px;
  font-weight: 650;
  color: var(--pc-primary);
}

.pc-page .profile-section .tiny {
  font-size: 16px;
  color: var(--pc-muted);
}

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

.pc-page .social {
  min-height: 42px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--pc-ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pc-page .social:hover {
  border-color: var(--pc-gold);
  background: var(--pc-gold-light);
}

.pc-page .social .icon {
  width: 17px;
  height: 17px;
  color: var(--pc-gold-deep);
}

.pc-page .profile-section .link-btn {
  border: 0;
  background: none;
  color: var(--pc-link);
  font-weight: 550;
  font-size: 16px;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.pc-page .profile-section .link-btn .icon {
  width: 16px;
  height: 16px;
}

.pc-page .profile-credit {
  font-size: 16px;
  color: #9aa3b0;
  padding: 18px;
  border-top: 1px solid var(--pc-line);
  text-align: center;
  letter-spacing: normal;
  font-family: inherit;
}

.pc-page .profile-credit button {
  border: 0;
  background: none;
  color: var(--pc-muted);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  padding: 0 0 0 10px;
  cursor: pointer;
}

.pc-page .profile-credit button:hover {
  color: var(--pc-link);
}

.pc-page .public-meta {
  text-align: center;
  color: #929baa;
  font-size: 16px;
  margin-top: 22px;
  font-family: inherit;
}

/* Missing state */
.pc-page .public-missing {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border-radius: var(--pc-radius);
  border: 1px solid var(--pc-line);
  box-shadow: var(--pc-shadow);
}

.pc-page .public-missing .eyebrow {
  color: var(--pc-gold-deep);
  font-size: 16px;
  font-weight: 600;
}

.pc-page .public-missing h1 {
  font-size: 32px;
  letter-spacing: normal;
  margin: 14px 0;
  font-weight: 650;
}

.pc-page .public-missing p {
  color: var(--pc-muted);
  font-size: 16px;
}

.pc-page .public-missing .btn.primary {
  font-family: inherit;
  font-size: 16px;
  min-height: 52px;
  border-radius: 12px;
  background: var(--pc-navy);
  border-color: var(--pc-navy);
}

/* Modals — Outfit + navy; min font-size 16px */
body:has(.pc-page) .modal,
body:has(.pc-page) .save-sheet,
body:has(.pc-page) .exchange-sheet {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pc-ink);
  max-width: 530px;
  border-radius: 18px;
  border: 1px solid var(--pc-line);
  box-shadow: 0 28px 70px rgba(10, 22, 41, 0.22);
}

body:has(.pc-page) .modal-head h2,
body:has(.pc-page) .save-head h2,
body:has(.pc-page) .exchange-head h2 {
  font-family: Outfit, sans-serif;
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.7px;
  line-height: 1.2;
  color: var(--pc-primary);
}

body:has(.pc-page) .modal-head p,
body:has(.pc-page) .save-head p,
body:has(.pc-page) .exchange-head p {
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-muted);
  line-height: 1.5;
}

body:has(.pc-page) .modal-close,
body:has(.pc-page) .save-close,
body:has(.pc-page) .exchange-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e2eaf3;
  background: #eef3f9;
  color: var(--pc-muted);
  transition: background 0.15s, color 0.15s;
}

body:has(.pc-page) .modal-close:hover,
body:has(.pc-page) .save-close:hover,
body:has(.pc-page) .exchange-close:hover {
  background: #e4ecf4;
  color: var(--pc-navy);
}

body:has(.pc-page) .modal-close .icon,
body:has(.pc-page) .save-close .icon,
body:has(.pc-page) .exchange-close .icon {
  width: 18px;
  height: 18px;
}

body:has(.pc-page) .btn,
body:has(.pc-page) .save-actions .btn,
body:has(.pc-page) .exchange-sheet .btn {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 550;
  border-radius: 12px;
}

body:has(.pc-page) .btn.primary {
  background: var(--pc-navy);
  border-color: var(--pc-navy);
  font-family: Outfit, sans-serif;
  font-weight: 550;
}

body:has(.pc-page) .destination-url {
  background: #eef3f9;
  border-radius: 12px;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-ink);
}

body:has(.pc-page) .destination-actions .btn,
body:has(.pc-page) .role-list .btn,
body:has(.pc-page) .field .input,
body:has(.pc-page) .modal-actions .btn {
  font-family: Outfit, sans-serif;
  border-radius: 12px;
  font-size: 16px;
}

body:has(.pc-page) .modal .field {
  font-size: 16px;
  font-weight: 550;
  color: var(--pc-ink);
}

body:has(.pc-page) .modal .field .input,
body:has(.pc-page) .modal .field select,
body:has(.pc-page) .modal .field textarea {
  font-size: 16px;
  font-weight: 400;
  border-radius: 12px;
  border-color: var(--pc-line);
  color: var(--pc-ink);
}

body:has(.pc-page) .role-list {
  gap: 10px;
}

body:has(.pc-page) .role-list .btn {
  min-height: 52px;
  justify-content: flex-start;
  border: 1px solid var(--pc-line);
  background: #fff;
  font-weight: 550;
}

body:has(.pc-page) .role-list .btn:hover {
  border-color: var(--pc-gold);
  background: var(--pc-gold-light);
}

/* Save contact sheet — min 16px */
body:has(.pc-page) .save-person h3 {
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.4px;
  color: var(--pc-primary);
}

body:has(.pc-page) .save-role {
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-muted);
}

body:has(.pc-page) .save-avatar {
  background: var(--pc-navy);
  color: var(--pc-gold-light);
  font-family: Outfit, sans-serif;
  font-size: 25px;
  font-weight: 600;
  border-radius: 18px;
}

body:has(.pc-page) .save-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  font-size: 16px;
  font-weight: 550;
  flex-shrink: 1;
}

body:has(.pc-page) .save-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body:has(.pc-page) .save-platforms .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 20px;
  color: var(--pc-ink);
  border-color: var(--pc-line);
  width: 100%;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}

body:has(.pc-page) .save-platforms .chip.selected {
  background: var(--pc-navy);
  border-color: var(--pc-navy);
  color: #fff;
  font-weight: 550;
}

body:has(.pc-page) .save-steps li {
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-ink);
}

body:has(.pc-page) .save-steps li:before {
  font-size: 16px;
  font-weight: 400;
  background: #eef3f9;
  color: var(--pc-muted);
}

body:has(.pc-page) .output-file {
  font-size: 16px;
  font-weight: 400;
  background: #eef3f9;
  color: var(--pc-muted);
  border-radius: 12px;
}

body:has(.pc-page) .save-fields span {
  font-size: 16px;
  font-weight: 400;
}

body:has(.pc-page) .save-actions .btn {
  min-height: 48px;
  font-size: 16px;
  font-weight: 550;
}

body:has(.pc-page) .save-note {
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-muted);
  line-height: 1.6;
}

/* Exchange sheet — min 16px */
body:has(.pc-page) .exchange-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 20px;
}

body:has(.pc-page) .exchange-tabs button {
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--pc-muted);
  margin-right: 0;
  padding: 12px 10px;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  white-space: nowrap;
}

body:has(.pc-page) .exchange-tabs button.active {
  color: var(--pc-ink);
  font-weight: 600;
  border-bottom-color: var(--pc-navy);
}

body:has(.pc-page) .exchange-field {
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--pc-ink);
}

body:has(.pc-page) .exchange-field input,
body:has(.pc-page) .exchange-field select {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 12px;
  border-color: var(--pc-line);
  color: var(--pc-ink);
}

body:has(.pc-page) .exchange-help,
body:has(.pc-page) .exchange-note,
body:has(.pc-page) .exchange-success .help {
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-muted);
}

body:has(.pc-page) .exchange-consent {
  font-size: 16px;
  font-weight: 500;
  color: var(--pc-ink);
  line-height: 1.45;
}

body:has(.pc-page) .exchange-consent input {
  accent-color: var(--pc-navy);
}

body:has(.pc-page) .exchange-sheet .btn.wide {
  min-height: 50px;
  font-size: 18px;
  font-weight: 500;
}

body:has(.pc-page) .exchange-success h3 {
  font-family: Outfit, sans-serif;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.8px;
  color: var(--pc-primary);
}

body:has(.pc-page) .exchange-success p {
  font-size: 16px;
  font-weight: 400;
  color: var(--pc-muted);
}

body:has(.pc-page) .exchange-error {
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 1000px) {
  .pc-page .public-layout {
    gap: 40px;
  }

  .pc-page .public-context h1 {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  .pc-page .pc-body {
    padding: 24px 16px 110px;
  }

  .pc-page .pc-header-inner {
    min-height: 64px;
    padding: 12px 16px;
    padding-right: 16px;
  }

  .pc-page .public-top .brand-logo {
    height: 44px;
    max-width: min(180px, 58vw);
  }

  .pc-page .public-layout {
    display: block;
  }

  .pc-page .public-context {
    display: none;
  }

  .pc-page .public-layout .profile {
    max-width: 100%;
  }

  .pc-page .public-top .demo-pill b {
    display: none;
  }

  /* My workspace — fixed bottom bar on small mobile */
  .pc-page .pc-workspace-btn {
    top: auto !important;
    right: 16px !important;
    left: 16px !important;
    bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 32px) !important;
    max-width: none;
    min-height: 54px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 600;
    box-shadow: 0 12px 36px rgba(10, 22, 41, 0.32) !important;
  }

  .pc-page .profile-name {
    font-size: 26px;
  }

  /* Profile cover — stack labels on small mobile so they don't wrap/collide */
  .pc-page .profile-cover {
    height: auto;
    min-height: 88px;
    padding: 14px 16px 52px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 16px;
    letter-spacing: 0.03em;
  }

  .pc-page .org-mark {
    flex: none;
    min-width: 0;
    max-width: 100%;
    line-height: 1.25;
    white-space: nowrap;
  }

  .pc-page .profile-cover > span:last-child {
    flex: none;
    flex-shrink: 0;
    text-align: left;
    line-height: 1.25;
    max-width: 100%;
    white-space: nowrap;
  }

  .pc-page .profile-body {
    padding: 0 18px 24px;
  }

  .pc-page .profile-body > .avatar {
    width: 72px;
    height: 72px;
    font-size: 22px;
    margin: -36px auto 14px;
    border-width: 4px;
  }

  /* Save popup — compact mobile layout */
  body:has(.pc-page) .save-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  body:has(.pc-page) .save-sheet {
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 18px 18px 12px 12px;
  }

  body:has(.pc-page) .save-head {
    padding: 20px 18px 0;
  }

  body:has(.pc-page) .save-head h2 {
    font-size: 22px;
  }

  body:has(.pc-page) .save-body {
    padding: 16px 18px 20px;
  }

  body:has(.pc-page) .save-person {
    align-items: flex-start;
    gap: 12px;
  }

  body:has(.pc-page) .save-avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
    border-radius: 14px;
  }

  body:has(.pc-page) .save-person h3 {
    font-size: 17px;
  }

  body:has(.pc-page) .save-badge {
    margin-top: 6px;
    padding: 5px 10px;
    font-size: 16px;
  }

  body:has(.pc-page) .save-platforms {
    margin-top: 16px;
    gap: 6px;
  }

  body:has(.pc-page) .save-platforms .chip {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 16px;
  }

  body:has(.pc-page) .save-steps {
    margin: 16px 0;
    gap: 10px;
  }

  /* Exchange popup — compact mobile layout */
  body:has(.pc-page) .exchange-backdrop {
    padding: 12px;
    align-items: flex-end;
  }

  body:has(.pc-page) .exchange-sheet {
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 18px 18px 12px 12px;
  }

  body:has(.pc-page) .exchange-head {
    padding: 20px 18px 0;
  }

  body:has(.pc-page) .exchange-head h2 {
    font-size: 22px;
  }

  body:has(.pc-page) .exchange-body {
    padding: 14px 18px 20px;
  }

  body:has(.pc-page) .exchange-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
  }

  body:has(.pc-page) .exchange-tabs button {
    width: 100%;
    margin-right: 0;
    padding: 14px 4px;
    text-align: left;
    white-space: normal;
    line-height: 1.35;
  }

  body:has(.pc-page) .exchange-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body:has(.pc-page) .exchange-field {
    margin-bottom: 14px;
  }

  body:has(.pc-page) .exchange-success h3 {
    font-size: 24px;
  }

  body:has(.pc-page) .exchange-success .row-actions {
    flex-direction: column;
  }

  body:has(.pc-page) .exchange-success .row-actions .btn {
    width: 100%;
  }
}

#report-submit.is-loading {
  position: relative;
  color: transparent;
  cursor: wait;
}

#report-submit.is-loading:disabled {
  opacity: 1;
}

#report-submit.is-loading .icon,
#report-submit.is-loading svg {
  visibility: hidden;
}

#report-submit.is-loading:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  animation: report-spin 0.7s linear infinite;
}

@keyframes report-spin {
  to {
    transform: rotate(360deg);
  }
}

#report-modal .select2-container {
  width: 100% !important;
}

#report-modal .select2-container .select2-selection--single {
  min-height: 44px;
  display: flex;
  align-items: center;
}
