:root {
  --page-color: #eef4ff;
  --page-color-deep: #dae8ff;
  --text-color: #202636;
  --muted-color: #707a8e;
  --line-color: rgba(32, 38, 54, 0.08);
  --card-color: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --accent: #2793ff;
  --accent-soft: rgba(39, 147, 255, 0.14);
  --accent-shadow: rgba(39, 147, 255, 0.3);
  --danger-soft: rgba(229, 88, 88, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-large: 0 28px 70px rgba(32, 54, 90, 0.14);
  --shadow-card: 0 12px 28px rgba(45, 70, 110, 0.1);
  --font-display: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-display);
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, var(--page-color), var(--page-color-deep));
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.65;
  filter: blur(60px);
  z-index: 0;
}

.page-glow-left {
  top: -8rem;
  left: -10rem;
  background: rgba(39, 147, 255, 0.2);
}

.page-glow-right {
  right: -8rem;
  bottom: -10rem;
  background: rgba(255, 204, 129, 0.22);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 18px 46px;
  display: grid;
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
  gap: 28px;
  transition: grid-template-columns 0.25s ease;
}

body.editing .app-shell {
  grid-template-columns: minmax(0, 540px) minmax(300px, 360px);
}

.admin-topbar {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 22px auto 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(33, 53, 89, 0.1);
}

.admin-topbar__copy h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.04em;
}

.profile-card {
  background: var(--card-color);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large);
  overflow: hidden;
}

.profile-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 20px 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted-color);
}

.toolbar-note {
  color: var(--muted-color);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toolbar-note--status {
  letter-spacing: 0.04em;
  text-transform: none;
}

.toolbar-note.is-error {
  color: #b74a4a;
}

.toolbar-note.is-success {
  color: #25724f;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button,
.secondary-button,
.danger-button,
.icon-button,
.add-link-inline {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ghost-button:hover,
.secondary-button:hover,
.danger-button:hover,
.icon-button:hover,
.add-link-inline:hover {
  transform: translateY(-1px);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(28, 44, 76, 0.08);
  color: var(--text-color);
  font-weight: 700;
}

.ghost-button--link {
  text-decoration: none;
}

.cover-frame {
  position: relative;
  padding: 14px 16px 16px;
}

.cover-image {
  min-height: 170px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(20, 29, 47, 0.35)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(85, 127, 170, 0.42));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: auto 28px 16px auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}

.cover-actions {
  position: absolute;
  right: 30px;
  bottom: 38px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(24, 59, 110, 0.16);
}

.hero-pill--primary {
  min-width: 138px;
  background: var(--accent);
  color: #fff;
}

.hero-pill--icon {
  width: 44px;
  padding: 0;
  background: #fff;
  color: var(--accent);
  font-size: 1.35rem;
}

.avatar-holder {
  position: absolute;
  left: 30px;
  bottom: -22px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.avatar-ring {
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 30px rgba(31, 50, 84, 0.16);
}

.avatar-image,
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-image {
  display: none;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, var(--accent), #0f5fb6);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.profile-copy {
  padding: 24px 20px 10px;
}

.profile-copy__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.editable {
  margin: 0;
  line-height: 1.2;
  border-radius: 12px;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.editable-title {
  font-size: clamp(1.85rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.32rem;
}

.editable-handle {
  color: var(--muted-color);
  font-size: 1rem;
  font-weight: 700;
}

.editable-bio {
  margin-top: 1rem;
  font-size: 1.03rem;
  line-height: 1.55;
  color: #2f3748;
  max-width: 32rem;
}

.status-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-color);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.edit-hint {
  display: none;
  margin: 2px 20px 10px;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: #235283;
  font-size: 0.93rem;
  line-height: 1.45;
}

body.editing .edit-hint,
body.editing .edit-chip,
body.editing .add-link-inline {
  display: inline-flex;
}

.links-stack {
  padding: 10px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--card-strong);
  border: 1px solid rgba(26, 36, 55, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.link-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(38, 56, 89, 0.12);
}

body.editing .link-card {
  cursor: text;
}

body.editing .link-card.selected {
  border-color: rgba(39, 147, 255, 0.35);
  box-shadow:
    0 0 0 4px rgba(39, 147, 255, 0.08),
    0 20px 36px rgba(38, 56, 89, 0.15);
}

.link-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 36%),
    var(--accent-soft);
  overflow: hidden;
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9px;
}

.link-icon span {
  font-size: 1.6rem;
}

.link-copy {
  min-width: 0;
}

.link-title,
.link-subtitle {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-title {
  font-size: 1.03rem;
  font-weight: 900;
  color: var(--text-color);
}

.link-subtitle {
  margin-top: 0.28rem;
  font-size: 0.92rem;
  color: #6a7387;
}

.link-side {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}

.link-badge {
  padding: 0.4rem 0.68rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.95rem;
}

.link-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #71809a;
  background: rgba(113, 128, 154, 0.1);
  font-size: 0.95rem;
}

.page-public .link-meta {
  display: none;
}

.page-public .link-side {
  gap: 0;
}

.selected-tag {
  position: absolute;
  inset: auto auto 12px 12px;
  display: none;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(12, 21, 38, 0.76);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

body.editing .link-card.selected .selected-tag {
  display: inline-flex;
}

.add-link-inline {
  display: none;
  width: calc(100% - 32px);
  margin: 0 16px 20px;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(39, 147, 255, 0.16);
  color: var(--accent);
  font-weight: 800;
}

.edit-chip {
  display: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  background: rgba(12, 21, 38, 0.78);
  color: #fff;
  font-size: 0.84rem;
  box-shadow: 0 10px 20px rgba(22, 34, 56, 0.18);
}

.edit-chip--cover {
  position: absolute;
  top: 28px;
  right: 30px;
}

.edit-chip--avatar {
  white-space: nowrap;
}

.editor-panel {
  display: none;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-large);
}

body.editing .editor-panel {
  display: flex;
}

body.cropper-open {
  overflow: hidden;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(19, 28, 46, 0.46);
  backdrop-filter: blur(18px);
}

.crop-modal[hidden] {
  display: none;
}

.crop-modal__dialog {
  width: min(100%, 760px);
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 64px rgba(26, 41, 68, 0.24);
}

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

.crop-modal__header h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.04em;
}

.crop-modal__copy {
  margin: 0.65rem 0 0;
  color: #52617a;
  line-height: 1.5;
}

.crop-viewport {
  position: relative;
  margin-top: 18px;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(224, 235, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(20, 32, 52, 0.08);
  touch-action: none;
}

.crop-viewport--avatar {
  aspect-ratio: 1 / 1;
  max-width: 430px;
  margin-inline: auto;
}

.crop-viewport--cover {
  aspect-ratio: 16 / 9;
}

.crop-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.crop-viewport__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crop-viewport--avatar .crop-viewport__frame {
  background:
    radial-gradient(circle at center, transparent 0 40%, rgba(12, 21, 38, 0.38) 40.6% 100%);
}

.crop-viewport--avatar .crop-viewport__frame::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.98),
    0 0 0 999px rgba(12, 21, 38, 0.06);
}

