:root {
    --ink: #24171e;
    --wine: #621f3d;
    --wine-deep: #2a1020;
    --plum: #41152f;
    --rose: #a94f6f;
    --copper: #c98758;
    --cream: #f5ede2;
    --paper: #fbf7f1;
    --sage: #79826d;
    --line: rgba(53, 27, 39, .17);
    --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: Inter, "Segoe UI", Arial, sans-serif;
    --shell: min(1180px, calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button {
    white-space: nowrap;
}

body::before {
    position: fixed;
    z-index: 9999;
    inset: 0;
    opacity: .025;
    pointer-events: none;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a {
    color: inherit;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: white;
    background: var(--wine);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    transition: background .25s, box-shadow .25s;
}

.site-header.is-scrolled {
    background: rgba(42, 16, 32, .92);
    box-shadow: 0 8px 30px rgba(20, 8, 15, .18);
    backdrop-filter: blur(14px);
}

.inner-page .site-header {
    background: rgba(42, 16, 32, .96);
    box-shadow: 0 8px 30px rgba(20, 8, 15, .14);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    width: min(1500px, calc(100% - 48px));
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--cream);
    text-decoration: none;
}

.header-inner > .brand {
    margin-right: auto;
}

.header-cart {
    display: inline-flex;
    min-height: 46px;
    padding: 7px 13px 7px 10px;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 99px;
    color: white;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}

.header-cart:hover,
.header-cart:focus-visible {
    border-color: rgba(201, 135, 88, .8);
    background: rgba(201, 135, 88, .16);
    transform: translateY(-1px);
}

.header-cart-icon {
    position: relative;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
}

.header-cart-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.header-cart-count {
    position: absolute;
    top: -6px;
    right: -7px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid var(--wine-deep);
    border-radius: 99px;
    color: var(--wine-deep);
    background: var(--copper);
    font: 700 9px/1 var(--sans);
}

.header-cart-copy {
    display: flex;
    min-width: 80px;
    flex-direction: column;
    line-height: 1.1;
}

.header-cart-copy small {
    color: rgba(255, 255, 255, .58);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.header-cart-copy > span {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.header-cart-copy em {
    margin: 0 2px;
    color: rgba(255, 255, 255, .55);
    font-size: 9px;
    font-style: normal;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
}

.brand-mark svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: var(--copper);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font: 600 24px/1 var(--serif);
    letter-spacing: .02em;
}

.brand-copy small {
    margin-top: 4px;
    opacity: .66;
    font-size: 8px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-nav a {
    position: relative;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a:not(.nav-login)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--copper);
    transform: scaleX(0);
    transition: transform .2s;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-nav .nav-login {
    padding: 12px 21px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 99px;
    color: white;
}

.site-nav .nav-register {
    padding: 13px 22px;
    border-radius: 99px;
    color: var(--wine-deep);
    background: var(--copper);
    box-shadow: 0 10px 28px rgba(201, 135, 88, .2);
}

.site-nav a.nav-register::after {
    display: none;
}

.nav-logout {
    margin: 0;
}

.nav-logout button {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .62);
    background: none;
    font: 600 10px/1 var(--sans);
    letter-spacing: .12em;
    cursor: pointer;
    text-transform: uppercase;
}

.flash-stack {
    position: fixed;
    z-index: 200;
    top: 100px;
    right: 24px;
    display: grid;
    width: min(390px, calc(100% - 48px));
    gap: 10px;
}

.flash {
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    color: white;
    background: rgba(42, 16, 32, .96);
    box-shadow: 0 18px 45px rgba(20, 8, 15, .2);
    font-size: 13px;
    line-height: 1.5;
    backdrop-filter: blur(14px);
}

.flash-success {
    border-left: 4px solid #91a37c;
}

.flash-error {
    border-left: 4px solid #d86970;
}

.flash-info {
    border-left: 4px solid var(--copper);
}

.menu-toggle {
    display: none;
}

.home-access {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 150px 0 90px;
    color: var(--cream);
    background:
        radial-gradient(circle at 73% 38%, rgba(169, 79, 111, .28), transparent 25%),
        radial-gradient(circle at 15% 15%, rgba(201, 135, 88, .12), transparent 25%),
        linear-gradient(135deg, #2a1020 0%, #48152f 58%, #240d1d 100%);
}

.home-access::after {
    position: absolute;
    top: 0;
    left: 62%;
    width: 1px;
    height: 100%;
    content: "";
    background: linear-gradient(transparent, rgba(255, 255, 255, .1), transparent);
}

.home-access-inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 320px;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
    align-items: center;
    gap: clamp(50px, 9vw, 130px);
}

.home-access-copy h2 {
    max-width: 900px;
    margin: 0;
    font: 400 clamp(48px, 6vw, 82px)/.96 var(--serif);
    letter-spacing: -.04em;
}

.home-access-copy > p:not(.eyebrow) {
    max-width: 690px;
    margin: 28px 0 0;
    color: rgba(245, 237, 226, .72);
    font-size: 16px;
    line-height: 1.8;
}

.home-access-action {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.home-access-action > span {
    color: var(--copper);
    font: 400 82px/1 var(--serif);
}

.home-access-action small {
    color: rgba(245, 237, 226, .62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.home-access-orbit {
    position: absolute;
    border: 1px solid rgba(201, 135, 88, .14);
    border-radius: 50%;
}

.home-access-orbit-one {
    top: -220px;
    right: -120px;
    width: 540px;
    height: 540px;
}

.home-access-orbit-two {
    bottom: -310px;
    left: 44%;
    width: 480px;
    height: 480px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 850px;
    padding: 160px 0 0;
    color: var(--cream);
    background:
        radial-gradient(circle at 73% 38%, rgba(169, 79, 111, .28), transparent 25%),
        radial-gradient(circle at 15% 15%, rgba(201, 135, 88, .12), transparent 25%),
        linear-gradient(135deg, #2a1020 0%, #48152f 58%, #240d1d 100%);
}

.hero::after {
    position: absolute;
    top: 0;
    left: 56%;
    width: 1px;
    height: 100%;
    content: "";
    background: linear-gradient(transparent, rgba(255, 255, 255, .1), transparent);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 610px;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 75px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px;
    color: var(--copper);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 32px;
    height: 1px;
    background: currentColor;
}

.hero h1,
.section-heading h2,
.atelier-copy h2,
.community h2,
.coming-soon h2 {
    margin: 0;
    font: 400 clamp(54px, 6.3vw, 92px)/.92 var(--serif);
    letter-spacing: -.045em;
}

h1 em,
h2 em {
    color: var(--copper);
    font-weight: 400;
}

.hero-intro {
    max-width: 580px;
    margin: 34px 0;
    color: rgba(245, 237, 226, .72);
    font: 400 16px/1.8 var(--sans);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 29px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 25px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s, background .2s, color .2s;
    white-space: nowrap;
}

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

.button-primary {
    color: var(--wine-deep);
    background: var(--copper);
    box-shadow: 0 12px 35px rgba(201, 135, 88, .22);
}

.text-link {
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-decoration-color: rgba(255, 255, 255, .3);
    text-underline-offset: 7px;
    text-transform: uppercase;
}

.text-link span {
    margin-left: 7px;
    color: var(--copper);
}

.hero-proof {
    display: flex;
    margin-top: 45px;
    align-items: center;
    gap: 26px;
}

.hero-proof div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-proof strong {
    color: var(--cream);
    font: 400 21px/1 var(--serif);
}

.hero-proof span {
    color: rgba(255, 255, 255, .46);
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero-proof i {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, .18);
}

.hero-visual {
    position: relative;
    display: flex;
    min-height: 590px;
    align-items: center;
    justify-content: center;
}

.portrait-card {
    position: relative;
    width: min(420px, 90%);
    transform: rotate(1.5deg);
}

.portrait-placeholder {
    position: relative;
    display: flex;
    overflow: hidden;
    aspect-ratio: .78;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 210px 210px 16px 16px;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .13), transparent 9%),
        radial-gradient(ellipse at 50% 52%, rgba(169, 79, 111, .45), transparent 30%),
        linear-gradient(145deg, rgba(201, 135, 88, .12), rgba(16, 5, 12, .65));
    box-shadow: 0 35px 80px rgba(10, 2, 8, .35);
}

.homepage-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-tutorial {
    position: relative;
    padding: clamp(68px, 9vw, 120px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 12%, rgba(207, 132, 91, .17), transparent 32%),
        linear-gradient(145deg, #f7eee4 0%, #efe1d6 100%);
}

.home-tutorial::before {
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -130px;
    border: 1px solid rgba(122, 41, 77, .15);
    border-radius: 50%;
    content: "";
}

.home-tutorial-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: center;
    gap: clamp(34px, 6vw, 82px);
}

.home-tutorial-video {
    position: relative;
}

.home-tutorial-video-frame {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: #160b11;
    box-shadow: 0 28px 70px rgba(68, 27, 46, .24);
    transform: rotate(-.7deg);
}

.home-tutorial-video video {
    display: block;
    width: 100%;
    max-height: min(70vh, 640px);
    object-fit: contain;
    background: #160b11;
}

.home-tutorial-video-tag {
    position: absolute;
    right: -12px;
    bottom: -16px;
    padding: 10px 15px;
    border-radius: 999px;
    color: #fff;
    background: var(--wine);
    box-shadow: 0 10px 24px rgba(68, 27, 46, .22);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-tutorial-copy h2 {
    margin: 14px 0 20px;
    font: 400 clamp(38px, 5vw, 62px)/.98 var(--serif);
}

.home-tutorial-copy > p:not(.eyebrow) {
    margin: 0 0 26px;
    color: #66515b;
    font-size: 17px;
    line-height: 1.7;
}

.home-tutorial-copy small {
    display: block;
    max-width: 360px;
    margin-top: 16px;
    color: #816d76;
    font-size: 10px;
    line-height: 1.5;
}

.homepage-tutorial-admin-preview {
    display: grid;
    margin: 18px 0 24px;
    padding: 14px;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .58);
}

.homepage-tutorial-admin-preview video {
    display: block;
    width: 180px;
    height: 115px;
    border-radius: 10px;
    object-fit: contain;
    background: #160b11;
}

.homepage-tutorial-admin-preview div {
    display: grid;
    gap: 6px;
}

.homepage-tutorial-admin-preview small {
    overflow-wrap: anywhere;
    color: #75676d;
}

.has-media {
    position: relative;
    overflow: hidden;
}

.portrait-placeholder.has-media::before,
.portrait-placeholder.has-media::after {
    display: none;
}

.portrait-placeholder::before,
.portrait-placeholder::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(201, 135, 88, .28);
    border-radius: 50%;
}

.portrait-placeholder::before {
    width: 300px;
    height: 300px;
}

.portrait-placeholder::after {
    width: 360px;
    height: 360px;
}

.portrait-monogram {
    position: absolute;
    color: rgba(255, 255, 255, .035);
    font: italic 380px/1 var(--serif);
}

.portrait-placeholder p {
    position: relative;
    z-index: 1;
    color: rgba(245, 237, 226, .63);
    font: italic 25px/1.2 var(--serif);
    text-align: center;
}

.portrait-spark {
    position: absolute;
    color: var(--copper);
}

.spark-one {
    top: 18%;
    left: 18%;
    font-size: 22px;
}

.spark-two {
    right: 14%;
    bottom: 26%;
    font-size: 12px;
}

.portrait-caption {
    position: absolute;
    right: -35px;
    bottom: 35px;
    display: flex;
    width: 180px;
    padding: 18px;
    align-items: flex-start;
    gap: 15px;
    color: var(--ink);
    background: var(--cream);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .15);
    transform: rotate(-3deg);
}

.portrait-caption span {
    color: var(--rose);
    font-size: 9px;
    letter-spacing: .15em;
}

.portrait-caption p {
    margin: 0;
    font: italic 17px/1.2 var(--serif);
}

.handmade-seal {
    position: absolute;
    bottom: 25px;
    left: -8px;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(201, 135, 88, .55);
    border-radius: 50%;
    color: var(--copper);
}

.handmade-seal span {
    position: absolute;
    width: 90px;
    font-size: 7px;
    letter-spacing: .17em;
    text-align: center;
    text-transform: uppercase;
}

.handmade-seal strong {
    font-size: 18px;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
}

.orbit-one {
    top: -330px;
    left: -280px;
    width: 720px;
    height: 720px;
}

.orbit-two {
    right: -250px;
    bottom: -380px;
    width: 790px;
    height: 790px;
}

.hero-ribbon {
    position: relative;
    z-index: 3;
    display: flex;
    overflow: hidden;
    min-height: 72px;
    padding: 0 32px;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    color: var(--wine-deep);
    background: var(--copper);
    white-space: nowrap;
}

.hero-ribbon span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.hero-ribbon i {
    font-style: normal;
}

.section {
    padding: 125px 0;
}

.universe {
    background: var(--paper);
}

.section-heading {
    display: grid;
    margin-bottom: 70px;
    grid-template-columns: 1.3fr .7fr;
    align-items: end;
    column-gap: 90px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2,
.atelier-copy h2,
.coming-soon h2 {
    font-size: clamp(46px, 5vw, 72px);
}

.section-heading > p:last-child,
.atelier-copy > p,
.coming-soon-inner > p:not(.eyebrow) {
    margin: 0;
    color: #74666d;
    font-size: 15px;
    line-height: 1.8;
}

.universe-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    gap: 18px;
}

.world-card {
    position: relative;
    display: flex;
    min-height: 325px;
    padding: 35px;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #f7f0e7;
}

.world-card-large {
    padding: 0;
    grid-row: span 2;
}

.card-image {
    position: relative;
    display: flex;
    min-height: 415px;
    align-items: flex-end;
    padding: 22px;
}

.card-image-craft {
    background:
        radial-gradient(circle at 60% 45%, rgba(201, 135, 88, .45), transparent 12%),
        radial-gradient(circle at 40% 56%, rgba(121, 130, 109, .35), transparent 22%),
        linear-gradient(135deg, #c7aa93, #6f4351);
}

.image-label {
    position: relative;
    z-index: 1;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .4);
    color: rgba(255, 255, 255, .8);
    background: rgba(42, 16, 32, .25);
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.world-card-copy {
    display: flex;
    padding: 30px;
    gap: 25px;
}

.card-number {
    color: var(--rose);
    font-size: 9px;
    letter-spacing: .14em;
}

.world-card h3 {
    margin: 0 0 16px;
    font: 400 29px/1.05 var(--serif);
}

.world-card p {
    margin: 0;
    color: #75656c;
    font-size: 13px;
    line-height: 1.7;
}

.card-icon {
    margin-bottom: auto;
    color: var(--copper);
    font: 38px/1 var(--serif);
}

.card-detail {
    margin-top: auto;
    padding-top: 25px;
    color: #9a878f;
    font-size: 8px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.world-card-dark {
    color: var(--cream);
    border-color: var(--wine-deep);
    background: var(--wine-deep);
}

.world-card-dark p {
    color: rgba(255, 255, 255, .55);
}

.world-card-wide {
    min-height: 210px;
    grid-column: 2 / 4;
    flex-direction: row;
    align-items: center;
    gap: 70px;
    background: #e9ddcf;
}

.world-card-wide > div {
    min-width: 220px;
}

.atelier {
    overflow: hidden;
    background: #e8dfd3;
}

.atelier-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 105px;
}

.atelier-collage {
    position: relative;
    min-height: 610px;
}

.collage-main,
.collage-small {
    display: flex;
    align-items: flex-end;
    padding: 17px;
    color: rgba(255, 255, 255, .75);
    background:
        radial-gradient(circle at 60% 40%, rgba(201, 135, 88, .5), transparent 13%),
        linear-gradient(145deg, #7c4559, #b7967f);
    box-shadow: 0 25px 50px rgba(62, 35, 45, .14);
}

.collage-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 72%;
    height: 510px;
}

.collage-small {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 43%;
    height: 280px;
    border: 10px solid #e8dfd3;
    background:
        radial-gradient(circle at 50% 50%, rgba(121, 130, 109, .5), transparent 23%),
        linear-gradient(145deg, #372331, #9b7867);
}

.collage-main span,
.collage-small span {
    position: relative;
    z-index: 1;
    font-size: 8px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.collage-note {
    position: absolute;
    z-index: 3;
    right: -25px;
    bottom: 20px;
    width: 235px;
    padding: 25px;
    color: var(--cream);
    background: var(--wine);
    transform: rotate(2deg);
}

.collage-note strong {
    display: block;
    font: italic 31px/1 var(--serif);
}

.collage-note small {
    display: block;
    margin-top: 5px;
    color: var(--copper);
    font-size: 7px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.collage-note p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
    line-height: 1.5;
}

.atelier-copy > p {
    margin: 30px 0;
}

.button-outline {
    border: 1px solid rgba(42, 16, 32, .3);
}

.community {
    padding-bottom: 0;
    color: var(--cream);
    background: var(--paper);
}

.community-panel {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 545px;
    padding: 80px 90px;
    grid-template-columns: 1fr .8fr;
    align-items: center;
    background:
        radial-gradient(circle at 82% 25%, rgba(169, 79, 111, .4), transparent 28%),
        linear-gradient(125deg, var(--wine-deep), #4f1737);
}

.community-panel::after {
    position: absolute;
    right: -190px;
    bottom: -390px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.eyebrow-light {
    color: var(--copper);
}

.community h2 {
    font-size: clamp(46px, 5vw, 70px);
}

.community-copy > p:not(.eyebrow) {
    max-width: 540px;
    margin: 28px 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.75;
}

.button-light {
    color: var(--wine-deep);
    background: var(--cream);
}

.community-cards {
    position: relative;
    z-index: 2;
    min-height: 345px;
}

.member-card {
    position: absolute;
    top: 35px;
    right: 25px;
    display: flex;
    width: 245px;
    height: 340px;
    padding: 27px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    color: var(--wine-deep);
    background: var(--cream);
    box-shadow: 0 30px 70px rgba(10, 2, 8, .25);
    transform: rotate(4deg);
}

.member-card-back {
    top: -5px;
    right: 110px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .08);
    transform: rotate(-9deg);
    backdrop-filter: blur(8px);
}

.member-card-back span {
    font-size: 8px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.member-card-back strong {
    margin-top: 8px;
    color: var(--copper);
    font: italic 27px/1 var(--serif);
}

.member-avatar {
    display: grid;
    width: 65px;
    height: 65px;
    margin-bottom: auto;
    place-items: center;
    border-radius: 50%;
    color: var(--cream);
    background: var(--wine);
    font: italic 35px/1 var(--serif);
}

.member-card small {
    margin-bottom: 8px;
    color: var(--rose);
    font-size: 7px;
    letter-spacing: .15em;
}

.member-card > strong {
    font: 400 24px/1.1 var(--serif);
}

.member-line {
    height: 1px;
    margin: 20px 0;
    background: var(--line);
}

.member-card > span {
    color: #84747b;
    font-size: 9px;
}

.coming-soon {
    padding: 130px 0;
    text-align: center;
    background: var(--paper);
}

.coming-soon-inner {
    max-width: 720px;
}

.coming-soon .eyebrow {
    justify-content: center;
}

.coming-star {
    display: block;
    margin-bottom: 28px;
    color: var(--copper);
    font-size: 25px;
}

.coming-soon-inner > p:not(.eyebrow) {
    max-width: 570px;
    margin: 30px auto;
}

.text-link-dark {
    color: var(--wine);
}

.site-footer {
    padding: 55px 0;
    color: rgba(255, 255, 255, .6);
    background: #1d0b16;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.brand-footer .brand-copy strong {
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    font: italic 15px/1.4 var(--serif);
    text-align: center;
}

.site-footer .footer-note {
    font: 600 8px/1 var(--sans);
    letter-spacing: .14em;
    text-align: right;
    text-transform: uppercase;
}

.account-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: .95fr 1.05fr;
    background: var(--paper);
}

.account-art {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 760px;
    padding: 140px 9vw 90px;
    align-items: flex-end;
    color: var(--cream);
    background:
        radial-gradient(circle at 65% 28%, rgba(201, 135, 88, .25), transparent 19%),
        radial-gradient(circle at 30% 65%, rgba(169, 79, 111, .38), transparent 23%),
        linear-gradient(145deg, var(--wine-deep), #591b3d);
}

.account-art::before,
.account-art::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.account-art::before {
    top: 12%;
    right: -180px;
    width: 500px;
    height: 500px;
}

.account-art::after {
    bottom: -270px;
    left: -170px;
    width: 560px;
    height: 560px;
}

.account-art-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.account-art h1 {
    margin: 0;
    font: 400 clamp(52px, 5.5vw, 82px)/.94 var(--serif);
    letter-spacing: -.045em;
}

.account-art-copy > p:last-child {
    max-width: 480px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .62);
    line-height: 1.75;
}

.account-form-wrap {
    display: grid;
    padding: 135px 8vw 80px;
    place-items: center;
}

.account-form {
    width: min(100%, 510px);
}

.form-kicker {
    margin: 0 0 12px;
    color: var(--rose);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.account-form h2,
.settings-content h1,
.admin-page h1 {
    margin: 0 0 12px;
    font: 400 clamp(39px, 4vw, 58px)/1 var(--serif);
    letter-spacing: -.035em;
}

.form-intro {
    margin: 0 0 32px;
    color: #776a70;
    font-size: 13px;
    line-height: 1.7;
}

.form-field {
    display: flex;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 8px;
}

.form-field > label {
    color: #55434b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid rgba(53, 27, 39, .2);
    border-radius: 8px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .68);
    font: 400 14px/1.4 var(--sans);
    transition: border-color .2s, box-shadow .2s;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(169, 79, 111, .11);
}

.form-field small {
    color: #8d7e84;
    font-size: 10px;
    line-height: 1.5;
}

.field-error {
    color: #ad3449;
    font-size: 11px;
}

.has-error .form-control {
    border-color: #c55463;
}

.form-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.register-invitation {
    display: grid;
    margin-top: 30px;
    gap: 12px;
    color: #817278;
    text-align: center;
}

.register-invitation .button {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--wine);
    color: var(--wine);
}

.form-inline {
    display: flex;
    margin: 3px 0 23px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #76676d;
    font-size: 11px;
}

.form-inline a,
.form-switch a,
.form-minor-links a {
    color: var(--wine);
    font-weight: 700;
    text-underline-offset: 4px;
}

.check-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #66575d;
    font-size: 12px;
}

.check-field input {
    width: 16px;
    height: 16px;
    accent-color: var(--wine);
}

.check-card {
    display: flex;
    margin: 7px 0 24px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
}

.form-switch {
    margin: 28px 0 0;
    color: #817278;
    font-size: 12px;
    text-align: center;
}

.form-minor-links {
    margin-top: 17px;
    font-size: 11px;
    text-align: center;
}

.centered-form-page {
    display: grid;
    min-height: 82vh;
    padding: 160px 24px 90px;
    place-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(201, 135, 88, .14), transparent 26%),
        var(--paper);
}

.compact-form {
    padding: 45px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 25px 70px rgba(54, 29, 40, .08);
}

.profile-page,
.settings-page,
.admin-page {
    min-height: 85vh;
    padding: 155px 0 110px;
    background:
        radial-gradient(circle at 85% 8%, rgba(201, 135, 88, .12), transparent 22%),
        var(--paper);
}

.profile-card {
    display: grid;
    padding: 55px;
    grid-template-columns: 210px 1fr;
    align-items: center;
    gap: 55px;
    border: 1px solid var(--line);
    background: #efe5d8;
}

.profile-avatar {
    display: grid;
    overflow: hidden;
    width: 210px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    color: var(--cream);
    background: linear-gradient(145deg, var(--wine), var(--wine-deep));
    font: italic 90px/1 var(--serif);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-identity h1 {
    margin: 0;
    font: 400 clamp(46px, 6vw, 76px)/.95 var(--serif);
    letter-spacing: -.04em;
}

.profile-handle {
    margin: 10px 0 20px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 700;
}

.profile-bio {
    max-width: 680px;
    color: #72636a;
    line-height: 1.7;
}

.profile-actions {
    display: flex;
    margin-top: 25px;
    gap: 12px;
}

.profile-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.profile-panel {
    display: flex;
    min-height: 270px;
    padding: 30px;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #f6efe6;
}

.profile-panel > span {
    color: var(--rose);
    font-size: 9px;
}

.profile-panel h2 {
    margin: auto 0 14px;
    font: 400 27px/1.1 var(--serif);
}

.profile-panel p {
    margin: 0 0 20px;
    color: #786970;
    font-size: 12px;
    line-height: 1.65;
}

.profile-panel strong {
    color: var(--rose);
    font-size: 8px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.profile-panel-dark {
    color: var(--cream);
    background: var(--wine-deep);
}

.profile-panel-dark p {
    color: rgba(255, 255, 255, .55);
}

.settings-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 680px);
    align-items: start;
    justify-content: center;
    gap: 70px;
}

.settings-nav {
    display: flex;
    padding: 25px;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #f4ece2;
}

.settings-nav p {
    margin: 0 0 18px;
    color: #927d86;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.settings-nav a {
    padding: 13px 12px;
    border-left: 2px solid transparent;
    color: #67565d;
    font-size: 12px;
    text-decoration: none;
}

.settings-nav a.active {
    border-left-color: var(--rose);
    color: var(--wine);
    background: rgba(169, 79, 111, .07);
    font-weight: 700;
}

.settings-content {
    padding: 45px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .56);
}

.admin-heading {
    display: flex;
    margin-bottom: 35px;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.admin-heading p {
    margin: 8px 0 0;
    color: #75676d;
}

.admin-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-heading-actions .button-outline {
    background: transparent;
}

.admin-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 22px;
}

.admin-hub-card {
    min-height: 260px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .62);
    text-decoration: none;
}

.admin-hub-main {
    display: grid;
    min-height: 170px;
    padding: 28px 24px 20px;
    place-items: center;
    color: var(--wine);
    text-align: center;
    text-decoration: none;
}

.admin-hub-main svg {
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    fill: currentColor;
}

.admin-hub-main strong {
    display: block;
    font: 400 30px/1 var(--serif);
}

.admin-hub-links {
    display: grid;
    gap: 1px;
    border-top: 1px solid var(--line);
    background: var(--line);
}

.admin-hub-links a {
    padding: 12px 16px;
    color: #67565d;
    background: #f8f1e8;
    font-size: 12px;
    text-decoration: none;
}

.admin-hub-links a:hover {
    color: var(--wine);
    background: #efe5d8;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-action-card {
    display: flex;
    min-height: 150px;
    padding: 24px;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    color: var(--wine);
    background: rgba(255, 255, 255, .62);
    text-decoration: none;
}

.admin-action-card strong {
    display: block;
    margin-bottom: 10px;
    font: 400 28px/1.05 var(--serif);
}

.admin-action-card span {
    color: #75676d;
    font-size: 12px;
    line-height: 1.55;
}

.admin-search {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.admin-search .form-control {
    flex: 1;
}

.admin-search .button {
    min-width: 115px;
    background: transparent;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .58);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-table th {
    color: #88757e;
    font-size: 8px;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.admin-table td {
    color: #5e4d54;
    font-size: 12px;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td small {
    margin-top: 3px;
    color: #99878e;
}

.admin-panel,
.copy-panel {
    margin: 24px 0;
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .62);
}

.admin-panel h2 {
    margin: 0 0 12px;
    font: 400 32px/1.1 var(--serif);
}

.modal-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(42, 16, 32, .38);
}

.admin-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(42, 16, 32, .22);
}

.admin-panel form {
    margin-top: 18px;
}

.profile-result,
.copy-panel {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.profile-result p,
.copy-panel small {
    margin: 8px 0 0;
    color: #75676d;
}

.copy-panel {
    flex-wrap: wrap;
}

.copy-panel pre {
    width: 100%;
    margin: 10px 0 0;
    white-space: pre-wrap;
    color: #5e4d54;
    font: 12px/1.7 var(--sans);
}

.copy-panel button {
    padding: 10px 14px;
    border: 1px solid var(--wine);
    color: var(--wine);
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-columns {
    display: grid;
    margin-top: 34px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 24px;
}

.admin-user-summary {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .62);
}

.admin-user-summary.has-avatar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-user-summary > img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-user-summary dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    margin: 0;
}

.admin-user-summary dt {
    color: #786770;
    font-size: .78rem;
}

.admin-user-summary dd {
    margin: .2rem 0 0;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.admin-card {
    margin: 0;
}

.admin-metric {
    margin: .25rem 0;
    font-size: 2rem;
    font-weight: 800;
}

.compact-form {
    display: grid;
    gap: .75rem;
    margin-top: .75rem;
}

.admin-create-detail {
    margin-top: 1rem;
}

.admin-alert {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .62);
}

.admin-alert-error {
    border-color: #b94a48;
}

.admin-alert-success {
    border-color: #3b8f65;
}

.status-revoked,
.status-sync_error {
    color: #a73535;
}

.status-expired,
.status-pending {
    color: #8a6414;
}

.status {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 99px;
    background: #e5ded6;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-active {
    color: #466044;
    background: #dce7d8;
}

.status-suspended,
.status-deleted {
    color: #8b3848;
    background: #efdbdf;
}

.table-actions {
    display: flex;
    min-width: 132px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.table-actions form {
    display: inline-flex;
    margin: 0;
}

.table-actions a,
.table-actions button {
    padding: 0;
    border: 0;
    color: var(--wine);
    background: none;
    font: 700 10px/1 var(--sans);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.setting-value {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setting-value.is-secret {
    color: var(--rose);
    letter-spacing: .12em;
}

.readonly-value {
    display: flex;
    min-height: 50px;
    padding: 12px 15px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #6d5d64;
    background: #e9e1d8;
    font-size: 13px;
}

.audit-panel {
    margin-top: 35px;
    padding: 32px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .5);
}

.audit-panel h2 {
    margin: 0 0 20px;
    font: 400 31px/1 var(--serif);
}

.audit-list {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.audit-list > div {
    display: flex;
    padding: 14px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--paper);
}

.audit-list strong {
    font-size: 11px;
}

.audit-list span {
    color: #88777e;
    font-size: 9px;
    text-transform: uppercase;
}

.narrow-shell {
    max-width: 760px;
}

.back-link {
    display: inline-block;
    margin-bottom: 35px;
    color: var(--wine);
    font-size: 11px;
    font-weight: 700;
    text-underline-offset: 5px;
}

.admin-form {
    margin-top: 35px;
    padding: 40px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .58);
}

.media-config-state {
    padding: 10px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.media-config-state.is-ready {
    color: #276442;
    background: rgba(39, 100, 66, .08);
}

.media-config-state.is-missing {
    color: #9b3d45;
    background: rgba(155, 61, 69, .08);
}

.media-admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 28px;
}

.media-upload-form {
    position: sticky;
    top: 115px;
    margin-top: 0;
}

.media-upload-form h2 {
    margin: 6px 0 24px;
    font: 400 34px/1 var(--serif);
}

.media-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 150px 130px auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 14px;
}

.media-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .68);
}

