:root {
  --bg: #fff8fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #17202a;
  --text: #3f4a56;
  --muted: #7a8795;
  --line: rgba(23, 32, 42, 0.1);
  --pink: #ff4f8b;
  --coral: #ff8a5b;
  --mint: #26c6a4;
  --sky: #61b7ff;
  --lavender: #8977ff;
  --shadow: none;
  --max: 1220px;
  --app-viewport-height: 100dvh;
  --access-stage: min(680px, calc(100svh - 160px));
  --tap-min: 44px;
}

/* Touch devices get the larger Android Material 48px target. */
@media (pointer: coarse) {
  :root {
    --tap-min: 48px;
  }
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #080b12;
  --surface: rgba(18, 23, 34, 0.84);
  --surface-strong: #121722;
  --ink: #f7fbff;
  --text: #dce8f4;
  --muted: #a8b4c7;
  --line: rgba(142, 161, 190, 0.18);
  --pink: #f06f9f;
  --coral: #ff9b6b;
  --mint: #64e6c6;
  --sky: #7bbcff;
  --lavender: #a99cff;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 79, 139, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(97, 183, 255, 0.18), transparent 26%),
    radial-gradient(circle at 68% 88%, rgba(38, 198, 164, 0.13), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f8fbff 52%, #fffaf5 100%);
  font-family: "Nunito Sans", "Plus Jakarta Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", ui-rounded, ui-sans-serif, system-ui, sans-serif;
}

:root[data-theme="night"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(123, 188, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(142, 240, 211, 0.1), transparent 28%),
    radial-gradient(circle at 68% 88%, rgba(240, 111, 159, 0.08), transparent 32%),
    linear-gradient(180deg, #070a11 0%, #0d111b 52%, #090d14 100%);
}

:root[data-theme="night"] .studio-header,
:root[data-theme="night"] .auth-shell,
:root[data-theme="night"] .drops-panel,
:root[data-theme="night"] .control-panel,
:root[data-theme="night"] .manage-panel,
:root[data-theme="night"] .publish-panel,
:root[data-theme="night"] .access-requests-panel,
:root[data-theme="night"] .profile-page,
:root[data-theme="night"] .profile-overview,
:root[data-theme="night"] .profile-card,
:root[data-theme="night"] .profile-share,
:root[data-theme="night"] .profile-links,
:root[data-theme="night"] .profile-security,
:root[data-theme="night"] .profile-danger,
:root[data-theme="night"] dialog,
:root[data-theme="night"] input,
:root[data-theme="night"] select,
:root[data-theme="night"] textarea {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ink);
}

body.is-busy {
  cursor: progress;
}

body.modal-open {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

body.is-busy::after {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(90deg, transparent, var(--pink), var(--sky), transparent);
  background-size: 42% 100%;
  background-repeat: no-repeat;
  animation: busy-rail 1s ease-in-out infinite;
}

@keyframes busy-rail {
  0% {
    background-position: -42% 0;
  }

  100% {
    background-position: 142% 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

button {
  border: 0;
  cursor: pointer;
}

button.is-loading {
  position: relative;
  color: transparent !important;
  cursor: wait;
}

button.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  color: #ffffff;
  animation: loading-spin 760ms linear infinite;
}

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

.studio-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(var(--max), calc(100% - 28px));
  min-height: 62px;
  margin: 14px auto 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.brand,
.studio-header nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 18px;
  font-weight: 620;
}

.studio-header nav {
  color: var(--text);
  font-size: 14px;
}

.header-link {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text);
  font-weight: 560;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-link:hover {
  transform: translateY(-1px);
}

.home-link {
  background: rgba(23, 32, 42, 0.055);
}

.home-link:hover {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.09);
}

.drops-link {
  color: #fff;
  background: linear-gradient(135deg, #17202a, #303a45);
  box-shadow: none;
}

.drops-link:hover {
  box-shadow: none;
}

.account-link {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.055);
}

.account-link:hover {
  background: rgba(23, 32, 42, 0.09);
}

.header-link.is-session-link {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-weight: 560;
}

.header-link.is-session-link:hover {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.055);
}

.header-logout {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 650;
}

.profile-button {
  min-width: 0;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
  font-size: 13px;
  font-weight: 560;
}

.profile-button.is-active {
  color: #fff;
  background: var(--ink);
}

#profileBackButton {
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
}

#headerCreatorName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.92), rgba(255, 138, 91, 0.92));
  background-position: center;
  background-size: cover;
  font-size: 12px;
  font-weight: 650;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  box-shadow: none;
}

.mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.studio {
  width: min(var(--max), calc(100% - 32px));
  margin: clamp(30px, 4vw, 46px) auto 84px;
}

.access-view {
  min-height: var(--access-stage);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
}

.studio-header > *,
.access-view > *,
.dashboard-grid > *,
.workspace-grid > *,
.panel-heading > *,
.modal-heading > *,
.profile-page-heading > *,
.profile-overview > *,
.profile-layout > *,
.profile-card > *,
.profile-share > *,
.profile-security > *,
.profile-danger > * {
  min-width: 0;
}

.access-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title,
h2,
h3,
p {
  letter-spacing: 0;
}

.page-title,
h2,
h3 {
  margin: 0;
}

.page-title {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.04;
  font-weight: 620;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.access-copy > p:not(.eyebrow),
.panel-heading p,
.publish-panel p,
.drop-cover-editor p,
.levels-panel p,
.drop-card p,
.empty-state {
  color: var(--text);
  line-height: 1.6;
}

.access-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
}

