:root {
      color-scheme: dark;
      --bg: #080c11;
      --panel: rgba(17, 22, 30, 0.92);
      --panel2: rgba(24, 31, 41, 0.9);
      --text: #f4f7fa;
      --muted: #aeb8c5;
      --cyan: #35daf7;
      --amber: #ffc84a;
      --line: rgba(180, 197, 218, 0.18);
      --line-strong: rgba(180, 197, 218, 0.32);
      --steam-blue: #66c0f4;
      --steam-panel: #16202d;
      --steam-panel-dark: #0e151f;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      padding: 24px;
      font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      color: var(--text);
      background:
        radial-gradient(900px 520px at 80% 0%, rgba(53, 218, 247, 0.08), transparent 58%),
        radial-gradient(760px 500px at 10% 10%, rgba(255, 200, 74, 0.07), transparent 60%),
        linear-gradient(180deg, #0e141b 0%, var(--bg) 100%);
    }

    a { color: var(--cyan); }

    .wrap {
      width: min(1280px, 100%);
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      gap: 18px;
      align-items: start;
    }

    .pictures-sidebar-stack {
      min-width: 0;
      display: grid;
      align-content: start;
      gap: 18px;
    }

    .pictures-sidebar-stack > aside,
    .pictures-sidebar-stack .qh-now-sidebar {
      position: static;
      width: 100%;
      max-width: none;
    }

    main,
    aside {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: linear-gradient(180deg, var(--panel2), var(--panel));
      box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
      overflow: hidden;
    }

    .hero {
      display: grid;
      gap: 14px;
      padding: 0 22px 22px;
      border-bottom: 1px solid var(--line);
    }

    .profile-cover {
      position: relative;
      aspect-ratio: 1984 / 640;
      min-height: 0;
      margin: 0 -22px;
      background:
        linear-gradient(180deg, rgba(7, 10, 14, 0.06), rgba(7, 10, 14, 0.72)),
        url('/qwertyhouse-assets/img/qwertyhouse-header-site.png?v=20260426-user-banner') center / cover no-repeat;
      border-bottom: 1px solid var(--line);
    }

    .profile-avatar {
      position: absolute;
      left: 22px;
      bottom: -34px;
      width: 96px;
      height: 96px;
      border-radius: 999px;
      object-fit: cover;
      border: 4px solid #0f1420;
      background: #15243a;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    .hero-body { padding-top: 42px; }

    h1,
    h2,
    p { margin-top: 0; }

    h1 {
      margin-bottom: 6px;
      font-size: clamp(2rem, 4vw, 3.2rem);
      line-height: 1;
      letter-spacing: 0;
    }

    .profile-handle,
    .intro,
    .picture-meta,
    .status {
      color: var(--muted);
    }

    .intro {
      max-width: 72ch;
      margin-bottom: 0;
    }

    .actions,
    .stats {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
    }

    .btn,
    .stat,
    .nav-list a {
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      background: rgba(17, 22, 30, 0.88);
      color: var(--text);
      text-decoration: none;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      min-height: 40px;
      padding: 9px 12px;
      font-weight: 750;
    }

    .stat {
      display: grid;
      gap: 3px;
      min-width: 150px;
      padding: 12px;
    }

    .stat strong {
      color: var(--amber);
      font-size: 1.2rem;
    }

    .stat span { color: var(--muted); font-size: 0.86rem; }

    .gallery-section { padding: 22px; }

    .section-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: end;
      margin-bottom: 16px;
    }

    .section-head h2 { margin-bottom: 0; }

    .status { margin-bottom: 0; font-size: 0.92rem; }

    .latest-sync {
      display: grid;
      gap: 12px;
      margin-bottom: 18px;
      padding: 14px;
      border: 1px solid rgba(102, 192, 244, 0.22);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(22, 32, 45, 0.86), rgba(11, 17, 25, 0.82));
    }

    .latest-sync[hidden] {
      display: none;
    }

    .latest-sync-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: end;
    }

    .latest-sync h3 {
      margin: 0;
      color: #fff;
      font-size: 1.05rem;
    }

    .latest-sync p {
      margin: 0;
      color: var(--muted);
      font-size: 0.86rem;
    }

    .text-link {
      color: var(--steam-blue);
      font-size: 0.86rem;
      font-weight: 750;
      text-decoration: none;
      white-space: nowrap;
    }

    .text-link:hover,
    .text-link:focus-visible {
      text-decoration: underline;
    }

    .latest-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .latest-card {
      display: grid;
      border: 1px solid rgba(0, 0, 0, 0.52);
      border-radius: 3px;
      overflow: hidden;
      background: var(--steam-panel-dark);
      color: inherit;
      text-decoration: none;
    }

    .latest-card img {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      background: #1b2838;
    }

    .latest-card span {
      display: grid;
      gap: 2px;
      padding: 8px;
      background: linear-gradient(180deg, #121a25, #0b1119);
    }

    .latest-card strong {
      color: #fff;
      font-size: 0.86rem;
      line-height: 1.2;
    }

    .latest-card small {
      color: #8f98a0;
      font-size: 0.76rem;
    }

    .category-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 18px;
    }

    .category-tab {
      min-height: 34px;
      border: 1px solid rgba(102, 192, 244, 0.24);
      border-radius: 3px;
      padding: 7px 11px;
      background: linear-gradient(180deg, #23364b, #172536);
      color: #c7d5e0;
      font: inherit;
      font-size: 0.88rem;
      font-weight: 750;
      cursor: pointer;
    }

    .category-tab[aria-pressed="true"] {
      border-color: rgba(102, 192, 244, 0.65);
      background: linear-gradient(180deg, #3b6c91, #244761);
      color: #fff;
    }

    .category-group {
      margin-top: 22px;
    }

    .category-heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      margin: 0 0 10px;
      padding: 0 0 8px;
      border-bottom: 1px solid rgba(102, 192, 244, 0.22);
      color: #c7d5e0;
      font-size: 1.05rem;
      cursor: pointer;
      list-style: none;
    }

    .category-heading::-webkit-details-marker {
      display: none;
    }

    .category-heading::before {
      content: '▸';
      color: #66c0f4;
      transition: transform 0.15s ease;
    }

    .category-group[open] > .category-heading::before {
      transform: rotate(90deg);
    }

    .category-heading span {
      color: #8f98a0;
      font-size: 0.82rem;
      font-weight: 650;
    }

    .picture-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
      gap: 10px;
    }

    .picture-card {
      position: relative;
      border: 1px solid rgba(0, 0, 0, 0.55);
      border-radius: 2px;
      overflow: hidden;
      background: var(--steam-panel-dark);
      color: inherit;
      text-decoration: none;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 22px rgba(0, 0, 0, 0.24);
    }

    .picture-card img {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      background: #1b2838;
      transition: transform 0.2s ease, filter 0.2s ease;
    }

    .picture-card:hover img,
    .picture-card:focus-visible img {
      transform: scale(1.025);
      filter: brightness(1.08);
    }

    .picture-copy {
      display: grid;
      gap: 4px;
      min-height: 94px;
      padding: 10px;
      background: linear-gradient(180deg, #121a25, #0b1119);
      border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .picture-copy strong {
      display: block;
      line-height: 1.22;
      color: #fff;
      font-size: 0.94rem;
    }

    .picture-meta {
      margin: 0;
      color: #8f98a0;
      font-size: 0.8rem;
    }

    .picture-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 3px;
    }

    .picture-links a {
      color: var(--steam-blue);
      font-size: 0.78rem;
      font-weight: 750;
      text-decoration: none;
    }

    .picture-links a:hover,
    .picture-links a:focus-visible {
      text-decoration: underline;
    }

    .picture-caption {
      margin: 0;
      color: #c7d5e0;
      font-size: 0.82rem;
      line-height: 1.3;
    }

    .image-fallback {
      display: grid;
      place-items: center;
      aspect-ratio: 16 / 9;
      padding: 12px;
      background: #1b2838;
      color: #8f98a0;
      text-align: center;
      font-size: 0.86rem;
    }

    aside {
      position: sticky;
      top: 24px;
      padding: 16px;
    }

    .nav-title {
      margin: 0 0 8px;
      color: var(--cyan);
      font-size: 0.84rem;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }

    .nav-list {
      list-style: none;
      margin: 0 0 16px;
      padding: 0;
      display: grid;
      gap: 8px;
    }

    .nav-list a {
      display: block;
      padding: 8px 10px;
    }

    .empty {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 16px;
      background: rgba(8, 12, 17, 0.55);
      color: var(--muted);
    }

    @media (max-width: 900px) {
      body { padding: 14px; }
      .wrap { grid-template-columns: 1fr; }
      aside { position: static; order: -1; }
      .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 620px) {
      body { padding: 0; }
      main,
      aside { border-left: 0; border-right: 0; border-radius: 0; }
      .profile-cover { min-height: 150px; }
      .profile-avatar { width: 82px; height: 82px; bottom: -24px; }
      .hero-body { padding-top: 32px; }
      .section-head { display: grid; }
      .latest-sync-head { display: grid; }
      .latest-grid { grid-template-columns: 1fr; }
    }