.media-card-trigger {
    display: grid;
    width: 100%;
    padding: 0;
    border: 0;
    color: var(--wine-deep);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.media-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eadfd3;
}

.media-card-thumb img,
.media-card-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.media-card-trigger:hover img,
.media-card-trigger:focus-visible img,
.media-card-trigger:hover video,
.media-card-trigger:focus-visible video {
    transform: scale(1.035);
}

.media-card-trigger strong {
    min-height: 55px;
    padding: 13px 14px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.media-dialog {
    width: min(920px, calc(100% - 32px));
    height: min(720px, calc(100vh - 32px));
    height: min(720px, calc(100dvh - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    color: var(--wine-deep);
    background: var(--paper);
    box-shadow: 0 28px 90px rgba(42, 16, 32, .35);
}

.media-dialog::backdrop {
    background: rgba(26, 9, 17, .72);
    backdrop-filter: blur(5px);
}

.media-dialog-panel {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
}

.media-dialog-preview {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    background: #26111c;
}

.media-dialog-preview img,
.media-dialog-preview video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.media-dialog-preview video {
    background: #160b11;
}

.media-dialog-content {
    min-width: 0;
    min-height: 0;
    padding: 44px 36px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.media-dialog-content h2 {
    margin: 12px 0 24px;
    font: 400 36px/1.05 var(--serif);
}

.media-dialog-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--wine);
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.status-chip {
    display: inline-flex;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    color: #67535d;
    background: #e8ded5;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.media-details {
    display: grid;
    margin: 0 0 24px;
    gap: 13px;
}

.media-details div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
}

.media-details dt,
.media-url-copy label {
    color: #856f79;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.media-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #56454d;
    font-size: 12px;
    line-height: 1.5;
}

.media-url-copy {
    display: grid;
    gap: 7px;
}

.media-url-copy > div {
    display: flex;
    gap: 8px;
}

.media-url-copy .form-control {
    min-width: 0;
    font-size: 10px;
}

.media-url-copy .button {
    flex: 0 0 auto;
}

.media-dialog-actions {
    display: flex;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 8px;
}

.media-dialog-actions form {
    margin: 0;
}

.button-danger {
    border-color: #a33d52;
    color: #fff;
    background: #a33d52;
}

.account-danger-zone {
    margin-top: 48px;
    padding: 24px;
    border: 1px solid rgba(163, 61, 82, .38);
    border-radius: 18px;
    background: rgba(163, 61, 82, .05);
}

.account-delete-dialog {
    width: min(620px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    color: var(--wine-deep);
    background: var(--paper);
    box-shadow: 0 28px 90px rgba(42, 16, 32, .35);
}

.account-delete-dialog::backdrop {
    background: rgba(26, 9, 17, .72);
    backdrop-filter: blur(5px);
}

.account-delete-dialog__panel { position: relative; padding: 42px 36px 32px; }
.account-delete-dialog__panel h2 { margin: 8px 0 18px; font: 400 36px/1.05 var(--serif); }
.account-delete-dialog__panel li { margin-bottom: 8px; }
.account-delete-dialog__actions { display: flex; margin-top: 22px; flex-wrap: wrap; gap: 10px; }

.faq-page { min-height: 70vh; padding: clamp(48px, 7vw, 96px) 0; }
.faq-hero { max-width: 760px; margin-bottom: 30px; }
.faq-hero h1, .faq-detail h1 { margin: 8px 0 14px; font: 400 clamp(42px, 7vw, 72px)/.98 var(--serif); }
.faq-search { display: grid; margin-bottom: 32px; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto; gap: 10px; }
.faq-search input, .faq-search select { width: 100%; min-height: 48px; }
.faq-featured, .faq-card { display: block; border: 1px solid var(--line); border-radius: 20px; color: inherit; background: var(--paper); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.faq-featured:hover, .faq-card:hover { transform: translateY(-2px); border-color: var(--wine); }
.faq-featured { margin-bottom: 18px; padding: clamp(24px, 5vw, 46px); background: linear-gradient(135deg, rgba(122, 41, 77, .1), var(--paper)); }
.faq-featured > span, .faq-card > span, .faq-detail header > span { color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.faq-featured h2 { margin: 10px 0; font: 400 clamp(30px, 4vw, 46px)/1.05 var(--serif); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-card { padding: 26px; }
.faq-card h2 { margin: 10px 0; font: 400 28px/1.08 var(--serif); }
.faq-card small { color: var(--wine); font-weight: 700; }
.faq-detail { max-width: 860px; }
.faq-detail header { margin: 28px 0 38px; }
.faq-detail header p { max-width: 700px; font-size: 19px; line-height: 1.6; }
.faq-content { font-size: 17px; line-height: 1.75; }
.faq-content h2, .faq-content h3 { margin: 1.5em 0 .5em; font-family: var(--serif); font-weight: 400; }
.faq-content img { width: 100%; height: auto; margin: 24px 0; border-radius: 18px; }
.faq-content video { display: block; width: 100%; max-height: min(72vh, 720px); margin: 24px 0; border-radius: 18px; background: #160b11; }
.faq-content a { color: var(--wine); }
.faq-detail footer { margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line); color: #78636d; }
.faq-embed { margin: 30px 0; overflow: hidden; border-radius: 18px; }
.faq-embed--youtube { position: relative; padding-top: 56.25%; background: #1e1118; }
.faq-embed--youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq-embed--link { padding: 24px; background: rgba(122, 41, 77, .08); }
.faq-embed--link a { color: var(--wine); font-weight: 800; }
.faq-embed--x { display: flex; min-height: 110px; justify-content: center; padding: 0 12px; overflow: visible; background: transparent; }
.faq-embed--x .twitter-tweet { width: 100%; max-width: 550px; margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.faq-embed--x > iframe { max-width: 100% !important; margin: 0 auto !important; }
.faq-embed--native { background: #160b11; }
.faq-embed--native video { display: block; width: 100%; max-height: min(72vh, 720px); object-fit: contain; }
.faq-editor-toolbar { display: flex; margin: 18px 0 8px; flex-wrap: wrap; gap: 7px; }
.faq-editor-toolbar button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.faq-video-actions { display: flex; margin: 18px 0 8px; justify-content: flex-end; }

.faq-media-picker {
    width: min(900px, calc(100% - 32px));
    height: min(720px, calc(100vh - 32px));
    height: min(720px, calc(100dvh - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    color: var(--wine-deep);
    background: var(--paper);
    box-shadow: 0 28px 90px rgba(42, 16, 32, .35);
}

.faq-media-picker::backdrop {
    background: rgba(26, 9, 17, .72);
    backdrop-filter: blur(5px);
}

.faq-media-picker-panel {
    height: 100%;
    padding: 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.faq-media-picker-heading {
    position: relative;
    display: flex;
    margin-bottom: 24px;
    padding-right: 48px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.faq-media-picker-heading h2 {
    margin: 6px 0 8px;
    font: 400 36px/1.05 var(--serif);
}

.faq-media-picker-heading p:last-child {
    margin: 0;
    color: #75676d;
}

.faq-media-picker-heading .media-dialog-close {
    top: 0;
    right: 0;
}

.faq-media-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.faq-media-option {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .68);
}

.faq-media-option video {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #160b11;
}

.faq-media-option > div {
    display: grid;
    padding: 16px;
    gap: 8px;
}

.faq-media-option strong,
.faq-media-option small {
    overflow-wrap: anywhere;
}

.faq-media-option small {
    color: #75676d;
}

.faq-media-option .button {
    width: 100%;
    margin-top: 4px;
}

.faq-media-picker-empty {
    text-align: center;
}

@media (max-width: 720px) {
    .faq-search, .faq-grid { grid-template-columns: 1fr; }
    .faq-search .button { width: 100%; }
    .faq-card { padding: 21px; }
    .faq-media-picker-panel { padding: 24px 18px; }
    .faq-media-picker-grid { grid-template-columns: 1fr; }
    .faq-media-option video { height: 180px; }
}

.media-edit-preview {
    display: grid;
    margin-top: 20px;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 25px;
}

.media-edit-preview img {
    width: 170px;
    height: 170px;
    border-radius: 16px;
    object-fit: cover;
}

.media-edit-preview video {
    width: 170px;
    height: 170px;
    border-radius: 14px;
    object-fit: contain;
    background: #160b11;
}

.media-edit-preview h1 {
    margin: 5px 0 10px;
}

.media-edit-preview p:last-child {
    color: #75676d;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkbox-row {
    display: flex;
    margin: 18px 0;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.checkbox-row label {
    color: #5e4d54;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 960px) {
    :root {
        --shell: min(100% - 36px, 720px);
    }

    .hero {
        padding-top: 135px;
    }

    .hero-grid {
        padding-bottom: 70px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .hero-visual {
        width: 100%;
    }

    .home-tutorial-panel {
        grid-template-columns: 1fr;
    }

    .home-tutorial-copy {
        max-width: 680px;
    }

    .hero::after {
        display: none;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .section-heading .eyebrow {
        justify-content: center;
    }

    .universe-grid {
        grid-template-columns: 1fr 1fr;
    }

    .world-card-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .world-card-wide {
        grid-column: 1 / -1;
    }

    .atelier-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .community-panel {
        padding: 70px 50px;
        grid-template-columns: 1fr;
    }

    .community-copy {
        position: relative;
        z-index: 3;
        text-align: center;
    }

    .community-copy .eyebrow {
        justify-content: center;
    }

    .community-copy > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .community-cards {
        width: 400px;
        max-width: 100%;
        margin: 45px auto 0;
    }

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

    .account-art {
        min-height: 490px;
        padding: 135px 9vw 70px;
    }

    .account-form-wrap {
        padding: 80px 24px;
    }

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

    .settings-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 1050px) {
    .media-admin-layout {
        grid-template-columns: 1fr;
    }

    .media-upload-form {
        position: static;
    }
}

@media (max-width: 700px) {
    :root {
        --shell: calc(100% - 28px);
    }

    .header-inner {
        min-height: 72px;
        gap: 12px;
    }

    .header-cart {
        min-height: 42px;
        padding: 6px 9px;
    }

    .header-cart-copy {
        display: none;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 0 10px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
        border: 1px solid rgba(255, 255, 255, .25);
        border-radius: 50%;
        background: transparent;
    }

    .menu-toggle > span:not(.sr-only) {
        width: 19px;
        height: 1px;
        background: white;
    }

    .site-nav {
        position: absolute;
        top: 70px;
        right: 14px;
        left: 14px;
        display: none;
        padding: 25px;
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
        border: 1px solid rgba(255, 255, 255, .15);
        background: rgba(42, 16, 32, .98);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-logout {
        text-align: center;
    }

    .site-nav .nav-login {
        text-align: center;
    }

    .home-access {
        min-height: auto;
        padding: 118px 0 76px;
    }

    .home-access::after {
        display: none;
    }

    .home-access-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .home-access-copy h2 {
        font-size: clamp(44px, 13vw, 62px);
    }

    .home-access-copy > p:not(.eyebrow) {
        font-size: 14px;
    }

    .home-access-action {
        gap: 14px;
    }

    .home-access-action > span {
        display: none;
    }

    .home-access-action .button {
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: clamp(48px, 16vw, 67px);
    }

    .hero-intro {
        font-size: 14px;
    }

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

    .hero-proof {
        gap: 16px;
    }

    .hero-proof strong {
        font-size: 17px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .portrait-card {
        width: 84%;
    }

    .portrait-caption {
        right: -8px;
    }

    .handmade-seal {
        left: 2px;
        width: 88px;
        height: 88px;
    }

    .hero-ribbon {
        justify-content: flex-start;
    }

    .section {
        padding: 85px 0;
    }

    .universe-grid {
        grid-template-columns: 1fr;
    }

    .world-card-wide {
        grid-column: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .card-image {
        min-height: 340px;
    }

    .atelier-collage {
        min-height: 510px;
    }

    .collage-main {
        width: 88%;
        height: 420px;
    }

    .collage-small {
        width: 50%;
        height: 220px;
    }

    .collage-note {
        right: 0;
        width: 205px;
    }

    .community {
        padding-top: 0;
    }

    .community-panel {
        width: 100%;
        padding: 70px 24px;
    }

    .member-card {
        right: 15px;
        width: 215px;
        height: 310px;
    }

    .member-card-back {
        right: 75px;
    }

    .footer-inner {
        gap: 35px;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .flash-stack {
        top: 82px;
        right: 14px;
        width: calc(100% - 28px);
    }

    .account-art {
        min-height: 430px;
    }

    .account-art h1 {
        font-size: 49px;
    }

    .account-form-wrap {
        padding: 65px 20px;
    }

    .compact-form {
        padding: 30px 22px;
    }

    .profile-page,
    .settings-page,
    .admin-page {
        padding-top: 120px;
    }

    .profile-card {
        padding: 35px 24px;
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .profile-avatar {
        width: 150px;
        margin: 0 auto;
    }

    .profile-identity .eyebrow,
    .profile-actions {
        justify-content: center;
    }

    .settings-content,
    .admin-form {
        padding: 28px 20px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-search,
    .form-columns {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .media-filter {
        grid-template-columns: 1fr;
    }

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

    .media-dialog-panel {
        display: block;
        height: 100%;
        max-height: none;
        overflow-y: auto;
    }

    .media-dialog-preview {
        min-height: 260px;
        height: 38vh;
    }

    .media-dialog-preview img,
    .media-dialog-preview video {
        height: 100%;
        max-height: none;
    }

    .media-dialog-content {
        overflow: visible;
        padding: 30px 22px;
    }

    .media-edit-preview {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .media-edit-preview img,
    .media-edit-preview video {
        width: 100px;
        height: 100px;
    }

    .admin-hub-grid {
        grid-template-columns: 1fr;
    }

    .admin-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-columns,
    .profile-result {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer .footer-note {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

.legal-document { width: min(100%, 880px); gap: 0; line-height: 1.72; }
.legal-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-header h1 { margin: 8px 0 0; font: 500 clamp(2rem, 5vw, 3.35rem)/1.05 var(--serif); }
.legal-section { margin-top: 30px; }
.legal-section h2 { margin: 0 0 12px; color: var(--wine); font: 800 1.16rem/1.35 var(--sans); }
.legal-document p { margin: 0 0 14px; }
.legal-document ul { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 24px; }
.legal-document li::marker { color: var(--wine); }

.error-page {
    min-height: 70vh;
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
}

.error-page h1 {
    margin: 10px 0 16px;
}

.error-page p:not(.eyebrow) {
    margin: 0 auto 30px;
    max-width: 560px;
}

.link-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
}

.link-grid--rows { grid-template-columns: 1fr; }
.link-grid--rows .link-card { align-items: flex-start; display: grid; gap: 22px; grid-template-columns: 64px minmax(0, 1fr); }
.link-card__logo { align-items: center; background: #6b2948; border-radius: 16px; display: flex; height: 64px; justify-content: center; padding: 12px; width: 64px; }
.link-card--telegram .link-card__logo, .link-card--tiktok .link-card__logo, .link-card--privacy .link-card__logo, .link-card--onlyfans .link-card__logo { background: transparent; padding: 8px; }
.link-card__logo img { display: block; max-height: 100%; max-width: 100%; }
.link-card__body h2 { margin-bottom: 5px; }
.link-card__body { min-width: 0; }
.link-card__description { margin: 0 0 14px; max-width: 620px; }
.link-status { display: flex; flex-direction: column; gap: 3px; margin: 0 0 14px; }
.link-status strong { font-size: .74rem; letter-spacing: .14em; }
.unlink-confirmation { max-width: 620px; }
.unlink-confirmation > summary { display: inline-flex; list-style: none; }
.unlink-confirmation > summary::-webkit-details-marker { display: none; }
.unlink-confirmation__body { background: rgba(98, 38, 68, .06); border-radius: 14px; margin-top: 12px; padding: 16px; }
.unlink-confirmation__body p { margin-top: 0; }
.unlink-confirmation__body form { align-items: flex-start; flex-direction: column; }
.unlink-confirmation__body .check-field { align-items: flex-start; display: flex; gap: 9px; }
.unlink-confirmation__body .check-field span { min-width: 0; }
.unlink-confirmation__body .button { max-width: 100%; white-space: normal; }
.button-danger { background: #822b4b; color: #fff; }
.link-card__unavailable { color: #795f69; font-size: .9rem; }

.link-card,
.link-command {
    border: 1px solid rgba(113, 68, 88, .18);
    border-radius: 20px;
    padding: 24px;
}

.link-card h2 {
    margin-top: 0;
}

.link-card form,
.link-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.link-card input[type="text"] {
    min-width: 0;
    flex: 1;
}

.link-card .manual-link-form {
    align-items: stretch;
    flex-direction: column;
}

.manual-link-form input[type="text"] {
    width: 100%;
    min-height: 62px;
    padding: 15px 18px;
    border: 1px solid rgba(98, 31, 61, .35);
    border-radius: 12px;
    background: #fff;
    font-size: 1.05rem;
    letter-spacing: .04em;
}

.manual-link-form .button {
    width: 100%;
}

.link-ok {
    color: #34745a;
}

.link-wait {
    color: #795f69;
}

.link-command {
    background: rgba(98, 38, 68, .06);
    margin-top: 24px;
}

.link-command button {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 0 0;
    width: 100%;
}

.link-command code {
    font-size: 1.05rem;
}

.profile-identities {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.profile-identities > a,
.profile-identities > div {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    text-decoration: none;
}

.profile-panel:not(.profile-panel-dark) .profile-identities > a,
.profile-panel:not(.profile-panel-dark) .profile-identities > div {
    border-color: rgba(113, 68, 88, .18);
}

@media (max-width: 760px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
    .link-grid--rows .link-card { gap: 15px; grid-template-columns: 48px minmax(0, 1fr); padding: 19px; }
    .link-card__logo { border-radius: 12px; height: 48px; padding: 9px; width: 48px; }
    .manual-link-form .button, .link-card__body > .button, .unlink-confirmation__body .button { width: 100%; }
}

.wallet-hero {
    align-items: center;
    background: linear-gradient(135deg, #321322, #743653);
    border-radius: 26px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 34px;
}

.wallet-hero h1 {
    margin: 6px 0;
}

.wallet-credit {
    color: #2f7b58;
    font-weight: 700;
}

.wallet-debit {
    color: #a23855;
    font-weight: 700;
}

.store-page {
    min-height: 70vh;
    padding: 150px 0 100px;
}

.product-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 38px;
}

.product-card {
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 22px;
    overflow: hidden;
}

.product-card > a {
    color: inherit;
    display: block;
    padding: 20px;
    text-decoration: none;
}

.product-card img,
.product-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    margin-bottom: 18px;
    object-fit: cover;
    width: 100%;
}

.product-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #edd9e3, #b77a98);
    color: #fff;
    display: flex;
    font-size: 4rem;
    justify-content: center;
}

.product-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.product-prices strong {
    color: var(--wine);
    font-size: 1.18rem;
}

.payment-unavailable {
    color: #806f76;
    font-size: .86rem;
}

.product-detail {
    max-width: 780px;
}

.product-detail-image {
    display: block;
    width: min(620px, 100%);
    max-height: 520px;
    margin: 28px 0;
    border-radius: 22px;
    object-fit: cover;
}

.payment-qr {
    display: block;
    width: min(320px, 100%);
    height: auto;
    margin: 26px auto;
    padding: 10px;
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 18px;
    background: white;
    box-shadow: 0 18px 45px rgba(54, 29, 40, .1);
}

@media (max-width: 850px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .wallet-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .payment-qr {
        width: min(280px, 100%);
        padding: 8px;
        border-radius: 14px;
    }
}

.feed-page {
    min-height: 75vh;
    padding: 150px 0 100px;
}

.feed-layout {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
}

.feed-compose,
.feed-post,
.profile-wall {
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 22px;
    padding: 24px;
}

.feed-list {
    display: grid;
    gap: 16px;
}

.feed-post-content {
    margin: 16px 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.feed-post-content--rich {
    white-space: normal;
}

.feed-post-content--rich > :first-child {
    margin-top: 0;
}

.feed-post-content--rich > :last-child {
    margin-bottom: 0;
}

.feed-post-content--rich h2,
.feed-post-content--rich h3 {
    color: var(--wine);
    line-height: 1.2;
    margin: 1.1em 0 .5em;
}

.feed-post-content--rich ul,
.feed-post-content--rich ol {
    padding-left: 1.5rem;
}

.feed-post-content--rich pre {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(42, 16, 32, .07);
    padding: 14px;
}

.feed-rich-compose {
    margin: 18px 0;
}

.feed-format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 12px;
}

.feed-format-toolbar[hidden] {
    display: none;
}

.feed-format-toolbar button {
    border: 1px solid rgba(113, 68, 88, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--wine);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    padding: 7px 12px;
}

.feed-format-toolbar button:hover,
.feed-format-toolbar button:focus-visible {
    border-color: var(--wine);
    background: rgba(113, 68, 88, .07);
}

.feed-media-compose {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid rgba(113, 68, 88, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(98, 31, 61, .06), rgba(201, 135, 88, .1));
}

.feed-media-compose h2 {
    margin: 4px 0 18px;
    color: var(--wine);
    font: 400 30px/1 var(--serif);
}

.feed-media-divider {
    display: flex;
    margin: 10px 0 16px;
    align-items: center;
    gap: 10px;
    color: #8b747e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feed-media-divider::before,
.feed-media-divider::after {
    height: 1px;
    flex: 1;
    background: rgba(113, 68, 88, .18);
    content: "";
}

.feed-media {
    overflow: hidden;
    margin: 18px -8px 8px;
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 18px;
    background: #160b11;
}

.feed-media img,
.feed-media video {
    display: block;
    width: 100%;
    max-height: min(72vh, 720px);
    object-fit: contain;
}

.feed-media img {
    background: #f0e4dc;
}

.feed-media video {
    background: #160b11;
}

.feed-post blockquote .feed-media {
    margin: 14px 0 4px;
    border-radius: 13px;
}

.feed-post header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feed-post time {
    color: #79636d;
    margin-left: auto;
}

.feed-post form button {
    background: transparent;
    border: 0;
    color: #8b355b;
    cursor: pointer;
    font-size: 1rem;
}

.event-preview {
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 14px;
    display: grid;
    gap: 4px;
    margin: 16px 0;
    padding: 14px;
    text-decoration: none;
}

.event-preview img,
.event-hero {
    border-radius: 16px;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.event-links,
.ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.event-access-panel {
    display: grid;
    margin: 34px 0 24px;
    padding: 34px;
    gap: 14px;
    border: 1px solid rgba(113, 68, 88, .18);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(98, 31, 61, .08), rgba(201, 135, 88, .14));
}

.event-access-panel h2 {
    margin: 0;
    color: var(--wine);
    font: 400 clamp(38px, 5vw, 58px)/.95 var(--serif);
}

.event-access-panel p {
    max-width: 540px;
    margin: 0;
    color: #6f5d65;
}

.event-main-action {
    width: min(100%, 430px);
    min-height: 76px;
    margin-top: 8px;
    font-size: 14px;
}

.event-access-panel-buy {
    background: linear-gradient(135deg, rgba(201, 135, 88, .2), rgba(98, 31, 61, .08));
}

.ranking-tabs {
    width: fit-content;
    padding: 5px;
    border: 1px solid rgba(113, 68, 88, .18);
    border-radius: 999px;
    background: rgba(98, 31, 61, .06);
}

.ranking-tabs a {
    min-width: 170px;
    padding: 12px 20px;
    border-radius: 999px;
    color: #735d66;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.ranking-tabs a.active {
    color: #fff;
    background: var(--wine);
    box-shadow: 0 8px 20px rgba(98, 31, 61, .2);
}

.taticoin-balance {
    display: flex;
    margin: auto 0 14px;
    align-items: baseline;
    gap: 9px;
    color: #f2c14e !important;
    font: 700 clamp(2.2rem, 4vw, 3.6rem)/1 var(--serif) !important;
    letter-spacing: -.04em !important;
    text-transform: none !important;
}

.taticoin-balance span {
    color: #fff;
    font: 700 .95rem/1 var(--sans);
    letter-spacing: .04em;
}

.community-register {
    min-height: 62px;
    padding-inline: 34px;
    font-size: 13px;
}

/* Legibilidade: os textos auxiliares anteriores eram pequenos demais. */
.brand-copy small,
.eyebrow,
.form-kicker,
.profile-panel > span,
.settings-nav p,
.admin-table th {
    font-size: 10px;
}

.site-nav a,
.nav-logout button,
.button,
.text-link,
.form-field > label,
.form-field small,
.form-inline,
.form-switch,
.form-minor-links,
.settings-nav a,
.profile-panel p,
.admin-table td,
.table-actions a,
.table-actions button {
    font-size: 13px;
}

.form-intro {
    font-size: 15px;
}

@media (max-width: 1050px) and (min-width: 701px) {
    .menu-toggle {
        display: flex;
        width: 46px;
        height: 46px;
        padding: 0 10px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
        border: 1px solid rgba(255, 255, 255, .25);
        border-radius: 50%;
        background: transparent;
    }

    .menu-toggle > span:not(.sr-only) {
        width: 20px;
        height: 1px;
        background: white;
    }

    .site-nav {
        position: absolute;
        top: 82px;
        right: 24px;
        display: none;
        width: min(340px, calc(100vw - 48px));
        max-height: calc(100vh - 105px);
        overflow-y: auto;
        padding: 25px;
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        border: 1px solid rgba(255, 255, 255, .15);
        background: rgba(42, 16, 32, .98);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a,
    .nav-logout {
        text-align: center;
    }
}

.ranking-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.ranking-row {
    align-items: center;
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 15px;
    color: inherit;
    display: grid;
    gap: 14px;
    grid-template-columns: 55px minmax(140px, 1fr) minmax(120px, .7fr) auto;
    padding: 16px 20px;
    text-decoration: none;
}

.ranking-1 {
    background: linear-gradient(100deg, rgba(200, 158, 64, .18), transparent);
    border-color: rgba(168, 126, 34, .4);
}

.ranking-position {
    color: #8b6230;
    font-size: 1.5rem;
    font-weight: 800;
}

.profile-wall {
    margin-top: 28px;
}

.feed-actions,
.profile-stats,
.pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.profile-actions form,
.feed-actions form {
    margin: 0;
}

.profile-stats {
    margin: 18px 0;
}

.profile-stats span {
    color: #735d66;
}

.feed-post blockquote {
    border-left: 3px solid var(--wine);
    margin: 14px 0;
    padding: 8px 16px;
}

.content-rating {
    background: var(--wine);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
}

.feed-product img {
    border-radius: 14px;
    max-height: 280px;
    object-fit: cover;
    width: 100%;
}

.activity-list {
    border-top: 1px solid rgba(113, 68, 88, .16);
    margin-top: 28px;
    padding-top: 20px;
}

.activity-list p {
    display: flex;
    justify-content: space-between;
}

.people-search {
    margin-bottom: 28px;
    max-width: 760px;
}

.people-search div {
    display: flex;
    gap: 10px;
}

.people-search input {
    border: 1px solid rgba(113, 68, 88, .22);
    border-radius: 12px;
    flex: 1;
    padding: 13px;
}

.people-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.person-card {
    border: 1px solid rgba(113, 68, 88, .16);
    border-radius: 18px;
    padding: 20px;
}

.person-card a {
    display: grid;
    text-decoration: none;
}

.person-card form button,
.pagination a {
    color: var(--wine);
    font-weight: 750;
}

.pagination {
    justify-content: center;
    margin-top: 26px;
}

@media (max-width: 760px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }

    .event-access-panel {
        padding: 26px 20px;
    }

    .event-main-action {
        width: 100%;
    }

    .ranking-row {
        grid-template-columns: 45px 1fr auto;
    }

    .ranking-row small {
        display: none;
    }

    .ranking-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .ranking-tabs a {
        min-width: 0;
        padding-inline: 8px;
        font-size: 12px;
    }
}

/* Navegação enxuta e configurável */
.site-nav {
    gap: 22px;
}

.nav-popover {
    position: relative;
}

.nav-popover-trigger {
    padding: 10px 0;
    border: 0;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    font: 650 12px/1 var(--sans);
    letter-spacing: .1em;
    cursor: pointer;
    text-transform: uppercase;
}

.nav-popover-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 40;
    display: none;
    min-width: 205px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(42, 16, 32, .98);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
}

.nav-popover.is-open .nav-popover-panel {
    display: grid;
}

.nav-popover-panel a {
    display: flex;
    padding: 11px 12px;
    align-items: center;
    gap: 9px;
    border-radius: 9px;
}

.nav-popover-panel a:hover,
.nav-popover-panel a:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, .1);
}

.context-menu {
    position: fixed;
    z-index: 500;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 15px;
    background: rgba(42, 16, 32, .98);
    box-shadow: 0 22px 60px rgba(18, 5, 12, .35);
}

.context-menu[hidden] {
    display: none;
}

.context-menu a {
    display: flex;
    min-height: 42px;
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
}

.context-menu a:hover,
.context-menu a:focus-visible {
    outline: none;
    background: rgba(201, 135, 88, .2);
}

/* Perfil compacto: dados da conta existem apenas no contexto do titular. */
.profile-card.profile-card-compact {
    display: grid;
    min-height: 250px;
    padding: 30px;
    grid-template-columns: minmax(380px, 1.25fr) minmax(330px, 1fr) minmax(140px, .42fr);
    align-items: stretch;
    gap: 28px;
    border-radius: 24px;
}

.profile-card.profile-card-public {
    grid-template-columns: minmax(250px, .8fr) minmax(380px, 1.7fr);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-card-compact .profile-avatar {
    width: 224px;
    flex: 0 0 224px;
    font-size: 100px;
}

.profile-card-compact .profile-identity h1 {
    font-size: clamp(34px, 4vw, 52px);
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #715e67;
    font-size: 12px;
}

.profile-center {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.profile-private-menu {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-private-menu > a,
.profile-private-menu > form button {
    display: inline-flex;
    min-height: 37px;
    padding: 8px 12px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(92, 45, 66, .16);
    border-radius: 999px;
    color: var(--wine-deep);
    background: rgba(255, 255, 255, .42);
    font: 650 11px/1.1 var(--sans);
    text-decoration: none;
}

.profile-private-menu > a:hover,
.profile-private-menu > a:focus-visible,
.profile-private-menu > form button:hover,
.profile-private-menu > form button:focus-visible {
    border-color: var(--copper);
    background: #fff;
}

.profile-private-menu > a small {
    opacity: .65;
}

.profile-private-menu > form {
    margin: 0;
}

.profile-private-menu > form button {
    cursor: pointer;
}

.profile-private-menu > a.profile-menu-highlight {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(70, 24, 45, .18);
}

.profile-private-menu > a.profile-menu-store {
    background: #d77e3f;
}

.profile-private-menu > a.profile-menu-admin {
    background: #8d2456;
}

.profile-private-menu > a.profile-menu-highlight:hover,
.profile-private-menu > a.profile-menu-highlight:focus-visible {
    color: #fff;
    background: var(--wine-deep);
}

.notification-badge {
    display: grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border-radius: 99px;
    color: #fff;
    background: var(--rose);
}

.profile-subscriptions {
    padding-left: 24px;
    border-left: 1px solid rgba(92, 45, 66, .14);
}

.profile-subscriptions > p {
    margin: 3px 0 16px;
    color: #735f68;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.subscription-orbits {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 18px;
}

.subscription-orbit {
    position: relative;
    display: grid;
    width: 128px;
    color: #5b3a49;
    text-align: center;
    text-decoration: none;
}

.subscription-orbit > strong,
.subscription-orbit > img {
    display: grid;
    width: 112px;
    height: 112px;
    margin: 0 auto 7px;
    place-items: center;
    border: 4px solid color-mix(in srgb, var(--platform-color), white 58%);
    border-radius: 50%;
    color: #fff;
    background: var(--platform-color);
    object-fit: cover;
}

.subscription-orbit.state-active > strong,
.subscription-orbit.state-active > img {
    box-shadow: 0 0 0 3px rgba(69, 142, 91, .2);
}

.subscription-orbit.state-expired,
.subscription-orbit.state-unavailable,
.subscription-orbit.state-inactive {
    opacity: .58;
    filter: grayscale(.78);
}

.subscription-orbit.state-expired-recent {
    animation: subscription-alert 1.35s ease-in-out infinite alternate;
}

.subscription-orbit.state-expired-recent > strong,
.subscription-orbit.state-expired-recent > img,
.subscription-orbit.state-expired > strong,
.subscription-orbit.state-expired > img {
    filter: grayscale(.78);
}

.subscription-warning {
    position: absolute;
    top: 88px;
    right: 0;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #f7eee4;
    border-radius: 50%;
    color: #2a1020;
    background: #f4bd3e;
    font: 800 12px/1 var(--sans);
}

@keyframes subscription-alert {
    from { opacity: .45; }
    to { opacity: 1; }
}

.subscription-orbit span {
    font-size: 11px;
    font-weight: 750;
}

.subscription-orbit small {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.25;
}

.profile-community-feed {
    margin-top: 28px;
}

.profile-community-feed > .feed-list {
    max-width: 860px;
}

.profile-feed-heading {
    display: flex;
    max-width: 860px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-feed-heading h2 {
    margin: 0;
    font: 400 36px/1 var(--serif);
}

.admin-config-section {
    margin-top: 38px;
}

.admin-config-section .admin-heading {
    margin-bottom: 12px;
}

@media (max-width: 1080px) {
    .profile-card.profile-card-compact,
    .profile-card.profile-card-public {
        grid-template-columns: 1fr 1.4fr;
    }

    .profile-subscriptions {
        padding: 22px 0 0;
        grid-column: 1 / -1;
        border-top: 1px solid rgba(92, 45, 66, .14);
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .profile-card.profile-card-compact,
    .profile-card.profile-card-public {
        grid-template-columns: 1fr;
    }

    .profile-subscriptions {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .nav-popover,
    .nav-popover-trigger {
        width: 100%;
        text-align: center;
    }

    .nav-popover-panel {
        position: static;
        margin-top: 8px;
        background: rgba(255, 255, 255, .06);
        box-shadow: none;
    }

    .profile-card.profile-card-compact,
    .profile-card.profile-card-public {
        padding: 22px;
        grid-template-columns: 1fr;
    }

    .profile-summary {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .profile-card-compact .profile-avatar {
        width: 164px;
        flex-basis: 164px;
        font-size: 76px;
    }

    .profile-subscriptions {
        grid-column: auto;
    }

    .profile-feed-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-tutorial {
        padding: 62px 0 72px;
    }

    .home-tutorial-video-frame {
        border-width: 5px;
        border-radius: 20px;
        transform: none;
    }

    .home-tutorial-video-tag {
        right: 8px;
    }

    .homepage-tutorial-admin-preview {
        grid-template-columns: 1fr;
    }

    .homepage-tutorial-admin-preview video {
        width: 100%;
        height: auto;
        max-height: 260px;
    }
}

@media (pointer: coarse) {
    .context-menu {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subscription-orbit.state-expired-recent {
        animation: none;
        opacity: .7;
    }
}