.access-rules {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-rules span,
.status-pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 600;
}

/* In dark mode the light translucent fill washed the label text out
   (light-on-light). Use a dark translucent surface so it reads cleanly. */
:root[data-theme="night"] .access-rules span,
:root[data-theme="night"] .status-pill {
  color: var(--text);
  background: rgba(220, 232, 244, 0.1);
  border-color: rgba(142, 161, 190, 0.22);
}

.auth-shell,
.drops-panel,
.manage-panel,
.publish-panel {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.auth-shell {
  padding: 12px;
}

.auth-tabs {
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.07);
}

.auth-tabs button {
  min-height: var(--tap-min);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 650;
}

.auth-tabs button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.auth-form {
  padding: 26px 10px 8px;
  display: grid;
  gap: 14px;
}

.auth-form p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.auth-email {
  padding: 10px 12px;
  border: 1px solid rgba(38, 198, 164, 0.26);
  border-radius: 14px;
  color: #175b50;
  background: rgba(38, 198, 164, 0.09);
  font-size: 13px;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.legal-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.legal-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--pink);
}

.legal-check a {
  color: var(--ink);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-action {
  min-height: auto;
  padding: 0;
  justify-self: center;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-weight: 560;
}

.text-action:hover {
  color: var(--ink);
  transform: none;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 520;
  outline: none;
}

textarea {
  min-height: 82px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.42;
}

select {
  padding-right: 42px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%237a8795' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  cursor: pointer;
}

:root[data-theme="night"] select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23a8b4c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input::placeholder,
textarea::placeholder {
  color: #a7b0ba;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 79, 139, 0.58);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.auth-form button,
.creation-form button,
.level-form button,
.publish-panel > button,
.share-box button,
.secondary-button,
.danger-button,
.level-delete,
.primary-action,
.image-action,
.small-action,
.icon-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 680;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.auth-form button,
.creation-form button,
.publish-panel > button,
.primary-action {
  background: linear-gradient(135deg, #b51f55, #ad3e1b);
  box-shadow: none;
}

.auth-form .text-action {
  min-height: auto;
  padding: 0;
  justify-self: center;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

body.is-busy button:disabled {
  opacity: 1;
}

.hidden {
  display: none !important;
}

.dashboard-view {
  display: grid;
  gap: 14px;
}

.drop-panel-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.drop-panel-actions .small-action,
.drop-panel-actions .danger-button {
  border-radius: 14px;
}

.secondary-button {
  min-height: 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.small-action,
.icon-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
  box-shadow: none;
}

.icon-button {
  align-self: start;
}

.new-drop-action {
  min-width: 132px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #334050);
  box-shadow: none;
  white-space: nowrap;
}

.danger-button,
.level-delete {
  color: #d7335f;
  background: rgba(255, 79, 139, 0.1);
  box-shadow: none;
}

.danger-button {
  min-height: 40px;
  margin-left: auto;
  padding: 0 14px;
  flex: 0 0 auto;
}

.dashboard-grid {
  min-width: 0;
  display: grid;
  gap: 14px;
  align-items: start;
}

.drops-panel,
.manage-panel,
.publish-panel,
.access-requests-panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.panel-heading h2 {
  font-size: 24px;
}

.panel-heading p {
  margin: 4px 0 0;
  font-size: 14px;
}

.drops-list,
.followers-list,
.access-requests-list,
.levels-list,
.control-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.drops-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.followers-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.drop-card {
  min-width: 0;
  width: 100%;
  min-height: 86px;
  padding: 11px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.drop-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.drop-card.is-active {
  border-color: rgba(255, 79, 139, 0.46);
  background: #fff;
  box-shadow: none;
}

.drop-card.is-loading,
.follower-item.is-loading,
.level-item.is-loading {
  pointer-events: none;
}

.loading-block,
.loading-line,
.loading-pill {
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.12), rgba(97, 183, 255, 0.12)),
    rgba(23, 32, 42, 0.06);
  background-size: 100% 100%, 100% 100%;
}

.loading-copy {
  display: grid;
  gap: 8px;
}

.loading-line {
  height: 12px;
  border-radius: 999px;
}

.loading-line.short {
  width: 34%;
}

.loading-line.mid {
  width: 58%;
}

.loading-line.long {
  width: 84%;
}

.loading-pill {
  width: 82px;
  height: 28px;
  border-radius: 999px;
}

.loading-pill.muted {
  opacity: 0.68;
}

.loading-pill.compact {
  width: 28px;
  height: 20px;
}

.follower-item {
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.access-requests-panel {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.access-requests-list {
  grid-template-columns: 1fr;
}

.access-request-item {
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.access-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.access-request-actions .danger-button {
  margin-left: 0;
}

.follower-avatar {
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.9), rgba(255, 138, 91, 0.88)),
    var(--pink);
  background-position: center top;
  background-size: cover;
  font-size: 14px;
  font-weight: 650;
}

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

.follower-copy strong,
.follower-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follower-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.follower-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.drop-thumb {
  width: 48px;
  height: 66px;
  display: block;
  grid-row: span 2;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.22), rgba(97, 183, 255, 0.22)),
    #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

.drop-thumb-empty {
  background-size: cover;
}

.drop-thumb-empty::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  margin: 24px auto 0;
  border-radius: 50%;
  background: rgba(23, 32, 42, 0.12);
}

.drop-card strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-card-stats {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.25;
}

.drop-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.status-pill {
  padding: 6px 9px;
  font-size: 11px;
}

.visibility-pill {
  border-color: rgba(72, 240, 197, 0.26);
  color: #14624e;
  background: rgba(72, 240, 197, 0.14);
}

.visibility-pill.is-private {
  border-color: rgba(23, 32, 42, 0.12);
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
}

.drop-stats-panel {
  margin: -2px 0 12px;
  display: grid;
}

.analytics-details {
  --analytics-panel-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 249, 250, 0.78));
  --analytics-panel-line: rgba(23, 32, 42, 0.1);
  --analytics-panel-shadow: none;
  --analytics-label: #667386;
  --analytics-value: #17202a;
  --analytics-tile-bg: rgba(255, 255, 255, 0.7);
  --analytics-track: rgba(23, 32, 42, 0.1);
  overflow: hidden;
  border: 1px solid var(--analytics-panel-line);
  border-radius: 14px;
  background: var(--analytics-panel-bg);
  box-shadow: none;
}