.crop-viewport--cover .crop-viewport__frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.98),
    inset 0 0 0 1px rgba(26, 36, 55, 0.08);
}

.crop-modal__controls {
  margin-top: 16px;
}

.field--range input[type="range"] {
  width: 100%;
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.crop-modal__actions {
  margin-top: 14px;
}

.crop-modal__actions .ghost-button {
  width: 100%;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(235, 242, 255, 0.72);
  backdrop-filter: blur(18px);
}

.auth-gate[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-large);
}

.auth-card h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.auth-copy {
  margin: 0.95rem 0 0;
  color: #46516a;
  line-height: 1.55;
}

.auth-form {
  margin-top: 18px;
}

.auth-error {
  margin: 12px 0 0;
  padding: 0.82rem 0.95rem;
  border-radius: 14px;
  background: var(--danger-soft);
  color: #b74a4a;
  font-size: 0.95rem;
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  margin-top: 14px;
}

body.admin-locked .app-shell {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

body.admin-locked .admin-topbar {
  filter: blur(18px);
  pointer-events: none;
  user-select: none;
}

.editor-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(32, 38, 54, 0.08);
}

.editor-panel__header h2 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.panel-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted-color);
  text-transform: uppercase;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(113, 128, 154, 0.12);
  color: var(--text-color);
  font-size: 1.5rem;
}

.editor-panel__scroll {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-section {
  padding: 18px;
  border-radius: 24px;
  background: rgba(246, 249, 255, 0.8);
  border: 1px solid rgba(24, 35, 56, 0.06);
}

.panel-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.panel-accordion {
  padding: 0;
  overflow: hidden;
}

.panel-accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
}

.panel-accordion__summary::-webkit-details-marker {
  display: none;
}

.panel-accordion__summary h3 {
  margin: 0.22rem 0 0;
}

.panel-accordion__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(24, 35, 56, 0.08);
  position: relative;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.panel-accordion__icon::before,
.panel-accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-color);
  transform: translate(-50%, -50%);
}

