/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 * Editorial / image-led welcome, then independent tactile panels.
 * Existing player and sharing contracts remain owned by style.css + script.js. */
html, body.comic-profile { overflow-x: clip; color-scheme: only light; }
html { background: var(--profile-paper); }
/* Hide the page scrollbar while preserving wheel, touch and keyboard scrolling. */
html:has(body.comic-profile), body.comic-profile { scrollbar-width: none; }
html:has(body.comic-profile)::-webkit-scrollbar,
body.comic-profile::-webkit-scrollbar { display: none; width: 0; }
body.comic-profile { background: var(--profile-paper); color: var(--profile-ink); font-family: var(--profile-font); }
body.comic-profile::before { content: none; background: none; }
.comic-profile .edition-header, .comic-profile .content { width: min(1160px, calc(100% - 64px)); }
.comic-profile .edition-header { min-height: 88px; border-bottom: 1px solid var(--profile-rule); }
.comic-profile .edition-logo, .comic-profile .edition-contact { color: var(--profile-ink); }
.comic-profile .edition-logo { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
.comic-profile .edition-logo span, .comic-profile .edition-contact span { color: var(--profile-accent); }
.comic-profile .edition-caption { color: var(--profile-muted); font-size: 10px; }
.comic-profile .edition-caption strong { font-size: 12px; }
.comic-profile .edition-contact { min-height: 44px; display: flex; align-items: center; font-size: 13px; }
.comic-profile .content { padding: 32px 0 96px; }
.welcome-hero { padding: 32px 0 48px; }
.welcome-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; column-gap: 24px; margin-bottom: 24px; }
.comic-profile .section-caption { color: var(--profile-muted); font-size: 11px; font-weight: 600; letter-spacing: 1.6px; line-height: 1.7; margin: 0 0 14px; }
.welcome-intro .section-caption { grid-column: 1 / -1; margin-bottom: 10px; }
.comic-profile h1, .comic-profile h2 { min-width: 0; overflow-wrap: anywhere; font-style: normal; font-family: var(--profile-font); }
.welcome-intro h2 { font-size: clamp(22px, 3vw, 36px); letter-spacing: -1.1px; line-height: 1.3; margin: 0; font-weight: 600; }
.welcome-intro a { color: var(--profile-accent); font-size: 13px; text-decoration: none; display: flex; gap: 24px; align-items: center; min-height: 44px; white-space: nowrap; }
.welcome-art { margin: 0; overflow: hidden; border-radius: 20px; background: var(--profile-dark); border: 1px solid var(--profile-edge); box-shadow: 0 5px 0 var(--profile-edge), 0 16px 30px var(--profile-shadow); }
.welcome-art img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
/* Welcome notification modal (shown on visit & reload, dismissed by user) */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 1005;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 260ms var(--profile-ease);
}
.welcome-modal.is-open { opacity: 1; }
.welcome-modal[hidden] { display: none; }
.welcome-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 44, 48, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.welcome-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--profile-surface);
  border: 1px solid var(--profile-rule);
  border-top: 3px solid var(--profile-accent);
  box-shadow: inset 0 1px 0 var(--profile-highlight), 0 6px 0 var(--profile-edge), 0 24px 48px rgba(24, 44, 48, 0.24);
  transform: translateY(14px) scale(0.97);
  transition: transform 280ms var(--profile-ease);
}
.welcome-modal:focus { outline: none !important; }
.welcome-modal.is-open .welcome-modal__dialog { transform: translateY(0) scale(1); }
.welcome-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.welcome-modal .welcome-intro {
  display: block;
  min-width: 0;
  margin-bottom: 0;
}
.welcome-modal .welcome-intro .section-caption { margin: 0 0 6px; }
.welcome-modal .welcome-intro h2 {
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -0.7px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--profile-ink);
}
.comic-profile .welcome-modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--profile-rule);
  background: var(--profile-inset);
  color: var(--profile-ink);
  box-shadow: 0 2px 0 var(--profile-edge);
  cursor: pointer;
  transform: none;
  transition: background-color 160ms var(--profile-ease), border-color 160ms var(--profile-ease), color 160ms var(--profile-ease);
}
@media (hover: hover) and (pointer: fine) {
  .comic-profile .welcome-modal__close:hover {
    background: var(--profile-accent);
    border-color: var(--profile-accent);
    color: var(--profile-light);
    transform: none;
  }
}
.welcome-modal .welcome-art {
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--profile-edge), 0 12px 24px var(--profile-shadow);
}
.welcome-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--profile-rule);
}
.welcome-modal__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--profile-muted);
}
.comic-profile .welcome-modal__confirm {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--profile-ink);
  background: var(--profile-accent);
  color: var(--profile-light);
  font-family: var(--profile-font);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 0 var(--profile-ink);
  cursor: pointer;
  white-space: nowrap;
  transform: none;
  transition: background-color 160ms var(--profile-ease), transform 120ms var(--profile-ease);
}
@media (hover: hover) and (pointer: fine) {
  .comic-profile .welcome-modal__confirm:hover {
    background: var(--profile-ink);
    transform: none;
  }
}
.comic-profile .welcome-modal__close:active,
.comic-profile .welcome-modal__confirm:active {
  transform: translateY(1px);
  filter: none;
}
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--profile-space); align-items: stretch; scroll-margin-top: 24px; }
.comic-profile .profile-panel { min-width: 0; margin: 0; padding: 30px; border: 1px solid var(--profile-rule); border-radius: var(--profile-radius); background: var(--profile-surface); box-shadow: inset 0 1px 0 var(--profile-highlight), 0 5px 0 var(--profile-edge), 0 13px 23px var(--profile-shadow); box-sizing: border-box; }
.comic-profile .identity-panel { grid-row: span 2; }
.comic-profile .about-panel { grid-column: span 2; padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-content: center; }
.about-panel .section-caption { grid-column: 1 / -1; }
.comic-profile .profile-panel h2 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.8px; margin: 0 0 20px; font-weight: 600; }
.comic-profile .about-panel h2 { margin: 0; }
.comic-profile .projects-panel { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 28px; }
.comic-profile .projects-panel h2 { display: flex; align-items: center; gap: 16px; font-size: clamp(22px, 2vw, 27px); }
.comic-profile .projects-panel h2::after { content: ''; flex: 1; height: 1px; background: var(--profile-rule); opacity: .7; }
.project-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comic-profile .project-link { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 84px; padding: 16px 12px; box-sizing: border-box; border: 1px solid #cddfd8; border-radius: 14px; background: #edf5f0; color: var(--profile-ink); text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.5; transition: background .2s, border-color .2s; }
.comic-profile .project-link:nth-child(2) { background: #eef5fa; border-color: #d0e0ea; }
.project-link:nth-child(2) .project-icon { background: #ddeef9; color: #187caf; }
.project-link:nth-child(2) .project-arrow { color: #187caf; }
.project-link > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.project-link small { display: block; margin-top: 4px; color: var(--profile-muted); font-size: 10px; font-weight: 400; }
.project-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: #dcece3; color: var(--profile-accent); font-size: 16px; font-weight: 700; }
.project-icon svg { width: 22px; height: 22px; }
.project-arrow { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; margin-left: auto; border-radius: 50%; background: #ffffff80; color: var(--profile-accent); font-size: 16px; }
.comic-profile .project-link:hover { background: var(--profile-surface); border-color: var(--profile-accent); }
.project-link:focus-visible { outline: 3px solid var(--profile-accent); outline-offset: 3px; }
@media(max-width:600px) { .project-links { grid-template-columns: minmax(0, 1fr); } }
.comic-profile .about-panel p:not(.section-caption) { font-size: 15px; line-height: 1.85; color: var(--profile-muted); margin: 0; }
.comic-profile .neo-card__inner { width: 100%; height: 100%; }
/* Keep the inner profile content flat, including the legacy card hover state. */
.comic-profile .identity-panel .neo-card__inner,
.comic-profile .identity-panel:hover .neo-card__inner { box-shadow: none; border: 0; outline: none; transform: none !important; }
.comic-profile .neo-card__body { width: 100%; max-width: none; padding: 0; }
.comic-profile .neo-card__avatar { float: none; width: 84px; height: 84px; margin: 0 0 24px; }
.comic-profile .neo-card__avatar-ring { width: 84px; height: 84px; padding: 4px; background: var(--profile-surface); border: 1px solid var(--profile-rule); box-shadow: 0 3px 0 var(--profile-edge); }
.comic-profile .neo-card__online-dot { border-color: var(--profile-surface); background: var(--profile-accent); }
.comic-profile .profile-eyebrow { font-size: 10px; letter-spacing: 1.6px; margin: 0 0 12px; color: var(--profile-accent); }
.comic-profile .neo-card__name { font-size: clamp(40px, 4vw, 56px); line-height: 1.12; letter-spacing: -2.8px; color: var(--profile-ink); -webkit-text-fill-color: var(--profile-ink); margin: 0 0 12px; }
.comic-profile .neo-card__status-row { margin-bottom: 20px; }
.comic-profile .status, .comic-profile .ping-indicator { color: var(--profile-muted); font-size: 11px; }
.comic-profile .status-dot { background: var(--profile-accent); box-shadow: none; animation: none; }
.comic-profile .neo-card__role { font-size: 18px; font-weight: 500; color: var(--profile-ink); }
.comic-profile .neo-card__bio { font-size: 14px; line-height: 1.85; color: var(--profile-muted); margin-bottom: 24px; }
.comic-profile .neo-card__location, .comic-profile .neo-card__weather { font-size: 12px; color: var(--profile-muted); flex-wrap: wrap; }
/* Restore the original icon palette inside the identity panel. */
.comic-profile .identity-panel .loc-item i.fa-location-dot { color: #f87171; }
.comic-profile .identity-panel .loc-item i.fa-clock,
.comic-profile .identity-panel .loc-item i.fa-moon { color: #38bdf8; }
.comic-profile .identity-panel .neo-card__weather .loc-item i:not(.fa-clock):not(.fa-moon) { color: #fbbf24; }
.comic-profile .identity-panel .status-dot { background: #00bcd4; }
.comic-profile .identity-panel .ping-indicator { color: #2ecc71; }
.comic-profile .neo-card__cta { width: 100%; min-height: 48px; padding: 14px 16px; gap: 12px; margin-top: 26px; box-sizing: border-box; background: var(--profile-accent); color: var(--profile-light); font-size: 12px; border-radius: 10px; box-shadow: 0 3px 0 var(--profile-ink); white-space: nowrap; }
.comic-profile .neo-card__cta:hover { background: var(--profile-ink); }
.comic-profile .neo-card__tech { gap: 10px; margin: 0; }
.comic-profile .neo-pill { background: var(--profile-inset); color: var(--profile-ink); border: 1px solid var(--profile-rule); border-radius: 8px; padding: 10px 12px; font-size: 12px; box-shadow: inset 0 1px 2px var(--profile-shadow); transform: none; }
.comic-profile .neo-pill i { color: var(--profile-accent); }
.comic-profile .skills-panel .neo-card__tech { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.comic-profile .skills-panel h2 { display: flex; align-items: center; gap: 14px; }
.comic-profile .skills-panel h2::after { content: ''; height: 1px; flex: 1; background: var(--profile-rule); opacity: .7; }
.comic-profile .skills-panel .neo-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 78px; padding: 12px 8px; box-sizing: border-box; font-size: 12px; font-weight: 500; border: 1px solid var(--profile-rule); border-radius: 10px; background: var(--profile-inset); box-shadow: none; cursor: default; white-space: normal; transform: none !important; }
.comic-profile .skills-panel .neo-pill > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.comic-profile .skills-panel .neo-pill small { display: none; }
.comic-profile .skills-panel .skill-php { grid-column: 1 / -1; flex-direction: row; justify-content: center; min-height: 48px; gap: 10px; }
.comic-profile .skills-panel .neo-pill:hover { background: var(--profile-surface); border-color: var(--profile-edge); box-shadow: none; }
.comic-profile .skills-panel .neo-pill i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; font-size: 26px; text-shadow: none; }
.comic-profile .skills-panel .fa-html5 { color: #e34f26; }
.comic-profile .skills-panel .fa-css3-alt { color: #1572b6; }
.comic-profile .skills-panel .fa-js { color: #f7df1e; background: #292929; border-radius: 4px; }
.comic-profile .skills-panel .fa-react { color: #61dafb; background: #202a33; border-radius: 50%; font-size: 22px; }
.comic-profile .skills-panel .fa-php { color: #777bb4; }
.comic-profile .neo-card__social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.comic-profile .neo-social { width: 100%; height: 48px; min-height: 48px; border-radius: 9px; border: 1px solid var(--profile-rule); background: var(--profile-inset); color: var(--profile-ink); gap: 8px; box-shadow: 0 2px 0 var(--profile-edge); transform: none !important; transition: background 160ms var(--profile-ease), color 160ms var(--profile-ease) !important; white-space: nowrap; text-decoration: none; }
.comic-profile .neo-social .mobile-label { display: inline; font-size: 11px; }
.comic-profile .social-panel h2 { display: flex; align-items: center; gap: 14px; }
.comic-profile .social-panel h2::after { content: ''; flex: 1; height: 1px; background: var(--profile-rule); opacity: .7; }
.comic-profile .social-panel .neo-social { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; min-width: 0; height: 54px; padding: 10px; box-sizing: border-box; gap: 8px; border-radius: 10px; box-shadow: none; font-family: inherit; }
.comic-profile .social-panel .neo-social i { display: grid; place-items: center; width: 26px; height: 28px; flex-shrink: 0; font-size: 19px; text-shadow: none; }
.comic-profile .social-panel .mobile-label { font-size: 11px; font-weight: 500; }
.comic-profile .social-panel .neo-social--github i { color: #24292f; }
.comic-profile .social-panel .neo-social--tiktok i { color: #18282c; }
.comic-profile .social-panel .neo-social--facebook i { color: #1877f2; }
.comic-profile .social-panel .neo-social--telegram i { color: #1689bf; }
.comic-profile .social-panel .neo-social--zalo i { color: #0068ff; }
.comic-profile .social-panel .neo-social--share i { color: var(--profile-accent); }
.comic-profile .social-panel .neo-social:hover { background: var(--profile-surface); color: var(--profile-ink); border-color: var(--profile-edge); box-shadow: none; }
.comic-profile .social-panel .neo-social::before,
.comic-profile .social-panel .neo-social::after { display: none; }
.comic-profile .neo-social:hover { background: var(--profile-accent); color: var(--profile-light); border-color: var(--profile-accent); }
.comic-profile .music-panel { grid-column: 1 / -1; background: var(--profile-dark); color: var(--profile-light); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 30px 36px; box-shadow: 0 5px 0 var(--profile-ink), 0 13px 23px var(--profile-shadow); }
.music-panel .section-caption { grid-column: 1 / -1; color: var(--profile-dark-muted); }
.comic-profile .music-panel h2 { margin: 0; }
.music-panel h2 br { display: none; }
.comic-profile .music-feature { width: auto; display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 52px; border-radius: 10px; border: 1px solid var(--profile-dark-muted); background: var(--profile-dark); color: var(--profile-light); font-size: 13px; white-space: nowrap; }
.comic-profile .music-feature > i { position: static; font-size: 20px; color: inherit; opacity: 1; }
.comic-profile .music-feature:hover { background: var(--profile-accent); }
/* Keep Vietnamese music labels on the same font; preserve Font Awesome icons. */
.comic-profile .soundcloud-card,
.comic-profile .audio-player { font-family: var(--profile-font); }
.comic-profile .soundcloud-card :where(button, input, select, textarea),
.comic-profile .audio-player :where(button, input) { font-family: inherit; }
.comic-profile .soundcloud-card h2,
.comic-profile .soundcloud-player-copy h3,
.comic-profile .music-toggle .music-hint { font-family: var(--profile-font); }
.comic-profile .soundcloud-player-copy h3 { line-height: 1.5; }
.comic-profile .music-toggle .music-hint { text-shadow: none; letter-spacing: normal; }
.comic-profile .edition-footer { justify-content: center; align-items: center; text-align: center; text-transform: none; font-family: Arial, sans-serif; font-weight: 400; font-style: normal; letter-spacing: normal; color: var(--profile-muted); border-color: var(--profile-rule); margin-top: 44px; font-size: 13px; line-height: 1.8; }
.comic-profile a:active, .comic-profile button:active { filter: brightness(.94); }
.comic-profile :focus-visible { outline: 3px solid var(--profile-accent) !important; outline-offset: 5px; }
.comic-profile .music-panel :focus-visible, .comic-profile .soundcloud-card :focus-visible { outline-color: var(--profile-light) !important; }
/* Show focus on the rounded search container, not a square inside it. */
.comic-profile .soundcloud-card .soundcloud-input-wrap input:focus,
.comic-profile .soundcloud-card .soundcloud-input-wrap input:focus-visible { outline: none !important; box-shadow: none; }
.comic-profile .soundcloud-card .soundcloud-input-wrap:focus-within { border-color: #7cbeb4; box-shadow: 0 0 0 2px #7cbeb426; }
@media (max-width: 1000px) {
  .profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .comic-profile .identity-panel { grid-row: span 2; }
  .comic-profile .about-panel { grid-column: auto; display: block; padding: 30px; }
  .comic-profile .about-panel h2 { margin-bottom: 20px; }
  .comic-profile .social-panel { grid-column: 1 / -1; }
  .comic-profile .neo-card__social { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .comic-profile .music-panel { gap: 12px; }
  .music-panel h2 br { display: block; }
}
@media (max-width: 600px) {
  .comic-profile .edition-header, .comic-profile .content { width: calc(100% - 32px); }
  .comic-profile .content { padding: 20px 0 96px; }
  .comic-profile .edition-header { min-height: 72px; }
  .welcome-hero { padding: 24px 0 32px; }
  .welcome-intro { grid-template-columns: minmax(0,1fr); gap: 6px; margin-bottom: 14px; }
  .welcome-intro h2 { max-width: 18ch; }
  .welcome-intro a { justify-self: start; }
  .welcome-art { border-radius: 12px; }
  .welcome-modal { padding: 12px; }
  .welcome-modal__dialog { padding: 18px 16px 20px; border-radius: 16px; }
  .welcome-modal__header { gap: 12px; margin-bottom: 14px; }
  .welcome-modal .welcome-intro h2 { max-width: none; font-size: 19px; }
  .welcome-modal .welcome-art { border-radius: 12px; }
  .welcome-modal .panda-ride { min-height: 0; }
  .welcome-modal__footer { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px; padding-top: 14px; }
  .welcome-modal__hint { text-align: center; }
  .comic-profile .welcome-modal__confirm { width: 100%; }
  .profile-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .comic-profile .profile-panel, .comic-profile .about-panel, .comic-profile .music-panel { padding: 24px; grid-column: auto; grid-row: auto; }
  .comic-profile .neo-card__name { font-size: 48px; }
  .comic-profile .neo-card__social { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .comic-profile .music-panel { display: block; }
  .comic-profile .music-panel h2 { margin-bottom: 24px; }
  .comic-profile .music-feature { width: 100%; justify-content: space-between; font-size: 11px; gap: 8px; padding: 14px 12px; }
  .comic-profile .edition-footer { flex-direction: column; gap: 4px; margin-top: 32px; }
}
/* Compact desktop proportions without changing browser zoom or mobile sizing. */
@media (min-width: 1001px) {
  .comic-profile .content { width: min(1060px, calc(100% - 64px)); padding: 36px 0 96px; }
  .welcome-hero { padding: 26px 0 36px; }
  .welcome-intro { margin-bottom: 18px; }
  .welcome-intro h2 { font-size: clamp(24px, 2.6vw, 32px); }
  .profile-grid { gap: 20px; }
  .comic-profile .profile-panel { padding: 24px; }
  .comic-profile .projects-panel { gap: 16px; }
  .comic-profile .profile-panel h2 { font-size: 25px; margin-bottom: 16px; }
  .comic-profile .projects-panel h2 { margin-bottom: 0; }
  .comic-profile .neo-card__avatar { width: 76px; height: 76px; margin-bottom: 18px; }
  .comic-profile .neo-card__avatar-ring { width: 76px; height: 76px; }
  .comic-profile .neo-card__name { font-size: 48px; }
  .comic-profile .neo-card__role { font-size: 16px; }
  .comic-profile .neo-card__bio { font-size: 13px; line-height: 1.75; margin-bottom: 18px; }
  .comic-profile .neo-card__status-row { margin-bottom: 16px; }
  .comic-profile .neo-card__cta { margin-top: 20px; }
  .comic-profile .skills-panel .neo-pill { min-height: 70px; padding: 10px 8px; }
  .comic-profile .skills-panel .skill-php { min-height: 44px; }
  .comic-profile .social-panel .neo-social { height: 50px; }
  .comic-profile .project-link { min-height: 76px; padding: 12px 10px; gap: 8px; }
}
/* Identity: compact editorial card, independent of adjacent panels' height. */
.comic-profile .identity-panel {
  align-self: start;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-top: 3px solid var(--profile-accent);
  box-shadow: 0 4px 0 var(--profile-edge), 0 12px 28px var(--profile-shadow);
}
.comic-profile .identity-panel .neo-card__body { display: flex; flex-direction: column; min-height: 0; }
.identity-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; text-align: center; }
.comic-profile .identity-panel .identity-header .neo-card__name { display: flex; align-items: center; gap: 7px; margin: 0; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -1.3px; }
.identity-badge { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; color: #1877f2; }
.identity-badge svg { display: block; width: 100%; height: 100%; }
.comic-profile .identity-panel .neo-card__avatar { flex: 0 0 88px; width: 88px; height: 88px; margin: 0; }
.comic-profile .identity-panel .neo-card__avatar-ring { width: 88px; height: 88px; padding: 3px; background: #40e0c5; border-color: #79eddb; box-shadow: 0 0 0 4px #40e0c51a, 0 0 16px #26cdbb66, 0 0 30px #26cdbb33; animation: none; filter: none; }
.comic-profile .identity-panel .neo-card__avatar-ring::before,
.comic-profile .identity-panel .neo-card__avatar-ring::after { display: none; }
.comic-profile .identity-panel .neo-card__online-dot { width: 12px; height: 12px; right: 1px; bottom: 2px; box-shadow: none; animation: none; }
.comic-profile .identity-panel .neo-card__status-row { justify-content: center; margin: 0 0 24px; }
.comic-profile .identity-panel .profile-eyebrow { text-align: center; }
.comic-profile .identity-panel .neo-card__role { justify-content: center; }
.comic-profile .identity-panel .status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid #bbdfc5; border-radius: 20px; background: #edf9f0; color: #237a3b; font-size: 12px; line-height: 1.4; }
.comic-profile .identity-panel .status-dot { width: 6px; height: 6px; background: #28a745; }
.comic-profile .identity-panel .ping-indicator { color: #237a3b; background: none; padding: 0 0 0 7px; margin: 0; border-left: 1px solid #bbdfc5; border-radius: 0; font-size: 11px; }
.comic-profile .identity-panel .ping-indicator i,
.comic-profile .identity-panel .ping-value { color: #237a3b; }
.comic-profile .identity-panel .profile-eyebrow { margin: 0 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.7; }
.comic-profile .identity-panel .neo-card__name { display: block; margin: 0 0 12px; font-size: clamp(40px, 4vw, 50px); line-height: 1.12; letter-spacing: -2.5px; }
.comic-profile .identity-panel .identity-name-dot { color: var(--profile-accent); -webkit-text-fill-color: var(--profile-accent); }
.comic-profile .identity-panel .neo-card__role { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.identity-code { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--profile-inset); color: var(--profile-accent); font-family: monospace; font-size: 14px; }
.identity-details { padding: 18px; border: 1px solid var(--profile-rule); border-radius: 12px; background: var(--profile-inset); }
.comic-profile .identity-panel .neo-card__role { width: 100%; justify-content: center; text-align: center; }
.identity-role-window { display: inline-block; width: 145px; overflow: hidden; text-align: left; }
.comic-profile .identity-panel .identity-role-text { display: inline-block; white-space: nowrap; animation: identity-role-scroll 4s linear infinite !important; animation-delay: -1s !important; }
@keyframes identity-role-scroll {
  from { transform: translateX(145px); }
  to { transform: translateX(-100%); }
}
.comic-profile .identity-panel .identity-details { text-align: center; }
.comic-profile .identity-panel .identity-details .neo-card__location,
.comic-profile .identity-panel .identity-details .neo-card__weather { justify-content: center; width: 100%; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  .comic-profile .identity-panel .identity-role-text { animation: none !important; transform: none; }
}
.identity-detail-label { margin: 0 0 8px; color: var(--profile-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.5; }
.comic-profile .identity-panel .neo-card__location { margin: 0 0 12px; font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--profile-ink); }
.comic-profile .identity-panel .neo-card__weather { gap: 10px; padding-top: 12px; border-top: 1px solid var(--profile-rule); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.comic-profile .identity-panel .loc-item { gap: 7px; }
.comic-profile .identity-panel .loc-sep { color: var(--profile-edge); }
@media (max-width: 380px) {
  .comic-profile .identity-panel { padding: 20px; }
  .identity-header { gap: 8px; }
  .comic-profile .identity-panel .ping-indicator { display: none; }
  .identity-details { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .comic-profile *, .comic-profile *::before, .comic-profile *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