.analytics-details summary {
  min-height: 54px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: var(--analytics-value);
  cursor: pointer;
  list-style: none;
}

.analytics-details summary::-webkit-details-marker {
  display: none;
}

.analytics-details summary::after {
  content: "";
  width: 9px;
  height: 9px;
  justify-self: center;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.45;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.analytics-details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.analytics-details summary span {
  overflow: hidden;
  color: var(--analytics-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.analytics-details summary strong {
  color: var(--analytics-value);
  font-size: 22px;
  font-weight: 650;
}

.analytics-details[open] summary {
  border-bottom-color: var(--analytics-panel-line);
}

.analytics-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) repeat(3, minmax(82px, 1fr));
  gap: 8px;
}

.analytics-summary,
.stat-tile {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--analytics-panel-line);
  border-radius: 12px;
  background: var(--analytics-tile-bg);
}

.analytics-summary {
  display: grid;
  gap: 8px;
}

.analytics-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.analytics-summary span {
  color: var(--analytics-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analytics-summary strong {
  color: var(--analytics-value);
  font-size: 22px;
}

.analytics-summary meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
}

.analytics-summary meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: var(--analytics-track);
}

.analytics-summary meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--mint));
}

.analytics-summary meter::-moz-meter-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--mint));
}

.stat-tile span,
.stat-tile strong {
  display: block;
}

.stat-tile span {
  color: var(--analytics-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-tile strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--analytics-value);
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-row,
.share-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: 12px;
  align-items: end;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(280px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.cover-drop,
.image-action,
.profile-upload,
.upload-drop {
  position: relative;
  min-height: 48px;
  padding: 8px 10px 8px 8px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  justify-items: start;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}

.cover-drop::before,
.image-action::before,
.profile-upload::before,
.upload-drop::before {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.cover-drop input,
.profile-upload input,
.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cover-drop span,
.image-action span,
.profile-upload span,
.upload-drop span {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-drop small,
.image-action small,
.profile-upload small,
.upload-drop small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-action small:empty {
  display: none;
}

.drop-cover-editor {
  padding: 12px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.drop-cover-editor h3 {
  font-size: 18px;
  font-weight: 650;
}

.drop-cover-editor p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cover-crop-stack {
  width: 150px;
  max-width: 100%;
  display: grid;
  gap: 10px;
}

.cover-crop-preview {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(45deg, rgba(23, 32, 42, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 32, 42, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(23, 32, 42, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(23, 32, 42, 0.04) 75%),
    #ffffff;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.cover-crop-preview.is-dragging {
  cursor: grabbing;
}

.cover-crop-preview::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  outline: 999px solid rgba(23, 32, 42, 0.04);
}

#dropCoverCanvas {
  width: 100%;
  aspect-ratio: 9 / 13;
  display: block;
}

.cover-crop-controls {
  display: grid;
  gap: 13px;
}

.cover-crop-controls input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--pink);
  background: transparent;
}

.level-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}

.level-builder-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.level-builder-header h3 {
  font-size: 18px;
  font-weight: 650;
}

.level-builder-header p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.level-actions {
  display: grid;
  grid-template-columns: 98px auto;
  gap: 10px;
  align-items: end;
}

.level-actions .image-action {
  width: max-content;
  max-width: 100%;
  min-width: 230px;
  min-height: 48px;
  padding: 8px 10px 8px 8px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  justify-items: start;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  text-align: left;
}

.crop-studio {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}

.crop-form {
  padding: 22px;
  display: grid;
  gap: 16px;
  max-height: inherit;
  overflow-y: auto;
}

.crop-modal {
  width: min(760px, calc(100% - 32px));
}

.crop-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(45deg, rgba(23, 32, 42, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 32, 42, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(23, 32, 42, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(23, 32, 42, 0.04) 75%),
    #ffffff;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crop-preview.is-dragging {
  cursor: grabbing;
}

.crop-preview::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  outline: 999px solid rgba(23, 32, 42, 0.04);
}

#cropCanvas {
  width: 100%;
  aspect-ratio: 9 / 13;
  display: block;
}

.crop-controls {
  display: grid;
  gap: 13px;
  align-self: start;
  padding-top: 4px;
}

.crop-controls .upload-drop {
  width: min(100%, 280px);
}

.crop-controls input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--pink);
  background: transparent;
}

.levels-list.has-levels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  padding-top: 2px;
  overflow: visible;
}

.level-item {
  position: relative;
  padding: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  cursor: default;
  touch-action: pan-y;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.level-item.is-dragging {
  opacity: 0.72;
  cursor: grabbing;
  transition: none;
}

.level-item.is-drop-target {
  border-color: rgba(255, 79, 139, 0.46);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.level-thumb {
  aspect-ratio: 9 / 13;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.14), rgba(97, 183, 255, 0.14)),
    #fff;
  font-size: 12px;
  font-weight: 560;
}

