/*
 * Space Face site theme.
 *
 * Cascade layers: site styles live in `meez-base`, preset layouts in `meez-preset`, and each
 * person's own CSS in `meez-user`. Later layers win for normal declarations, so pasted layouts
 * beat the theme at any specificity — but `!important` declarations in earlier layers win over
 * later ones, so the containment rules marked !important below can never be undone by user CSS.
 */
@layer meez-base, meez-preset, meez-user;

@layer meez-base {
  :root {
    --meez-page: #e4e4e4;
    --meez-panel: #ffffff;
    --meez-ink: #1b1b1b;
    --meez-muted: #6a6a6a;
    --meez-link: #222222;
    --meez-link-hover: #000000;
    --meez-gray-900: #111111;
    --meez-gray-700: #2e2e2e;
    --meez-gray-500: #5a5a5a;
    --meez-gray-200: #c6c6c6;
    --meez-gray-100: #ededed;
    --meez-label: #e3e3e3;
    --meez-label-ink: #2a2a2a;
    --meez-strong: #141414;
    --meez-box-bg: #ebebeb;
    --meez-box-line: #c3c3c3;
    --meez-online: #0f7a0f;
    --meez-hot: #d6145f;
    --meez-sun: #ffd23f;
    --meez-ok-bg: #eafbe5;
    --meez-ok-line: #8ed37a;
    --meez-err-bg: #fff0f0;
    --meez-err-line: #ef9a9a;
    --meez-font: Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif;
    --meez-head: Arial, Helvetica, sans-serif;
  }

  /* ---------- containment (never overridable by user CSS) ---------- */
  .meez-frame {
    position: relative !important;
    display: block !important;
    contain: paint !important;
    overflow: clip !important;
    isolation: isolate !important;
  }
  .meez-ugc {
    position: relative !important;
    contain: content !important;
    overflow: clip !important;
    max-width: 100% !important;
  }

  /* ---------- base ---------- */
  html {
    background: var(--meez-page);
  }
  body {
    margin: 0;
    font: 12px / 1.45 var(--meez-font);
    color: var(--meez-ink);
    background: var(--meez-page);
    -webkit-text-size-adjust: 100%;
  }
  a {
    color: var(--meez-link);
    text-decoration: underline;
    text-decoration-color: #a6a6a6;
    text-underline-offset: 2px;
  }
  a:hover {
    color: var(--meez-link-hover);
    text-decoration-color: currentColor;
  }
  .meez-nav a,
  .meez-logo,
  .meez-btn,
  .meez-tabs a,
  .meez-menu a,
  .meez-grid-cell a,
  .meez-album a,
  .meez-photo-thumb,
  .meez-toplinks a {
    text-decoration: none;
  }
  img {
    max-width: 100%;
  }
  h1,
  h2,
  h3 {
    font-family: var(--meez-head);
  }
  h1 {
    font-size: 20px;
    margin: 0 0 10px;
  }
  h3 {
    font-size: 13px;
    margin: 14px 0 6px;
    color: var(--meez-gray-700);
  }
  code {
    font:
      11px "Courier New",
      monospace;
    background: #f0f0f0;
    padding: 0 3px;
  }
  hr {
    border: 0;
    border-top: 1px solid #d6d6d6;
  }
  .meez-wrap {
    width: 800px;
    max-width: calc(100% - 16px);
    margin: 0 auto;
    box-sizing: border-box;
  }
  .meez-small {
    font-size: 10px;
    color: var(--meez-muted);
  }
  .meez-muted {
    color: var(--meez-muted);
  }
  .meez-deleted {
    color: var(--meez-muted);
    font-style: italic;
  }
  .meez-inline-form {
    display: inline;
    margin: 0;
  }
  .meez-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  /* ---------- header ---------- */
  .meez-header {
    background: linear-gradient(#3d3d3d, #262626 50%, #141414 51%, #060606);
    border-bottom: 1px solid #000;
    color: #fff;
  }
  .meez-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 8px;
  }
  .meez-logo {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 40px auto;
    align-items: end;
    column-gap: 10px;
    color: #fff;
  }
  .meez-logo-face {
    grid-row: span 2;
    align-self: center;
    width: 66px;
    height: 56px;
    object-fit: contain;
  }
  .meez-logo:hover {
    color: #fff;
    text-decoration: none;
  }
  .meez-logo-word {
    padding-right: 6px;
    line-height: 1;
    white-space: nowrap;
  }
  .meez-logo-word em {
    font-style: inherit;
  }

  /* Wordmark looks: the layout picks one per page load. Fonts are self-hosted under the
     SIL Open Font License, with each licence beside its file in /static/fonts. */
  @font-face {
    font-family: "Silkscreen";
    src: url("/static/fonts/silkscreen-700.woff2") format("woff2");
    font-weight: 700;
    font-display: block;
  }
  @font-face {
    font-family: "Press Start 2P";
    src: url("/static/fonts/press-start-2p.woff2") format("woff2");
    font-display: block;
  }
  @font-face {
    font-family: "Jacquard 24";
    src: url("/static/fonts/jacquard-24.woff2") format("woff2");
    font-display: block;
  }
  @font-face {
    font-family: "Audiowide";
    src: url("/static/fonts/audiowide.woff2") format("woff2");
    font-display: block;
  }
  @font-face {
    font-family: "Fredoka";
    src: url("/static/fonts/fredoka-700.woff2") format("woff2");
    font-weight: 700;
    font-display: block;
  }
  @font-face {
    font-family: "Monoton";
    src: url("/static/fonts/monoton.woff2") format("woff2");
    font-display: block;
  }
  @font-face {
    font-family: "Sedgwick Ave Display";
    src: url("/static/fonts/sedgwick-ave-display.woff2") format("woff2");
    font-display: block;
  }
  @font-face {
    font-family: "Comic Neue";
    src: url("/static/fonts/comic-neue-700-italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: block;
  }
  /* Flash-era pixel */
  .meez-wm-silkscreen {
    font:
      700 32px / 1 "Silkscreen",
      "Courier New",
      monospace;
    text-transform: uppercase;
    -webkit-font-smoothing: none;
    text-shadow: 4px 4px 0 #4f4f4f;
  }
  .meez-wm-silkscreen em {
    color: #b3b3b3;
  }
  /* arcade title screen */
  .meez-wm-arcade {
    font:
      22px / 1 "Press Start 2P",
      "Courier New",
      monospace;
    text-transform: uppercase;
    -webkit-font-smoothing: none;
    text-shadow:
      3px 3px 0 #8a8a8a,
      6px 6px 0 #3f3f3f;
    padding-bottom: 6px;
  }
  .meez-wm-arcade em {
    color: #c9c9c9;
  }
  /* scene-kid blackletter */
  .meez-wm-blackletter {
    font:
      46px / 0.85 "Jacquard 24",
      serif;
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.45),
      0 2px 0 #000;
  }
  .meez-wm-blackletter em {
    color: #b8b8b8;
  }
  /* Y2K chrome */
  .meez-wm-chrome {
    font:
      32px / 1.05 "Audiowide",
      "Arial Black",
      sans-serif;
    letter-spacing: 0.5px;
    background: linear-gradient(
      #ffffff 0%,
      #f2f2f2 34%,
      #9a9a9a 49%,
      #3a3a3a 51%,
      #8c8c8c 66%,
      #e6e6e6 88%,
      #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transform: skewX(-9deg);
    transform-origin: 0 100%;
  }
  /* Web 2.0 gel */
  .meez-wm-gel {
    font:
      700 38px / 1 "Fredoka",
      "Arial Rounded MT Bold",
      sans-serif;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    background: linear-gradient(#ffffff 0%, #ffffff 50%, #c9c9c9 53%, #9a9a9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #000);
  }
  .meez-wm-gel em {
    background: linear-gradient(#dcdcdc 0%, #d0d0d0 50%, #929292 53%, #6c6c6c 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  /* neon sign */
  .meez-wm-neon {
    font:
      30px / 1.1 "Monoton",
      "Arial Black",
      sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f6f6f6;
    text-shadow:
      0 0 2px #fff,
      0 0 8px rgba(255, 255, 255, 0.75),
      0 0 20px rgba(255, 255, 255, 0.45);
  }
  .meez-wm-neon em {
    margin-left: 0.35em;
    color: #d2d2d2;
    animation: meez-flicker 5s steps(1) infinite;
  }
  /* skate graffiti */
  .meez-wm-graffiti {
    font:
      38px / 1 "Sedgwick Ave Display",
      "Comic Sans MS",
      cursive;
    margin-bottom: 7px; /* lifts the "p" clear of the tagline */
    color: #fff;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000,
      3px 3px 0 #6a6a6a,
      4px 4px 0 #000;
    transform: rotate(-2deg);
  }
  .meez-wm-graffiti em {
    color: #c4c4c4;
  }
  /* away message */
  .meez-wm-comic {
    font:
      italic 700 34px / 1 "Comic Neue",
      "Comic Sans MS",
      cursive;
    color: #fff;
    text-shadow: 2px 2px 0 #5a5a5a;
  }
  .meez-wm-comic em {
    color: #bdbdbd;
  }
  .meez-tagline {
    grid-column: -2;
    align-self: start;
    font-size: 11px;
    color: #b8b8b8;
    letter-spacing: 0.3px;
    margin-top: 2px;
  }
  .meez-header-side {
    text-align: right;
  }
  .meez-toplinks {
    font-size: 10px;
    margin-bottom: 6px;
    color: #b8b8b8;
  }
  .meez-toplinks a,
  .meez-toplinks .meez-linkbtn {
    color: #fff;
    font-size: 10px;
  }
  .meez-search {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    font-size: 11px;
  }
  .meez-search select,
  .meez-search input {
    font: 11px var(--meez-font);
    border: 1px solid #000;
    padding: 2px 3px;
    border-radius: 2px;
  }
  .meez-search input {
    width: 150px;
  }

  /* ---------- nav ---------- */
  .meez-nav {
    background: linear-gradient(#cdcdcd, #b9b9b9 50%, #a9a9a9 51%, #bcbcbc);
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #5e5e5e;
    padding: 4px 0;
  }
  .meez-nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  /* Only the links scroll on narrow screens; the Donate button stays put. */
  .meez-nav-links {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
  }
  .meez-nav a {
    color: #111;
    font: bold 11px var(--meez-font);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  .meez-nav a.is-active {
    color: #000;
    background: #f2f2f2;
    border-radius: 3px;
    padding: 1px 5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  }
  .meez-nav-sep {
    color: #5e5e5e;
  }

  /* ---------- donate: a gold gel button with a pixel heart ---------- */
  .meez-nav a.meez-nav-donate,
  .meez-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3b2a00;
    background: linear-gradient(#fff3bf, #ffd23f 50%, #f2b705 51%, #ffd84d);
    border: 1px solid #a07c00;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 1px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
  }
  .meez-nav a.meez-nav-donate:hover,
  .meez-donate-btn:hover {
    color: #000;
    background: linear-gradient(#fff8d9, #ffdd66 50%, #f7c21c 51%, #ffe27a);
  }
  .meez-nav a.meez-nav-donate {
    flex: none;
    margin: -2px 0;
    padding: 1px 9px 1px 6px;
    border-radius: 10px;
    font: bold 10px var(--meez-font);
  }
  .meez-donate-btn {
    padding: 7px 14px;
    border-radius: 18px;
    font:
      700 16px / 1 "Silkscreen",
      var(--meez-font);
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .meez-nav-donate img,
  .meez-donate-btn img {
    display: block;
    flex: none;
  }
  .meez-donate-cta {
    text-align: center;
    margin: 10px 0;
  }
  .meez-nav-count {
    display: inline-block;
    margin-left: 3px;
    background: var(--meez-hot);
    color: #fff;
    border-radius: 7px;
    padding: 0 5px;
    font-size: 9px;
    line-height: 14px;
    text-shadow: none;
  }

  /* ---------- main ---------- */
  .meez-main {
    padding: 12px 0 24px;
    min-height: 60vh;
  }
  .meez-main-wide {
    padding: 0;
  }
  .meez-flash {
    margin: 0 auto 12px;
    padding: 7px 10px;
    border: 1px solid;
    font-weight: bold;
  }
  .meez-main-wide .meez-flash {
    margin-top: 10px;
  }
  .meez-flash-ok {
    background: var(--meez-ok-bg);
    border-color: var(--meez-ok-line);
    color: #1c5e10;
  }
  .meez-flash-err {
    background: var(--meez-err-bg);
    border-color: var(--meez-err-line);
    color: #9b1c1c;
  }
  .meez-errors {
    background: var(--meez-err-bg);
    border: 1px solid var(--meez-err-line);
    color: #9b1c1c;
    padding: 6px 10px;
    margin: 0 0 10px;
  }
  .meez-errors ul {
    margin: 4px 0 0;
    padding-left: 18px;
  }

  /* ---------- boxes ---------- */
  .meez-box {
    background: var(--meez-panel);
    border: 1px solid var(--meez-box-line);
    margin: 0 0 12px;
  }
  .meez-box-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding: 4px 8px;
    background: linear-gradient(#f7f7f7, #e9e9e9 50%, #e0e0e0 51%, #e6e6e6);
    border-bottom: 1px solid var(--meez-box-line);
    color: var(--meez-strong);
    font: bold 13px / 1.35 var(--meez-head);
  }
  .meez-box-right {
    font: normal 10px var(--meez-font);
  }
  .meez-box-body {
    padding: 8px 10px;
  }
  .meez-box-body > :first-child {
    margin-top: 0;
  }
  .meez-box-body > :last-child {
    margin-bottom: 0;
  }
  .meez-box.meez-dark {
    border-color: var(--meez-gray-200);
  }
  .meez-box.meez-dark > .meez-box-title {
    background: linear-gradient(#4d4d4d, #262626);
    border-color: #1a1a1a;
    color: #fff;
  }

  /* ---------- layouts ---------- */
  .meez-cols {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .meez-cols-r {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 12px;
    align-items: start;
  }
  .meez-narrow {
    max-width: 520px;
    margin: 0 auto;
  }
  .meez-prose {
    max-width: 660px;
    margin: 0 auto;
    font-size: 12px;
  }
  .meez-prose li {
    margin-bottom: 4px;
  }

  /* ---------- buttons & forms ---------- */
  .meez-btn {
    display: inline-block;
    font: bold 11px var(--meez-font);
    color: #fff;
    background: linear-gradient(#5c5c5c, #333333 50%, #1f1f1f 51%, #3b3b3b);
    border: 1px solid #0d0d0d;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 1px 1px rgba(0, 0, 0, 0.12);
  }
  .meez-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06);
  }
  .meez-btn:active {
    transform: translateY(1px);
  }
  .meez-btn-silver {
    color: #111;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    background: linear-gradient(#b3b3b3, #949494 50%, #7e7e7e 51%, #999999);
    border-color: #5e5e5e;
  }
  .meez-btn-silver:hover {
    color: #000;
  }
  .meez-btn-gray {
    color: #222;
    text-shadow: none;
    background: linear-gradient(#fdfdfd, #ececec 50%, #e0e0e0 51%, #efefef);
    border-color: #9a9a9a;
  }
  .meez-btn-gray:hover {
    color: #000;
  }
  .meez-btn-small {
    padding: 2px 7px;
    font-size: 10px;
  }
  .meez-btn-big {
    font-size: 15px;
    padding: 8px 22px;
    border-radius: 6px;
  }
  .meez-btn-danger {
    background: linear-gradient(#d23c3c, #b81414 50%, #9c0d0d 51%, #b51b1b);
    border-color: #7a0d0d;
  }
  .meez-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--meez-link);
    font: inherit;
    cursor: pointer;
  }
  .meez-linkbtn:hover {
    color: var(--meez-link-hover);
    text-decoration: underline;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  input[type="number"],
  input[type="url"],
  input:not([type]),
  select,
  textarea {
    font: 12px var(--meez-font);
    color: var(--meez-ink);
    border: 1px solid #8f8f8f;
    padding: 3px 4px;
    background: #fff;
    box-sizing: border-box;
    max-width: 100%;
  }
  textarea {
    width: 100%;
    line-height: 1.4;
  }
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid #8a8a8a;
    outline-offset: 0;
  }
  .meez-form label {
    display: block;
    margin: 0 0 10px;
    font-weight: bold;
  }
  .meez-form label > input:not([type="checkbox"]):not([type="radio"]),
  .meez-form label > select,
  .meez-form label > textarea {
    display: block;
    width: 100%;
    margin-top: 3px;
    font-weight: normal;
  }
  .meez-form .meez-check {
    font-weight: normal;
  }
  .meez-form .meez-hint {
    display: block;
    font: normal 10px var(--meez-font);
    color: var(--meez-muted);
    margin-top: 2px;
  }
  .meez-form fieldset {
    border: 1px solid #d6d6d6;
    padding: 6px 10px 2px;
    margin: 0 0 10px;
  }
  .meez-form legend {
    font-weight: bold;
    color: var(--meez-label-ink);
  }
  .meez-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .meez-hp {
    position: absolute !important;
    left: -9999px !important;
  }

  /* ---------- tables ---------- */
  .meez-table {
    width: 100%;
    border-collapse: collapse;
  }
  .meez-table th {
    background: var(--meez-label);
    color: var(--meez-label-ink);
    text-align: left;
    padding: 4px 6px;
    font-size: 11px;
  }
  .meez-table td {
    border-bottom: 1px solid #e4e4e4;
    padding: 5px 6px;
    vertical-align: top;
  }
  .meez-table tr.is-unread td {
    font-weight: bold;
    background: #f3f3f3;
  }
  .meez-kv {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
  }
  .meez-kv th {
    width: 34%;
    background: var(--meez-label);
    color: var(--meez-label-ink);
    text-align: left;
    vertical-align: top;
    padding: 3px 5px;
    font-size: 11px;
  }
  .meez-kv td {
    background: #f5f5f5;
    padding: 3px 5px;
    vertical-align: top;
    overflow-wrap: anywhere;
  }

  /* ---------- people ---------- */
  .meez-pic {
    border: 1px solid #bdbdbd;
    background: #fff;
    vertical-align: top;
  }
  .meez-pic-t {
    width: 90px;
    height: 90px;
    object-fit: cover;
  }
  .meez-pic-m {
    width: 170px;
    height: auto;
  }
  .meez-pic-l {
    width: auto;
    max-width: 100%;
  }
  .meez-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px 8px;
    text-align: center;
  }
  .meez-grid-cell {
    overflow-wrap: anywhere;
    font-size: 11px;
  }
  .meez-grid-cell > a:last-of-type {
    display: block;
    margin-top: 2px;
  }
  .meez-person-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dotted #cfcfcf;
  }
  .meez-person-row:last-child {
    border-bottom: 0;
  }
  .meez-online {
    color: var(--meez-online);
    font-weight: bold;
    font-size: 11px;
    white-space: nowrap;
  }
  .meez-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2fd12f;
    box-shadow: 0 0 4px #2fd12f;
    margin-right: 4px;
    animation: meez-blinker 1s steps(2, start) infinite;
  }
  .meez-mood .meez-emoji {
    font-size: 14px;
  }
  .meez-counter span {
    display: inline-block;
    min-width: 9px;
    text-align: center;
    background: #101010;
    color: #3dff3d;
    font:
      bold 13px / 1.2 "Courier New",
      monospace;
    padding: 1px 3px;
    margin-right: 1px;
    border-radius: 2px;
    box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.07);
  }
  .meez-new {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -10px 0 -10px 2px;
    vertical-align: middle;
    background: var(--meez-sun);
    color: #a30000;
    font: bold 8px / 1 var(--meez-font);
    clip-path: polygon(
      50% 0,
      60% 18%,
      79% 7%,
      77% 28%,
      98% 30%,
      84% 46%,
      100% 60%,
      80% 66%,
      88% 86%,
      67% 82%,
      60% 100%,
      50% 85%,
      40% 100%,
      33% 82%,
      12% 86%,
      20% 66%,
      0 60%,
      16% 46%,
      2% 30%,
      23% 28%,
      21% 7%,
      40% 18%
    );
    animation: meez-pulse 0.9s ease-in-out infinite alternate;
  }

  /* ---------- lists of posts ---------- */
  .meez-entry {
    padding: 8px 0;
    border-bottom: 1px dotted #cfcfcf;
  }
  .meez-entry:last-child {
    border-bottom: 0;
  }
  .meez-entry-meta {
    font-size: 10px;
    color: var(--meez-muted);
  }
  .meez-comments {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
  }
  .meez-comments td {
    vertical-align: top;
    padding: 6px;
  }
  .meez-comments .meez-comment-who {
    width: 104px;
    text-align: center;
    background: #efefef;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .meez-comments .meez-comment-body {
    background: #fafafa;
  }
  .meez-comment-date {
    font-size: 10px;
    color: var(--meez-muted);
    margin-bottom: 4px;
  }
  .meez-pager {
    margin: 10px 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .meez-pager b {
    color: var(--meez-strong);
  }
  .meez-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0 0 -1px;
    padding: 0;
    list-style: none;
  }
  .meez-tabs a {
    display: block;
    padding: 4px 10px;
    border: 1px solid var(--meez-gray-200);
    border-bottom: 0;
    background: var(--meez-gray-100);
    font-weight: bold;
    font-size: 11px;
  }
  .meez-tabs a.is-active {
    background: #fff;
    color: var(--meez-strong);
    position: relative;
  }
  .meez-tabpanel {
    border: 1px solid var(--meez-gray-200);
    background: #fff;
    padding: 10px;
    margin-bottom: 12px;
  }
  .meez-alerts {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .meez-alerts li {
    margin: 0 0 4px;
    font-weight: bold;
  }
  .meez-alerts li a {
    color: #d10000;
  }

  /* ---------- user content effects (part of the public HTML "API") ---------- */
  .blink {
    animation: meez-blinker 1s steps(2, start) infinite;
  }
  .rainbow {
    background: linear-gradient(90deg, #ff3b3b, #ff9f1a, #f5d90a, #36c96a, #2ab4ff, #8a5cff, #ff3bd5, #ff3b3b);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: meez-rainbow 3s linear infinite;
    font-weight: bold;
  }
  .glitter {
    background:
      radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px),
      radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 2px),
      radial-gradient(circle at 40% 80%, #fff6b0 0 1px, transparent 2px),
      linear-gradient(90deg, #ff6fd8, #c56bff, #6fb6ff, #ff6fd8);
    background-size:
      12px 12px,
      9px 9px,
      14px 14px,
      200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    animation: meez-glitter 1.4s steps(4) infinite;
  }
  .sparkle {
    color: #ff4fb8;
    text-shadow:
      0 0 4px #fff59c,
      0 0 10px #ffc4ec;
    animation: meez-sparkle 1.2s ease-in-out infinite alternate;
  }
  .shake {
    display: inline-block;
    animation: meez-shake 0.35s linear infinite;
  }

  @keyframes meez-blinker {
    to {
      visibility: hidden;
    }
  }
  @keyframes meez-rainbow {
    to {
      background-position: 200% 0;
    }
  }
  @keyframes meez-glitter {
    to {
      background-position:
        12px 12px,
        -9px 9px,
        14px -14px,
        200% 0;
    }
  }
  @keyframes meez-sparkle {
    to {
      text-shadow:
        0 0 8px #fff,
        0 0 16px #ff8ad8;
    }
  }
  @keyframes meez-shake {
    25% {
      transform: translate(1px, -1px) rotate(1deg);
    }
    75% {
      transform: translate(-1px, 1px) rotate(-1deg);
    }
  }
  @keyframes meez-flicker {
    0%,
    100% {
      opacity: 1;
    }
    92% {
      opacity: 0.35;
    }
    93% {
      opacity: 1;
    }
    95% {
      opacity: 0.5;
    }
    96% {
      opacity: 1;
    }
  }
  @keyframes meez-pulse {
    to {
      transform: scale(1.12) rotate(8deg);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .blink,
    .rainbow,
    .glitter,
    .sparkle,
    .shake,
    .meez-online-dot,
    .meez-new,
    .meez-wm-neon em {
      animation: none !important;
    }
  }

  /* ---------- landing ---------- */
  .meez-landing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
    align-items: start;
  }
  .meez-hero {
    background:
      radial-gradient(circle at 92% 12%, rgba(0, 0, 0, 0.05) 0 50px, transparent 51px),
      linear-gradient(#ffffff, #ececec);
    border: 1px solid var(--meez-gray-200);
    padding: 16px 18px;
    margin-bottom: 12px;
  }
  .meez-hero h1 {
    font:
      italic 900 24px / 1.15 "Arial Black",
      Arial,
      sans-serif;
    color: var(--meez-gray-900);
    letter-spacing: -0.5px;
  }
  .meez-hero-sub {
    font-size: 13px;
  }
  .meez-hero-list {
    padding-left: 18px;
  }
  .meez-hero-list li {
    margin-bottom: 4px;
  }
  .meez-network b {
    color: var(--meez-strong);
    font-size: 15px;
  }

  /* ---------- misc ---------- */
  .meez-error-page {
    text-align: center;
    padding: 40px 10px;
  }
  .meez-error-page h1 {
    color: #c00;
  }
  .meez-out-url {
    font:
      12px "Courier New",
      monospace;
    background: #f4f4f4;
    border: 1px solid #d6d6d6;
    padding: 6px;
    overflow-wrap: anywhere;
  }
  .meez-devmail {
    border-bottom: 1px dotted #cfcfcf;
    padding: 6px 0;
  }
  .meez-devmail pre {
    white-space: pre-wrap;
    background: #f4f4f4;
    padding: 6px;
    font-size: 11px;
  }
  .meez-footer {
    border-top: 1px solid #cfcfcf;
    background: #f2f2f2;
    padding: 12px 0 20px;
    text-align: center;
    font-size: 10px;
    color: var(--meez-muted);
  }
  .meez-footer p {
    margin: 3px 0;
  }
  .meez-pledge {
    font-weight: bold;
    color: var(--meez-gray-700);
  }

  /* ---------- the profile skeleton (classic class names, restyleable by layouts) ---------- */
  #meez-profile {
    background: var(--meez-page);
    padding: 12px 0 24px;
    min-height: 70vh;
    color: var(--meez-ink);
    font: 12px / 1.45 var(--meez-font);
  }
  #meez-profile .profileContainer {
    width: 800px;
    max-width: calc(100% - 16px);
    margin: 0 auto;
  }
  #meez-profile table {
    border-collapse: separate;
  }
  #meez-profile .profileTable {
    width: 100%;
    border-spacing: 0;
  }
  #meez-profile .leftColumn {
    width: 300px;
    vertical-align: top;
    padding-right: 14px;
  }
  #meez-profile .rightColumn {
    vertical-align: top;
  }
  #meez-profile .userProfile,
  #meez-profile .contactTable,
  #meez-profile .userProfileURL,
  #meez-profile .interestsAndDetails,
  #meez-profile .userProfileDetail,
  #meez-profile .userProfileSchool,
  #meez-profile .userProfileCompany,
  #meez-profile .extendedNetwork,
  #meez-profile .creatorBox,
  #meez-profile .latestBlogEntry,
  #meez-profile .blurbs,
  #meez-profile .friendSpace,
  #meez-profile .friendsComments,
  #meez-profile .profileSong,
  #meez-profile .musicPlayer {
    width: 100%;
    margin: 0 0 12px;
    background: #fff;
  }
  #meez-profile .nametext {
    display: block;
    font: bold 19px / 1.2 var(--meez-head);
    color: #000;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
  }
  #meez-profile .userProfile td {
    vertical-align: top;
    padding: 0 6px 6px 0;
  }
  #meez-profile .userProfile .profileInfo {
    font-size: 11px;
  }
  #meez-profile .contactTable {
    border: 1px solid #4a4a4a;
    border-spacing: 0;
  }
  #meez-profile .contactTable th {
    background: linear-gradient(#4d4d4d, #262626);
    text-align: left;
    padding: 4px 6px;
  }
  #meez-profile .contactTable td {
    width: 50%;
    padding: 5px 6px;
    font-size: 11px;
    border-top: 1px solid #e6e6e6;
  }
  #meez-profile .contactTable td a::before {
    content: "» ";
    color: var(--meez-strong);
  }
  #meez-profile .whitetext12 {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
  }
  #meez-profile .orangetext15 {
    color: var(--meez-strong);
    font: bold 15px var(--meez-head);
  }
  #meez-profile .lightbluetext8 {
    color: var(--meez-label-ink);
    font-size: 11px;
    font-weight: bold;
  }
  #meez-profile .blacktext10 {
    color: #000;
    font-size: 10px;
  }
  #meez-profile .blacktext12 {
    color: #000;
    font-size: 12px;
  }
  #meez-profile .btext {
    font-weight: bold;
  }
  #meez-profile .text {
    font-size: 12px;
  }
  #meez-profile .redtext {
    color: #cc0000;
  }
  #meez-profile .redbtext {
    color: #cc0000;
    font-weight: bold;
  }
  #meez-profile .userProfileURL {
    border: 1px solid #4a4a4a;
  }
  #meez-profile .userProfileURL td {
    padding: 5px 6px;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  #meez-profile .interestsAndDetails,
  #meez-profile .userProfileDetail,
  #meez-profile .userProfileSchool,
  #meez-profile .userProfileCompany {
    border: 1px solid #4a4a4a;
    border-spacing: 2px;
  }
  #meez-profile .interestsAndDetails th,
  #meez-profile .userProfileDetail th,
  #meez-profile .userProfileSchool th,
  #meez-profile .userProfileCompany th {
    background: linear-gradient(#4d4d4d, #262626);
    text-align: left;
    padding: 4px 6px;
  }
  #meez-profile .interestsAndDetails td,
  #meez-profile .userProfileDetail td,
  #meez-profile .userProfileSchool td,
  #meez-profile .userProfileCompany td {
    background: #f5f5f5;
    padding: 4px 6px;
    vertical-align: top;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  #meez-profile td.label {
    width: 34%;
    background: var(--meez-label);
  }
  #meez-profile .extendedNetwork {
    border: 1px solid #cfcfcf;
  }
  #meez-profile .extendedNetwork td {
    padding: 12px;
    text-align: center;
  }
  #meez-profile .extendedNetwork .blacktext12 {
    font: bold 15px var(--meez-head);
  }
  #meez-profile .creatorBox,
  #meez-profile .latestBlogEntry,
  #meez-profile .blurbs,
  #meez-profile .friendSpace,
  #meez-profile .friendsComments {
    border: 1px solid var(--meez-box-line);
    border-spacing: 0;
  }
  #meez-profile .creatorBox > tbody > tr > td,
  #meez-profile .latestBlogEntry > tbody > tr > td,
  #meez-profile .blurbs > tbody > tr > td,
  #meez-profile .friendSpace > tbody > tr > td,
  #meez-profile .friendsComments > tbody > tr > td {
    padding: 6px 10px;
    vertical-align: top;
  }
  #meez-profile .sectionHead {
    background: var(--meez-box-bg);
    border-bottom: 1px solid var(--meez-box-line);
  }
  #meez-profile .friendSpace .meez-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #meez-profile .friendsComments .meez-comments .meez-comment-who {
    background: #efefef;
  }
  #meez-profile .viewMy {
    font-size: 11px;
    margin: 0 0 6px;
  }
  #meez-profile .moodLine {
    font-size: 11px;
    margin: 0 0 10px;
  }
  #meez-profile .profileStatus {
    font-style: italic;
    margin: 0 0 8px;
  }
  /* Small print inside a profile is the theme's own text colour, dimmed, so it reads on dark
     themes as well as light ones (a fixed gray disappears on black). */
  #meez-profile .meez-small,
  #meez-profile .meez-muted,
  #meez-profile .meez-comment-date,
  #meez-profile .meez-counter-hint,
  #meez-profile .meez-hint,
  #meez-profile .meez-deleted {
    color: color-mix(in srgb, currentColor 75%, transparent);
  }
  /* Headers are already a tight colour pairing; dimming there costs too much contrast. */
  #meez-profile .sectionHead .meez-small {
    color: inherit;
  }
  #meez-profile .meez-linkbtn {
    color: inherit;
    text-decoration: underline;
  }
  #meez-profile .profileSong td,
  #meez-profile .musicPlayer td {
    padding: 0;
  }
  .meez-profile-bar {
    background: #f2f2f2;
    border-bottom: 1px solid #cfcfcf;
    font-size: 10px;
    padding: 3px 0;
    color: var(--meez-muted);
  }
  .meez-profile-bar .meez-wrap {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .meez-private-card {
    max-width: 520px;
    margin: 20px auto;
  }

  /* ---------- player ---------- */
  .meez-player {
    background: linear-gradient(#3a3a3a, #1c1c1c);
    color: #e6e6e6;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 6px 8px;
    font: 11px var(--meez-font);
  }
  .meez-player-top {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .meez-player-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #000;
    background: linear-gradient(#9cff6b, #2fae1f);
    color: #082b00;
    font-size: 11px;
    cursor: pointer;
    flex: none;
  }
  .meez-player-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .meez-player-title b {
    color: #9cff6b;
  }
  .meez-player-bar {
    height: 5px;
    background: #000;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
  }
  .meez-player-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #9cff6b, #ffd23f);
  }
  .meez-player-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
  }
  .meez-player-list li {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 0;
    border-top: 1px solid #333;
  }
  .meez-player-list button {
    background: none;
    border: 0;
    color: #d9d9d9;
    font: inherit;
    cursor: pointer;
    text-align: left;
    padding: 0;
  }
  .meez-player-list li.is-playing button {
    color: #9cff6b;
    font-weight: bold;
  }
  .meez-player-list a {
    color: #ffd23f;
    font-size: 10px;
  }
  .meez-player audio {
    display: none;
  }
  .meez-player-by {
    color: #bdbdbd;
    font-weight: normal;
  }
  .meez-playlist-tools {
    width: 170px;
    white-space: nowrap;
    text-align: right;
  }
  .meez-playlist-tools .meez-inline-form {
    margin-left: 4px;
  }
  .meez-add-to-playlist {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dotted var(--meez-box-line);
  }

  /* ---------- editor ---------- */
  .meez-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 4px 0;
  }
  .meez-toolbar button {
    font: 10px var(--meez-font);
    padding: 1px 6px;
    border: 1px solid #9a9a9a;
    background: linear-gradient(#fff, #e6e6e6);
    border-radius: 2px;
    cursor: pointer;
  }
  /* Effect previews (glitter, rainbow…) are pastel, so they get a dark button to stay readable. */
  .meez-toolbar .meez-fx {
    color: #fff;
    border-color: #000;
    background: linear-gradient(#2a2a2a, #000);
  }
  .meez-picpicker {
    margin: 0 0 4px;
    font-weight: normal;
  }
  /* A proper button right under the toolbar, so nobody misses it. Its own colours keep it readable in every theme. */
  .meez-picpicker summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
    font: bold 11px var(--meez-font);
    padding: 2px 8px;
    color: #000;
    border: 1px solid #9a9a9a;
    border-radius: 2px;
    background: linear-gradient(#fff, #e6e6e6);
  }
  .meez-picpicker summary::-webkit-details-marker {
    display: none;
  }
  .meez-picpicker summary::after {
    content: " ▾";
  }
  .meez-picpicker[open] summary {
    background: linear-gradient(#e6e6e6, #fff);
  }
  .meez-picpicker[open] summary::after {
    content: " ▴";
  }
  .meez-picpicker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
  }
  .meez-picpicker-grid button {
    padding: 0;
    border: 1px solid #bdbdbd;
    background: #fff;
    cursor: pointer;
  }
  .meez-picpicker-grid img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
  }
  .meez-counter-hint {
    float: right;
    font-weight: normal;
    font-size: 10px;
    color: var(--meez-muted);
  }

  /* ---------- menus, mail, home ---------- */
  .meez-menu {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
  }
  .meez-menu li {
    padding: 2px 0;
  }
  .meez-menu a.is-active {
    font-weight: bold;
    color: var(--meez-strong);
  }
  .meez-menu a::before {
    content: "» ";
    color: var(--meez-strong);
  }
  .meez-mail-who {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .meez-mail-who .meez-pic-t {
    width: 40px;
    height: 40px;
  }
  .meez-new-dot {
    color: var(--meez-hot);
  }
  .meez-mail-actions {
    border-top: 1px solid #e4e4e4;
    padding-top: 8px;
  }
  .meez-url {
    overflow-wrap: anywhere;
    font-weight: bold;
  }
  .meez-home-links p {
    margin-top: 0;
  }
  .meez-status-row {
    padding: 4px 0;
    border-bottom: 1px dotted #d6d6d6;
  }
  .meez-status-form label {
    margin-bottom: 6px;
  }
  .meez-alertbox {
    border-color: #ff8a8a;
  }
  .meez-alertbox > .meez-box-title {
    background: #ffe3e3;
    color: #c00;
    border-color: #ff8a8a;
  }
  .meez-note {
    background: #fffbe0;
    border-left: 3px solid var(--meez-sun);
    padding: 4px 8px;
    font-style: italic;
  }
  .meez-editor {
    margin-bottom: 12px;
  }
  .meez-editor-label {
    display: block;
    font-weight: bold;
  }

  /* ---------- top friends editor ---------- */
  .meez-topfriends {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    counter-reset: top;
  }
  .meez-topfriends li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border: 1px solid #d6d6d6;
    margin-bottom: 3px;
    background: #fff;
  }
  .meez-topfriends li.is-top {
    background: var(--meez-box-bg);
    border-color: var(--meez-box-line);
  }
  .meez-topfriends .meez-pic-t {
    width: 40px;
    height: 40px;
  }
  .meez-topfriends input[type="number"] {
    width: 56px;
  }
  .meez-drag {
    display: none;
    cursor: grab;
    color: var(--meez-muted);
    font-size: 16px;
  }
  .meez-topfriends.is-sortable .meez-drag {
    display: inline;
  }
  .meez-topfriends.is-sortable li {
    cursor: grab;
  }

  /* ---------- sub-pages inside a profile frame (blog, pics, music) ---------- */
  #meez-profile .subPage {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cfcfcf;
    padding: 12px 14px;
  }
  #meez-profile .blogTable {
    width: 100%;
    border-spacing: 0;
  }
  #meez-profile .blogSidebar {
    width: 190px;
    vertical-align: top;
    padding-right: 14px;
    font-size: 11px;
  }
  #meez-profile .blogMain {
    vertical-align: top;
  }
  #meez-profile .blogTitle,
  #meez-profile .picsTitle,
  #meez-profile .musicTitle {
    font: bold 20px var(--meez-head);
    margin: 0 0 10px;
  }
  #meez-profile .blogEntry {
    padding: 8px 10px;
    margin: 0 0 14px;
    border-bottom: 1px dotted #cfcfcf;
  }
  #meez-profile .blogTimeStamp {
    font-weight: bold;
    color: color-mix(in srgb, currentColor 75%, transparent);
    margin: 0 0 4px;
    font-size: 11px;
  }
  #meez-profile .blogSubject {
    font: bold 16px var(--meez-head);
    color: inherit;
    margin-bottom: 4px;
  }
  #meez-profile .blogContent {
    margin: 8px 0;
    overflow-wrap: anywhere;
  }
  #meez-profile .blogArchive ul {
    padding-left: 16px;
    margin: 4px 0;
  }
  #meez-profile .blogActions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
  }
  #meez-profile .blogComments,
  #meez-profile .photoComments {
    width: 100%;
  }
  #meez-profile .blogCommentsTitle {
    font: bold 14px var(--meez-head);
    color: inherit;
    margin: 6px 0;
  }
  .meez-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px 10px;
  }
  .meez-album {
    text-align: center;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .meez-album > a {
    display: block;
  }
  .meez-album b {
    display: block;
  }
  .meez-album details {
    text-align: left;
    margin-top: 4px;
  }
  .meez-photogrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .meez-photo-thumb {
    display: block;
    text-align: center;
  }
  .meez-photo-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #bdbdbd;
    background: #fff;
  }
  .meez-photo-big {
    text-align: center;
    margin: 6px 0 10px;
  }
  .meez-photo-big img {
    max-width: 100%;
    border: 1px solid #bdbdbd;
    background: #fff;
  }
  .meez-photo-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 12px;
    padding: 6px;
    background: #f2f2f2;
    border: 1px solid #d6d6d6;
  }
  /* Pic Booth: the pic sits in a white instant-photo frame on a photo-booth curtain. */
  .meez-booth-backdrop {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: repeating-linear-gradient(90deg, #2b1830 0 18px, #3a2142 18px 36px);
  }
  .meez-booth-stage {
    position: relative;
    margin: 0 auto;
    border: solid #fff;
    border-width: 6px 6px 22px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.5);
    user-select: none;
    touch-action: pan-y;
  }
  /* Stickers are clipped to the pic, just like the saved pic; the picked one's frame isn't. */
  .meez-booth-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .meez-booth-shot {
    display: block;
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
  }
  .meez-booth-stage.is-developing::after {
    content: "Developing…";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(0 0 0 / 0.5);
    color: #fff;
    font: bold 14px var(--meez-font);
    pointer-events: none;
  }
  .meez-booth-sticker {
    position: absolute;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }
  .meez-booth-sticker img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    image-rendering: pixelated;
    pointer-events: none;
    -webkit-user-drag: none;
  }
  /* The picked sticker's frame: a dashed outline, a pink corner to resize and a knob on a stick to
     turn. Clicks pass through it to the stickers; only the handles catch them. */
  .meez-booth-frame {
    position: absolute;
    outline: 2px dashed #ff5fa2;
    outline-offset: 2px;
    pointer-events: none;
  }
  .meez-booth-frame[hidden] {
    display: none;
  }
  .meez-booth-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 2px solid #fff;
    background: #ff5fa2;
    box-shadow:
      0 0 0 1px #c2185b,
      0 1px 3px rgb(0 0 0 / 0.4);
    pointer-events: auto;
    touch-action: none;
  }
  .meez-booth-size {
    right: -10px;
    bottom: -10px;
    border-radius: 3px;
    cursor: nwse-resize;
  }
  .meez-booth-turn {
    top: -32px;
    left: 50%;
    margin-left: -8px;
    border-radius: 50%;
    cursor: grab;
  }
  .meez-booth-turn::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 16px;
    margin-left: -1px;
    background: #ff5fa2;
  }
  @media (pointer: coarse) {
    .meez-booth-handle {
      width: 26px;
      height: 26px;
    }
    .meez-booth-size {
      right: -15px;
      bottom: -15px;
    }
    .meez-booth-turn {
      top: -42px;
      margin-left: -13px;
    }
  }
  .meez-booth-sticker:active {
    cursor: grabbing;
  }
  .meez-booth-sticker:focus-visible {
    outline: 2px solid #3a7bd5;
    outline-offset: 2px;
  }
  .meez-booth-section {
    margin: 0 0 10px;
    padding: 6px 8px 8px;
    border: 1px solid #d6d6d6;
    background: #f7f7f7;
  }
  .meez-booth-section[hidden] {
    display: none;
  }
  .meez-booth-section legend {
    padding: 0 4px;
    font-weight: bold;
  }
  .meez-booth-filters,
  .meez-booth-tray {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 6px;
  }
  .meez-booth-filter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
  }
  .meez-booth-filter input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .meez-booth-filter img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #fff;
    outline: 1px solid #bdbdbd;
    background: #fff;
  }
  .meez-booth-filter input:checked + img {
    border-color: #ff5fa2;
    outline-color: #c2185b;
  }
  .meez-booth-filter input:checked ~ span {
    font-weight: bold;
  }
  .meez-booth-filter input:focus-visible + img {
    outline: 2px solid #3a7bd5;
  }
  .meez-booth-tray button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 3px;
    border: 1px solid #bdbdbd;
    border-radius: 3px;
    background: #fff;
    color: #000;
    font: 10px var(--meez-font);
    cursor: pointer;
  }
  .meez-booth-tray button:hover {
    border-color: #ff5fa2;
    background: #fff0f6;
  }
  .meez-booth-tray button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .meez-booth-tray img {
    width: 52px;
    height: 34px;
    object-fit: contain;
    image-rendering: pixelated;
  }
  .meez-booth-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 8px 0 4px;
    font-size: 11px;
  }
  .meez-booth-controls[hidden] {
    display: none;
  }
  .meez-booth-controls button {
    padding: 2px 8px;
    border: 1px solid #9a9a9a;
    border-radius: 2px;
    background: linear-gradient(#fff, #e6e6e6);
    color: #000;
    font: 11px var(--meez-font);
    cursor: pointer;
  }
  /* ---------- creators: buy buttons, shops, albums, galleries ---------- */
  .meez-buy {
    background: linear-gradient(#2a7d2a, #1f6b1f 50%, #175a17 51%, #1d661d);
    border-color: #0f3d0f;
  }
  .meez-sold,
  .meez-price {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font: bold 10px var(--meez-font);
    color: #fff;
    background: #b3261e;
  }
  .meez-price {
    background: rgb(0 0 0 / 0.75);
  }
  .meez-shop-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  td.meez-shop-actions {
    display: table-cell;
    text-align: right;
    white-space: nowrap;
  }
  .meez-shop-section {
    margin: 0 0 14px;
  }
  .meez-shop-section h2 {
    margin: 0 0 6px;
    font-size: 15px;
  }
  .meez-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin: 0 0 10px;
  }
  .meez-shop-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
  }
  .meez-shop-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #bdbdbd;
    background: #fff;
  }
  .meez-release {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 12px;
  }
  .meez-release-cover {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #bdbdbd;
    background: #fff;
  }
  .meez-release > div {
    flex: 1 1 240px;
  }
  .meez-downloads {
    margin: 8px 0;
  }
  .meez-owner-tools {
    margin: 12px 0;
    padding: 6px 10px;
    border: 1px solid #d6d6d6;
    background: #f7f7f7;
    color: #222;
  }
  .meez-owner-tools summary {
    font-weight: bold;
    cursor: pointer;
  }
  .meez-owner-tools h3 {
    margin: 12px 0 4px;
  }
  .meez-code-list code {
    font:
      12px ui-monospace,
      Menlo,
      Consolas,
      monospace;
    letter-spacing: 1px;
  }
  .meez-redeem input {
    width: 150px;
    text-transform: uppercase;
  }
  .meez-cover-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .meez-cover-choice {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    cursor: pointer;
  }
  .meez-cover-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .meez-cover-choice img {
    width: 60px;
    height: 60px;
    object-fit: cover;
  }
  .meez-cover-choice:has(input:checked) {
    border-color: #ff5fa2;
  }
  .meez-cover-choice:has(input:focus-visible) {
    outline: 2px solid #3a7bd5;
  }
  .meez-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2px 10px;
  }
  .meez-creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin: 8px 0;
  }
  .meez-creator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .meez-creator-card .meez-pic {
    width: 110px;
    height: 110px;
    object-fit: cover;
  }
  #meez-profile .creatorBox p {
    margin: 0 0 6px;
  }
  #meez-profile .meez-creator-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  #meez-profile .creatorGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 6px;
  }
  #meez-profile .creatorGallery a {
    position: relative;
    display: block;
  }
  #meez-profile .creatorGallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  #meez-profile .creatorGallery .meez-sold,
  #meez-profile .creatorGallery .meez-price {
    position: absolute;
    left: 3px;
    bottom: 3px;
  }
  .meez-music-hero {
    background:
      radial-gradient(circle at 90% 20%, rgba(156, 255, 107, 0.18) 0 60px, transparent 61px),
      linear-gradient(#2e2e2e, #141414);
    color: #e6e6e6;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #000;
  }
  .meez-music-hero h1 {
    color: #9cff6b;
    font:
      italic 900 26px "Arial Black",
      Arial,
      sans-serif;
    margin: 0 0 6px;
  }
  .meez-music-hero b {
    color: #ffd23f;
  }

  /* ---------- layout editor ---------- */
  .meez-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 12px;
  }
  .meez-code {
    font:
      12px / 1.45 "Courier New",
      Menlo,
      monospace;
    background: #fafafa;
  }
  .meez-report {
    background: #fffbe6;
    border: 1px solid #f0d36b;
    padding: 6px 10px;
    margin: 0 0 10px;
    font-size: 11px;
  }
  .meez-report code {
    overflow-wrap: anywhere;
  }
  .meez-css-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 12px;
    align-items: start;
  }
  .meez-picker {
    max-height: 470px;
    overflow: auto;
    padding: 6px 8px 8px;
    border: 1px solid var(--meez-box-line);
    background: var(--meez-panel);
    font-size: 11px;
  }
  .meez-picker-intro {
    margin: 0 0 4px;
  }
  .meez-picker h4 {
    margin: 10px 0 2px;
    font: bold 10px var(--meez-head);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--meez-muted);
  }
  .meez-picker ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .meez-pick {
    display: block;
    width: 100%;
    padding: 3px 5px;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--meez-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .meez-pick:hover,
  .meez-pick:focus-visible {
    background: var(--meez-gray-100);
  }
  .meez-pick code {
    color: var(--meez-strong);
    font-weight: bold;
  }
  .meez-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }
  .meez-swatch-card {
    display: flex !important;
    flex-direction: column;
    gap: 3px;
    border: 2px solid #d6d6d6;
    padding: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: normal !important;
  }
  .meez-swatch-card.is-picked,
  .meez-swatch-card:has(input:checked) {
    border-color: var(--meez-strong);
    background: var(--meez-box-bg);
  }
  .meez-swatch {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 14px 1fr;
    gap: 4px;
    height: 70px;
    padding: 6px;
    border: 1px solid #bdbdbd;
  }
  .meez-swatch span:nth-child(1) {
    grid-column: 1 / -1;
  }
  .meez-swatch span {
    display: block;
    border-radius: 2px;
  }
  .meez-swatch-classic {
    background: #e4e4e4;
  }
  .meez-swatch-classic span:nth-child(1) {
    background: #1a1a1a;
  }
  .meez-swatch-classic span:nth-child(2) {
    background: #4d4d4d;
  }
  .meez-swatch-classic span:nth-child(3) {
    background: #ffffff;
    border: 1px solid #c3c3c3;
  }
  .meez-swatch-midnight-emo {
    background: radial-gradient(circle at 50% 0, #3a0610, #0a0a0a 70%);
  }
  .meez-swatch-midnight-emo span {
    background: #141414;
    border: 1px solid #b0001e;
  }
  .meez-swatch-scene-zebra {
    background: repeating-linear-gradient(-28deg, #fff 0 8px, #111 8px 14px);
  }
  .meez-swatch-scene-zebra span {
    background: #fff;
    border: 2px solid #ff1fa5;
  }
  .meez-swatch-bubblegum-glitter {
    background:
      radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0 / 10px 10px,
      linear-gradient(#ffc2e6, #f3d1ff);
  }
  .meez-swatch-bubblegum-glitter span {
    background: #fff;
    border: 1px dashed #ff7ac8;
    border-radius: 6px;
  }
  .meez-swatch-matrix {
    background: repeating-linear-gradient(0deg, rgba(0, 255, 70, 0.12) 0 1px, #000 1px 3px);
  }
  .meez-swatch-matrix span {
    background: #000;
    border: 1px solid #0f8f2f;
  }
  .meez-swatch-skater-checkers {
    background: conic-gradient(#d40000 25%, #111 0 50%, #d40000 0 75%, #111 0) 0 0 / 16px 16px;
  }
  .meez-swatch-skater-checkers span {
    background: #f2f2f2;
    border: 2px solid #111;
  }
  .meez-swatch-starry-night {
    background:
      radial-gradient(1px 1px at 10px 10px, #fff, transparent) 0 0 / 23px 19px,
      linear-gradient(#020818, #1c2f6b);
  }
  .meez-swatch-starry-night span {
    background: rgba(8, 18, 52, 0.85);
    border: 1px solid #3a5bb0;
  }
  .meez-swatch-y2k-chrome {
    background: linear-gradient(160deg, #f4f7fb, #c3ccd9 45%, #e9eef5 55%, #aab5c6);
  }
  .meez-swatch-y2k-chrome span {
    background: linear-gradient(#fff, #eef2f8);
    border: 1px solid #8e9bb0;
    border-radius: 5px;
  }
  .meez-swatch-y2k-chrome span:nth-child(1) {
    background: linear-gradient(#7fe3ff, #00b4f0);
  }

  /* ---------- small screens ---------- */
  @media (max-width: 360px) {
    .meez-logo {
      zoom: 0.85;
    }
  }
  @media (max-width: 820px) {
    .meez-header-inner {
      flex-direction: column;
      align-items: flex-start;
    }
    .meez-header-side {
      text-align: left;
      width: 100%;
    }
    .meez-search {
      justify-content: flex-start;
    }
    .meez-search input {
      flex: 1;
      width: auto;
      min-width: 0;
    }
    .meez-landing,
    .meez-cols,
    .meez-cols-r,
    .meez-css-editor {
      grid-template-columns: minmax(0, 1fr);
    }
    .meez-picker {
      max-height: 300px;
    }
    #meez-profile .profileTable,
    #meez-profile .profileTable > tbody,
    #meez-profile .profileTable > tbody > tr,
    #meez-profile .profileTable > tbody > tr > td {
      display: block;
      width: auto;
    }
    #meez-profile .leftColumn {
      padding-right: 0;
    }
    #meez-profile .friendSpace .meez-grid {
      grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
  }
}

/* Theme-proof bits. They live in the theme layer so they beat a theme's catch-all
   `#meez-profile a` colour, while members' own CSS (meez-user) can still restyle them. */
@layer meez-preset {
  /* The player is always dark, whatever the theme. */
  #meez-profile .meez-player .meez-player-list a {
    color: #ffd23f;
  }
}