.panel-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.panel-accordion[open] .panel-accordion__icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
}

.panel-accordion__body {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(24, 35, 56, 0.06);
}

.panel-subtitle {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.92rem;
  font-weight: 700;
}

.field {
  display: block;
}

.field + .field,
.upload-grid,
.switch-row,
.action-row,
.action-column,
.link-picker,
.panel-note {
  margin-top: 12px;
}

.field span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted-color);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(36, 45, 61, 0.1);
  background: #fff;
  color: var(--text-color);
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(39, 147, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(39, 147, 255, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 118px;
}

.upload-grid,
.color-grid,
.action-row,
.section-row {
  display: grid;
  gap: 10px;
}

.upload-grid,
.action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.section-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.secondary-button,
.danger-button,
.upload-tile {
  min-height: 48px;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.secondary-button,
.upload-tile {
  background: #fff;
  color: var(--text-color);
  box-shadow: inset 0 0 0 1px rgba(39, 147, 255, 0.12);
}

.secondary-button--small {
  min-height: 42px;
  padding-inline: 0.9rem;
}

.danger-button {
  background: var(--danger-soft);
  color: #b74a4a;
}

.upload-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.upload-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-tile--compact {
  min-height: 54px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  color: var(--text-color);
  font-weight: 700;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.action-column {
  display: flex;
  flex-direction: column;
}

.link-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picker-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.78rem;
  padding: 0.82rem 0.95rem;
  text-align: left;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: var(--text-color);
  box-shadow: inset 0 0 0 1px rgba(24, 35, 56, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.picker-item__copy strong,
.picker-item__copy span {
  display: block;
}

.picker-item__copy strong {
  font-size: 0.96rem;
}

.picker-item__copy span {
  margin-top: 0.2rem;
  color: var(--muted-color);
  font-size: 0.83rem;
}

.picker-item__grip {
  color: #9aa5bb;
  font-size: 1rem;
  letter-spacing: -0.18em;
  user-select: none;
}

.picker-item__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 36%),
    var(--accent-soft);
}

.picker-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.picker-item__icon span {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.picker-item__copy {
  min-width: 0;
}

.picker-item.is-selected {
  box-shadow:
    inset 0 0 0 1px rgba(39, 147, 255, 0.28),
    0 10px 18px rgba(39, 147, 255, 0.12);
}

.picker-item.is-drop-target {
  background: rgba(39, 147, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(39, 147, 255, 0.28),
    0 12px 24px rgba(39, 147, 255, 0.12);
}

.picker-item.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.panel-note {
  margin-bottom: 0;
  color: var(--muted-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.panel-note--hint {
  margin-top: 10px;
}

body.editing .editable[contenteditable="true"] {
  padding: 0.1rem 0.18rem;
}

body.editing .editable[contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(39, 147, 255, 0.12);
}

body.editing .editable[contenteditable="true"]:focus {
  outline: none;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(39, 147, 255, 0.26),
    0 0 0 4px rgba(39, 147, 255, 0.12);
}

@media (max-width: 960px) {
  .app-shell,
  body.editing .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    max-height: calc(100vh - 24px);
    z-index: 20;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.26s ease,
      opacity 0.2s ease;
  }

  body.editing .editor-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .editor-panel__scroll {
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .admin-topbar {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 14px;
  }

  .crop-modal {
    padding: 12px;
  }

  .crop-modal__dialog {
    padding: 16px;
    border-radius: 24px;
  }

  .app-shell {
    padding-inline: 12px;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .toolbar-actions > * {
    flex: 1 1 100%;
  }

  .profile-card__toolbar,
  .profile-copy {
    padding-inline: 16px;
  }

  .cover-frame {
    padding-inline: 12px;
  }

  .cover-image {
    min-height: 150px;
  }

  .cover-actions {
    right: 22px;
    bottom: 32px;
    gap: 8px;
  }

  .hero-pill--primary {
    min-width: 120px;
    padding-inline: 1rem;
  }

  .avatar-holder {
    left: 24px;
  }

  .avatar-ring {
    width: 90px;
    height: 90px;
  }

  .editable-title {
    font-size: 1.72rem;
  }

  .editable-bio {
    font-size: 0.98rem;
  }

  .links-stack {
    padding-inline: 12px;
  }

  .link-card {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
  }

  .link-icon {
    width: 52px;
    height: 52px;
  }

  .link-side {
    grid-column: 2;
    justify-self: start;
  }

  .add-link-inline {
    width: calc(100% - 24px);
    margin-inline: 12px;
  }

  .upload-grid,
  .color-grid,
  .action-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