.level-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.76);
}

.level-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.level-card-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.level-reorder {
  display: none;
  align-items: center;
  gap: 4px;
}

.level-move {
  width: 26px;
  min-height: 26px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: rgba(23, 32, 42, 0.06);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.level-grip {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: grab;
  font-size: 14px;
  line-height: 1;
  touch-action: none;
  user-select: none;
}

.level-item.is-dragging .level-grip {
  cursor: grabbing;
}

.level-item strong {
  min-width: 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-thumb span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-delete {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.levels-panel {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.levels-panel h3 {
  font-size: 18px;
  font-weight: 650;
}

.levels-panel p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.levels-header {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.publish-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.publish-panel h2 {
  font-size: 24px;
}

.publish-panel p {
  margin: 8px 0 0;
}

.publish-visibility {
  min-width: min(100%, 360px);
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-radius: 16px;
  background: rgba(23, 32, 42, 0.06);
}

.publish-visibility legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.publish-visibility label {
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: transparent;
}

.publish-visibility label:has(input:checked) {
  border-color: rgba(255, 79, 139, 0.22);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.publish-visibility input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--pink);
}

.publish-visibility span {
  min-width: 0;
}

.publish-visibility strong,
.publish-visibility small {
  display: block;
}

.publish-visibility strong {
  color: var(--ink);
  font-size: 12px;
}

.publish-visibility small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.share-box {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
}

.studio-modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(var(--app-viewport-height) - 32px);
  padding: 0;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 26px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: auto;
}

.studio-modal::backdrop {
  background: rgba(23, 32, 42, 0.52);
  backdrop-filter: blur(4px);
}

.creation-form {
  padding: 22px;
  display: grid;
  gap: 16px;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.policy-form {
  padding: 22px;
  display: grid;
  gap: 16px;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.profile-page {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.profile-form {
  display: grid;
  gap: 18px;
}

.profile-page-heading {
  display: flex;
  align-items: center;
}

.profile-page-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.08;
}

.profile-page-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.profile-save-status {
  min-height: 34px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(38, 198, 164, 0.28);
  border-radius: 999px;
  color: #087c68;
  background: rgba(38, 198, 164, 0.1);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.profile-save-status[data-status="dirty"],
.profile-save-status[data-status="saving"] {
  border-color: rgba(97, 183, 255, 0.28);
  color: #176aa8;
  background: rgba(97, 183, 255, 0.12);
}

.profile-save-status[data-status="error"] {
  border-color: rgba(255, 79, 139, 0.3);
  color: #c8265f;
  background: rgba(255, 79, 139, 0.12);
}

:root[data-theme="night"] .profile-save-status {
  color: #7df0d1;
  background: rgba(100, 230, 198, 0.12);
}

:root[data-theme="night"] .profile-save-status[data-status="dirty"],
:root[data-theme="night"] .profile-save-status[data-status="saving"] {
  color: #9bd0ff;
  background: rgba(123, 188, 255, 0.14);
}

:root[data-theme="night"] .profile-save-status[data-status="error"] {
  color: #ff9bbb;
  background: rgba(240, 111, 159, 0.14);
}

.profile-overview {
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 6% 12%, rgba(255, 79, 139, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.62);
}

.profile-overview h3 {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 620;
  line-height: 1.08;
}

.profile-overview p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.profile-avatar-stack {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.profile-overview-copy {
  align-self: center;
  padding-block: 4px;
}

.profile-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(154px, 0.26fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-section-tabs {
  position: sticky;
  top: 96px;
  padding: 6px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-section-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 15px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.profile-section-tabs button.is-active {
  color: #fff;
  background: var(--ink);
}

.profile-tab-panel {
  display: grid;
  gap: 16px;
}

#profileDetailsPanel[data-section="public"] [data-profile-section]:not([data-profile-section="public"]),
#profileDetailsPanel[data-section="links"] [data-profile-section]:not([data-profile-section="links"]),
#profileDetailsPanel[data-section="security"] [data-profile-section]:not([data-profile-section="security"]),
#profileDetailsPanel[data-section="followers"] [data-profile-section]:not([data-profile-section="followers"]) {
  display: none;
}

.profile-followers-panel {
  min-height: 220px;
}

.profile-followers-panel .followers-list {
  grid-template-columns: 1fr;
}

.modal-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.modal-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.drop-draft-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.drop-disclosure {
  min-width: 0;
}

.drop-disclosure > summary {
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(23, 32, 42, 0.045);
  font-size: 13px;
  font-weight: 560;
  list-style: none;
  cursor: pointer;
}

.drop-disclosure > summary::-webkit-details-marker {
  display: none;
}

.drop-disclosure > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  font-weight: 560;
  line-height: 1;
}

.drop-disclosure[open] > summary::after {
  content: "−";
}

.drop-disclosure[open] > .form-row,
.drop-disclosure[open] > .drop-cover-editor {
  margin-top: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delete-account-form {
  gap: 18px;
}

.creation-form .secondary-button {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
  box-shadow: none;
}

.creation-form .icon-button {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
  box-shadow: none;
}

.policy-modal {
  width: min(680px, calc(100% - 32px));
}

.policy-form .icon-button {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
  box-shadow: none;
}

.policy-checks {
  display: grid;
  gap: 10px;
}

.policy-checks label {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.policy-checks input {
  width: 17px;
  min-height: 17px;
  margin-top: 1px;
  accent-color: var(--pink);
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-links a {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(23, 32, 42, 0.06);
  font-size: 12px;
  font-weight: 560;
  text-decoration: none;
}

.profile-card,
.profile-share,
.profile-links,
.profile-security,
.profile-danger {
  padding: 14px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

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

.profile-share {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 79, 139, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.66);
}

.profile-share input {
  font-size: 13px;
}

.profile-overview h3,
.profile-links h3,
.profile-security h3,
.profile-danger h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
}

.profile-overview p,
.profile-links p,
.profile-security p,
.profile-danger p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.profile-avatar-preview {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.9), rgba(255, 138, 91, 0.9));
  background-position: center;
  background-size: cover;
  font-size: 28px;
  font-weight: 650;
}

.profile-upload {
  width: max-content;
  max-width: 100%;
  display: inline-grid;
  min-height: 34px;
  padding: 0 10px;
  grid-template-columns: 1fr;
  border-radius: 999px;
  box-shadow: none;
  text-align: center;
}

.profile-upload::before {
  display: none;
}

.profile-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-upload span {
  font-size: 12px;
  font-weight: 560;
}

.profile-upload small {
  display: none;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-page label {
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
}

.profile-page input,
.profile-page select,
.profile-page textarea {
  min-height: 46px;
  font-size: 15px;
  font-weight: 400;
}

.profile-page textarea {
  min-height: 78px;
  line-height: 1.38;
}

.profile-bio-field {
  grid-column: 1 / -1;
}

.profile-tags-field {
  grid-column: 1 / -1;
}

.profile-links {
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.profile-links-fields {
  display: grid;
  gap: 12px;
}

.profile-social-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-website-field {
  grid-column: 1 / -1;
}

.profile-security {
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
}

.profile-password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(23, 32, 42, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.empty-state p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.empty-state button {
  min-height: 38px;
  margin-top: 10px;
}

.first-drop-empty {
  min-height: 130px;
  display: grid;
  align-content: center;
  justify-items: start;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 79, 139, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.6);
}

.first-level-empty {
  min-height: 168px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.message {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  max-width: min(680px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: none;
  font-weight: 650;
  transform: translateX(-50%);
}

:root[data-theme="night"] .message {
  border-color: rgba(142, 161, 190, 0.22);
  color: var(--ink);
  background: #151b28;
  box-shadow: none;
}

.message.error {
  color: #fff;
  background: #b51f55;
}

:root[data-theme="night"] .message.error {
  color: #fff;
  background: #b83255;
}

.studio-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: -44px auto 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
}

.studio-footer a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .access-view,
  .dashboard-grid,
  .workspace-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-section-tabs {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-section-tabs button {
    text-align: center;
  }

  .publish-visibility {
    grid-template-columns: 1fr;
  }

  .access-request-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .access-request-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (min-width: 1440px) {
  .studio {
    margin-top: 36px;
  }
}

@media (max-width: 680px) {
  :root {
    --surface: rgba(255, 255, 255, 0.94);
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .studio {
    width: min(calc(100% - 22px), var(--max));
    margin-top: 20px;
    margin-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .studio-header {
    top: 8px;
    width: calc(100% - 12px);
    min-width: 0;
    min-height: 58px;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 40px;
    font-size: 16px;
  }

  .brand > span:last-child {
    display: none;
  }

  .mark {
    width: 40px;
    height: 40px;
  }

  .auth-shell,
  .drops-panel,
  .profile-page,
  .profile-overview,
  .manage-panel,
  .publish-panel,
  .upload-drop,
  .studio-modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .studio-modal::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .studio-header nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-block: 3px;
    overflow: visible;
    font-size: 11px;
  }

  .header-link {
    flex: 0 0 auto;
    max-width: 64px;
    min-height: 44px;
    padding: 0 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .access-rules {
    display: none;
  }

  .account-link {
    max-width: 74px;
  }

  .profile-button {
    flex: 0 1 auto;
    width: max-content;
    max-width: min(34vw, 128px);
    min-height: 44px;
    padding-right: 8px;
    font-size: 12px;
  }

  #headerCreatorName {
    max-width: min(19vw, 74px);
  }

  .header-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }

  .header-logout {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0;
  }

  .header-logout::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 4h7v2H7v12h5v2H5V4Zm10.6 4.4L20.2 13l-4.6 4.6-1.4-1.4 2.2-2.2H10v-2h6.4l-2.2-2.2 1.4-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 4h7v2H7v12h5v2H5V4Zm10.6 4.4L20.2 13l-4.6 4.6-1.4-1.4 2.2-2.2H10v-2h6.4l-2.2-2.2 1.4-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .page-title {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
  }

  .access-view {
    min-height: auto;
    gap: 20px;
  }

  .access-copy > p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.5;
  }

  .access-rules {
    margin: 18px -11px 0;
    padding: 0 11px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-padding-inline: 11px;
    -webkit-overflow-scrolling: touch;
  }

  .access-rules span {
    flex: 0 0 auto;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  textarea {
    min-height: 90px;
  }

  .auth-tabs button {
    min-height: 44px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .studio-modal {
    width: calc(100% - 16px);
    max-height: calc(var(--app-viewport-height) - 16px);
    border-radius: 22px;
  }

  .form-row,
  .level-builder-header,
  .level-actions,
  .drop-cover-editor,
  .crop-studio,
  .publish-panel,
  .share-box {
    grid-template-columns: 1fr;
  }

  .auth-form,
  .drops-panel,
  .creation-form,
  .crop-form,
  .policy-form,
  .manage-panel,
  .publish-panel {
    padding: 18px;
  }

  .profile-page {
    padding: 14px;
    border-radius: 24px;
  }

  .profile-page-heading {
    grid-template-columns: 1fr;
  }

  .profile-page-heading {
    gap: 12px;
  }

  .profile-save-status {
    width: max-content;
  }

  .profile-overview {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .profile-share {
    grid-template-columns: 1fr;
  }

  .level-actions .image-action {
    width: 100%;
    min-width: 0;
  }

  .creation-form,
  .crop-form,
  .profile-form {
    gap: 14px;
  }

  .modal-heading {
    gap: 10px;
    align-items: start;
  }

  .modal-heading h2 {
    font-size: 22px;
  }

  .modal-heading p:not(.eyebrow) {
    margin-top: 6px;
    font-size: 13px;
  }

  .modal-heading .icon-button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .modal-actions {
    position: sticky;
    bottom: -18px;
    margin: 0 -18px -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #ffffff 35%);
  }

  .modal-actions button,
  .auth-form button,
  .publish-panel > button,
  .share-box button,
  .profile-share button,
  .profile-danger button,
  .profile-password-fields button,
  .form-row input {
    width: 100%;
    min-height: 46px;
  }

  .drops-panel {
    padding: 14px;
  }

  .drops-panel.is-empty > .panel-heading .new-drop-action {
    display: none;
  }

  .panel-heading {
    align-items: start;
    gap: 10px;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  .panel-heading p {
    max-width: 230px;
    font-size: 13px;
    line-height: 1.35;
  }

  .new-drop-action {
    min-width: 104px;
    min-height: 44px;
    padding: 0 15px;
    flex: 0 0 auto;
  }

  .manage-panel .panel-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .manage-panel.has-no-drop {
    display: none;
  }

  .manage-panel.has-no-levels .level-form {
    display: none;
  }

  .drop-panel-actions #previewDropButton:disabled {
    display: none;
  }

  .manage-panel .panel-heading > div:first-child {
    min-width: 0;
  }

  .drop-panel-actions {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .drop-panel-actions button {
    width: 100%;
    min-height: 44px;
  }

  .drop-panel-actions .danger-button {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .drop-stats-panel {
    margin-bottom: 10px;
  }

  .analytics-details summary {
    min-height: 50px;
    padding-inline: 13px;
  }

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

  .analytics-summary {
    grid-column: 1 / -1;
  }

  .drops-list {
    display: flex;
    gap: 10px;
    margin: 0 -14px;
    padding: 0 14px 4px;
    max-width: calc(100% + 28px);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .drop-card {
    width: min(78vw, 300px);
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
  }

  .crop-modal .crop-studio {
    justify-items: center;
  }

  .crop-modal:not(.has-image) .crop-preview,
  .crop-modal:not(.has-image) .crop-controls label:not(.upload-drop),
  .crop-modal:not(.has-image) #cropReset,
  .crop-modal:not(.has-image) #confirmCropButton {
    display: none;
  }

  .crop-modal .crop-preview {
    width: min(68vw, 300px);
  }

  .crop-controls .upload-drop {
    width: min(68vw, 300px);
    justify-self: center;
  }

  .cover-crop-stack {
    width: min(72vw, 240px);
    justify-self: center;
  }

  .drop-cover-editor:not(.has-cover-image) {
    border-style: dashed;
  }

  .drop-cover-editor:not(.has-cover-image) .cover-crop-preview,
  .drop-cover-editor:not(.has-cover-image) .cover-crop-controls {
    display: none;
  }

  .publish-panel {
    gap: 12px;
  }

  .publish-panel.has-no-drop {
    display: none;
  }

  .publish-panel.is-locked .publish-visibility,
  .publish-panel.is-locked > button {
    display: none;
  }

  .publish-panel > button {
    justify-self: stretch;
  }

  .publish-visibility {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .publish-visibility label {
    min-height: 54px;
  }

  .profile-upload {
    width: 100%;
  }

  .profile-section-tabs {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .profile-section-tabs button {
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-section-tabs button.is-active {
    color: #fff;
    background: var(--ink);
    border-color: transparent;
  }

  .profile-danger .danger-button {
    margin-left: 0;
  }

  .message {
    width: calc(100% - 24px);
    bottom: max(14px, env(safe-area-inset-bottom));
    border-radius: 18px;
    text-align: center;
  }

  .policy-checks label {
    padding: 12px;
  }

  .policy-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .crop-controls,
  .crop-controls label:not(.upload-drop),
  .cover-crop-controls label {
    width: 100%;
  }

  .crop-controls .secondary-button,
  .cover-crop-controls .secondary-button {
    width: 100%;
  }

  .level-delete {
    min-height: 34px;
    padding-inline: 10px;
  }

  .level-reorder {
    display: inline-flex;
  }

  .level-grip {
    display: none;
  }

  .levels-header {
    align-items: start;
  }

  .levels-panel p {
    line-height: 1.35;
  }

  .empty-state {
    padding: 13px;
  }

  .studio-footer {
    width: min(calc(100% - 24px), var(--max));
    margin-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .profile-fields,
  .profile-card,
  .profile-links,
  .profile-security,
  .profile-danger {
    grid-template-columns: 1fr;
  }

  .profile-social-fields {
    grid-template-columns: 1fr;
  }

  .profile-password-fields {
    grid-template-columns: 1fr;
  }

  .profile-avatar-preview {
    width: 82px;
    height: 82px;
  }

  .levels-list.has-levels {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

@media (max-width: 520px) {
  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-heading p {
    max-width: none;
  }

  .new-drop-action {
    width: 100%;
  }

  .drops-panel .panel-heading {
    flex-direction: row;
    align-items: start;
  }

  .drops-panel .panel-heading > div {
    min-width: 0;
  }

  .drops-panel .new-drop-action {
    width: auto;
    margin-left: auto;
  }

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

@media (max-width: 420px) {
  .home-link {
    display: none;
  }

  .studio-header {
    gap: 5px;
  }

  .studio-header nav {
    gap: 4px;
  }

  .header-link {
    padding: 0 9px;
    font-size: 11px;
  }

  .account-link {
    max-width: 68px;
  }

  .profile-button {
    flex-basis: auto;
    max-width: 108px;
    min-height: 44px;
  }

  #headerCreatorName {
    max-width: 58px;
  }

  .studio-modal {
    width: 100%;
    max-height: var(--app-viewport-height);
    max-width: 100%;
    border-radius: 22px 22px 0 0;
  }

  .studio-modal[open] {
    margin-top: auto;
    margin-bottom: 0;
  }

  body.keyboard-open .studio-modal[open] {
    margin-top: 6px;
    margin-bottom: auto;
    border-radius: 22px;
  }

  .creation-form,
  .crop-form {
    padding: 16px;
  }

  .crop-modal .crop-preview,
  .crop-controls .upload-drop {
    width: min(74vw, 270px);
  }

  .modal-actions {
    bottom: -16px;
    margin: 0 -16px -16px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  }
}

:root[data-theme="night"] .studio-header,
:root[data-theme="night"] .auth-shell,
:root[data-theme="night"] .auth-tabs,
:root[data-theme="night"] .drops-panel,
:root[data-theme="night"] .control-panel,
:root[data-theme="night"] .manage-panel,
:root[data-theme="night"] .publish-panel,
:root[data-theme="night"] .profile-page,
:root[data-theme="night"] .profile-overview,
:root[data-theme="night"] .profile-card,
:root[data-theme="night"] .profile-share,
:root[data-theme="night"] .profile-links,
:root[data-theme="night"] .profile-security,
:root[data-theme="night"] .profile-danger,
:root[data-theme="night"] dialog,
:root[data-theme="night"] input,
:root[data-theme="night"] select,
:root[data-theme="night"] textarea {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ink);
}

:root[data-theme="night"] .auth-tabs {
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="night"] .auth-tabs button.is-active {
  color: #f7fbff;
  background: #273044;
  box-shadow: none;
}

:root[data-theme="night"] input::placeholder,
:root[data-theme="night"] textarea::placeholder {
  color: rgba(220, 232, 244, 0.52);
}

:root[data-theme="night"] .secondary-button,
:root[data-theme="night"] .small-action,
:root[data-theme="night"] .icon-button,
:root[data-theme="night"] .cover-drop,
:root[data-theme="night"] .image-action,
:root[data-theme="night"] .profile-upload,
:root[data-theme="night"] .upload-drop,
:root[data-theme="night"] .share-box button {
  border: 1px solid rgba(142, 161, 190, 0.16);
  color: var(--text);
  background: #273044;
  box-shadow: none;
}

:root[data-theme="night"] .secondary-button:hover,
:root[data-theme="night"] .small-action:hover,
:root[data-theme="night"] .icon-button:hover,
:root[data-theme="night"] .cover-drop:hover,
:root[data-theme="night"] .image-action:hover,
:root[data-theme="night"] .profile-upload:hover,
:root[data-theme="night"] .upload-drop:hover,
:root[data-theme="night"] .share-box button:hover {
  background: #303b52;
}

:root[data-theme="night"] .analytics-details {
  --analytics-panel-bg:
    linear-gradient(135deg, rgba(22, 29, 43, 0.98), rgba(14, 19, 30, 0.96)),
    #111827;
  --analytics-panel-line: rgba(142, 161, 190, 0.2);
  --analytics-panel-shadow: none;
  --analytics-label: #aeb9cb;
  --analytics-value: #f8fbff;
  --analytics-tile-bg: rgba(220, 232, 244, 0.07);
  --analytics-track: rgba(220, 232, 244, 0.14);
}

:root[data-theme="night"] .analytics-summary meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #ff78a7, #64e6c6);
}

:root[data-theme="night"] .analytics-summary meter::-moz-meter-bar {
  background: linear-gradient(90deg, #ff78a7, #64e6c6);
}

:root[data-theme="night"] .profile-button.is-active,
:root[data-theme="night"] .header-logout,
:root[data-theme="night"] .new-drop-action {
  color: #ffffff;
  background: linear-gradient(135deg, #273044, #3a465d);
  box-shadow: none;
}

:root[data-theme="night"] .account-link {
  color: var(--text);
  background: rgba(220, 232, 244, 0.08);
}

:root[data-theme="night"] .account-link:hover {
  color: var(--ink);
  background: rgba(220, 232, 244, 0.12);
}

:root[data-theme="night"] .profile-section-tabs {
  border-color: rgba(142, 161, 190, 0.16);
  background: rgba(18, 23, 34, 0.72);
}

:root[data-theme="night"] .profile-section-tabs button {
  border-color: rgba(142, 161, 190, 0.14);
  color: var(--text);
  background: rgba(220, 232, 244, 0.08);
}

:root[data-theme="night"] .profile-section-tabs button:not(.is-active):hover {
  background: rgba(220, 232, 244, 0.12);
}

:root[data-theme="night"] .profile-section-tabs button.is-active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #b51f55, #ad3e1b);
  box-shadow: none;
}

:root[data-theme="night"] .drop-card {
  border-color: rgba(142, 161, 190, 0.14);
  background: rgba(18, 23, 34, 0.74);
}

:root[data-theme="night"] .drop-card:hover {
  background: rgba(27, 34, 49, 0.86);
  box-shadow: none;
}

:root[data-theme="night"] .drop-card.is-active {
  border-color: rgba(240, 111, 159, 0.42);
  background: rgba(240, 111, 159, 0.12);
  box-shadow: none;
}

:root[data-theme="night"] .status-pill,
:root[data-theme="night"] .visibility-pill,
:root[data-theme="night"] .visibility-pill.is-private {
  border-color: rgba(142, 161, 190, 0.16);
  color: var(--text);
  background: rgba(220, 232, 244, 0.08);
}

:root[data-theme="night"] .visibility-pill {
  border-color: rgba(100, 230, 198, 0.28);
  color: #b9f6e8;
  background: rgba(100, 230, 198, 0.12);
}

:root[data-theme="night"] .publish-visibility {
  background: rgba(220, 232, 244, 0.06);
}

:root[data-theme="night"] .publish-visibility label {
  border-color: rgba(142, 161, 190, 0.1);
  background: rgba(220, 232, 244, 0.04);
}

:root[data-theme="night"] .publish-visibility label:has(input:checked) {
  border-color: rgba(240, 111, 159, 0.42);
  background: rgba(240, 111, 159, 0.13);
  box-shadow: none;
}

:root[data-theme="night"] .publish-visibility strong,
:root[data-theme="night"] .empty-state strong,
:root[data-theme="night"] .level-item strong,
:root[data-theme="night"] .drop-card strong {
  color: var(--ink);
}

:root[data-theme="night"] .publish-visibility small {
  color: var(--muted);
}

:root[data-theme="night"] .level-item,
:root[data-theme="night"] .follower-item,
:root[data-theme="night"] .access-request-item,
:root[data-theme="night"] .empty-state {
  border-color: rgba(142, 161, 190, 0.14);
  background: rgba(18, 23, 34, 0.66);
  box-shadow: none;
}

:root[data-theme="night"] .empty-state {
  border-style: solid;
}

:root[data-theme="night"] .first-drop-empty {
  background:
    radial-gradient(circle at 10% 18%, rgba(240, 111, 159, 0.14), transparent 36%),
    rgba(18, 23, 34, 0.66);
}

:root[data-theme="night"] .level-thumb,
:root[data-theme="night"] .drop-thumb {
  background:
    linear-gradient(135deg, rgba(240, 111, 159, 0.16), rgba(123, 188, 255, 0.12)),
    #121722;
  box-shadow: none;
}

:root[data-theme="night"] .drop-thumb {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

:root[data-theme="night"] .drop-thumb-empty {
  background-size: cover;
}

:root[data-theme="night"] .level-thumb img {
  background: #0f1420;
}

:root[data-theme="night"] .drop-thumb-empty::before {
  background: rgba(220, 232, 244, 0.16);
}

:root[data-theme="night"] .level-move {
  color: var(--text);
  background: rgba(220, 232, 244, 0.1);
}

:root[data-theme="night"] .level-delete,
:root[data-theme="night"] .danger-button {
  color: #ff78a7;
  background: rgba(240, 111, 159, 0.12);
}

:root[data-theme="night"] .studio-modal,
:root[data-theme="night"] .creation-form,
:root[data-theme="night"] .crop-form,
:root[data-theme="night"] .policy-form {
  border-color: rgba(142, 161, 190, 0.18);
  background: #121722;
  color: var(--ink);
}

:root[data-theme="night"] .studio-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

:root[data-theme="night"] .creation-form .modal-actions,
:root[data-theme="night"] .crop-form .modal-actions,
:root[data-theme="night"] .policy-form .modal-actions {
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.86), #121722 35%);
}

:root[data-theme="night"] .drop-disclosure > summary,
:root[data-theme="night"] .drop-cover-editor,
:root[data-theme="night"] .cover-crop-preview,
:root[data-theme="night"] .crop-preview,
:root[data-theme="night"] .policy-checks label,
:root[data-theme="night"] .policy-links a,
:root[data-theme="night"] .profile-overview,
:root[data-theme="night"] .profile-card,
:root[data-theme="night"] .profile-share,
:root[data-theme="night"] .profile-links,
:root[data-theme="night"] .profile-security,
:root[data-theme="night"] .profile-danger {
  border-color: rgba(142, 161, 190, 0.16);
  background: rgba(220, 232, 244, 0.07);
}

:root[data-theme="night"] .cover-crop-preview,
:root[data-theme="night"] .crop-preview {
  background:
    linear-gradient(45deg, rgba(220, 232, 244, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(220, 232, 244, 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(220, 232, 244, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(220, 232, 244, 0.055) 75%),
    #0f1420;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-size: 28px 28px;
  box-shadow: none;
}

:root[data-theme="night"] .crop-preview {
  box-shadow: none;
}

:root[data-theme="night"] .cover-crop-preview::after,
:root[data-theme="night"] .crop-preview::after {
  border-color: rgba(220, 232, 244, 0.46);
  outline: 999px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 760px) {
  body.has-mobile-tabbar .message {
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: max-content;
  }
}
