html {
    min-height: 100%;
}

:root {
    --artist-container-max: 1440px;
    --artist-container-gutter: 2rem;
    --artist-page-block-start: 1rem;
    --artist-page-block-end: 3rem;
    --artist-layout-gap: 1.5rem;
    --artist-stack-gap: 1.5rem;
    --artist-card-radius: 1.5rem;
    --artist-card-padding: 1.35rem;
    --artist-card-padding-lg: clamp(1.75rem, 3vw, 2.75rem);
    --artist-rail-width: minmax(250px, 310px);
    --artist-card-shadow: 0 22px 48px rgba(73, 48, 34, 0.08);
    --artist-card-border: 1px solid rgba(102, 70, 54, 0.12);
    --artist-control-radius: 1rem;
    --artist-surface-radius: 1.2rem;
    --artist-readable-inline-padding: clamp(0.45rem, 1.5vw, 1rem);
    --artist-btn-primary-bg: linear-gradient(135deg, #b36f50, #84503b);
    --artist-btn-primary-text: #fffaf6;
    --artist-btn-outline-bg: rgba(255, 250, 245, 0.92);
    --artist-btn-outline-text: #5d4539;
    --artist-btn-outline-border: rgba(124, 88, 66, 0.22);
    --artist-btn-danger-bg: linear-gradient(135deg, #bc5a47, #944133);
}

body {
    margin: 0;
}

a {
    color: inherit;
}

.artist-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #221c19;
    background:
        radial-gradient(circle at top left, rgba(205, 121, 77, 0.18), transparent 26rem),
        linear-gradient(180deg, #f8efe6 0%, #f6f1eb 32%, #f5f3ef 100%);
}

.artist-background {
    position: fixed;
    width: 28rem;
    height: 28rem;
    pointer-events: none;
    filter: blur(18px);
    opacity: 0.55;
    z-index: 0;
}

.artist-background--rose {
    top: -8rem;
    left: -7rem;
    background: radial-gradient(circle, rgba(177, 99, 84, 0.34), transparent 66%);
}

.artist-background--gold {
    right: -8rem;
    bottom: -9rem;
    background: radial-gradient(circle, rgba(209, 162, 93, 0.26), transparent 64%);
}

.tn-page-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
    padding: var(--artist-page-block-start) 0 var(--artist-page-block-end);
}

.artist-shell .bui-container {
    width: min(100% - var(--artist-container-gutter), var(--artist-container-max));
    margin-inline: auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--artist-layout-gap);
    align-items: start;
}

.tn-layout-shell {
    grid-template-columns: minmax(0, 1fr);
}

.blog-layout.has-right-rail,
.tn-layout-shell.has-right-rail {
    grid-template-columns: minmax(0, 1fr) var(--artist-rail-width);
}

.blog-sidebar {
    grid-column: 1 / -1;
    position: sticky;
    top: 0.85rem;
    z-index: 20;
}

.right-sidebar {
    position: sticky;
    top: 6.8rem;
    z-index: 2;
}

.blog-content {
    min-width: 0;
    display: grid;
    gap: var(--artist-stack-gap);
    align-content: start;
}

.right-sidebar[hidden] {
    display: none !important;
}

.tn-right-rail[hidden] {
    display: none !important;
}

.tn-right-rail-body {
    display: grid;
    gap: var(--bui-space-md);
}

.tn-sidepanel-card {
    border: 1px solid rgba(111, 80, 61, 0.14);
    border-radius: var(--artist-surface-radius);
    background: rgba(255, 252, 248, 0.84);
    backdrop-filter: blur(18px);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    box-shadow: 0 18px 42px rgba(66, 40, 28, 0.08);
}

.tn-sidepanel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.artist-hero,
.artist-section,
.artist-collection-head,
.artist-note,
.artist-studio-card {
    border: var(--artist-card-border);
    border-radius: var(--artist-card-radius);
    background: rgba(255, 251, 247, 0.88);
    box-shadow: var(--artist-card-shadow);
    backdrop-filter: blur(14px);
}

.artist-hero {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    padding: clamp(1.15rem, 2.2vw, 1.75rem);
    overflow: hidden;
    position: relative;
}

.artist-hero > * {
    position: relative;
    z-index: 1;
}

.artist-hero--with-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 251, 247, 0.92) 38%, rgba(255, 251, 247, 0.52) 100%),
        var(--artist-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.98;
}

.artist-hero::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 11rem;
    height: 11rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(208, 164, 112, 0.28), transparent 68%);
}

.artist-hero__eyebrow,
.artist-section__kicker,
.artist-post-card__meta,
.artist-note__meta,
.artist-collection-head__meta {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: #90654d;
}

.artist-hero__title,
.artist-section__title,
.artist-note__title {
    margin: 0.35rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0.96;
    color: #2e1f1a;
}

.artist-hero__title {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.9;
    max-width: none;
    white-space: nowrap;
}

.artist-hero__text {
    max-width: 36rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.58;
    color: #655249;
}

.artist-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.artist-section {
    padding: var(--artist-card-padding);
}

.artist-section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.artist-section__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.artist-section__link,
.artist-post-card__link,
.artist-note__backlink {
    color: #8b5e44;
    text-decoration: none;
    font-weight: 700;
}

.artist-section__link:hover,
.artist-post-card__link:hover,
.artist-note__backlink:hover {
    color: #5f3a28;
}

.artist-shell .bui-btn {
    border-radius: var(--artist-control-radius);
    border-color: transparent;
    box-shadow: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.artist-shell .bui-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(58, 35, 25, 0.12);
}

.artist-shell .bui-btn-primary {
    background: var(--artist-btn-primary-bg);
    color: var(--artist-btn-primary-text);
    border-color: transparent;
}

.artist-shell .bui-btn-primary:hover,
.artist-shell .bui-btn-primary:focus-visible {
    background: linear-gradient(135deg, #9e6247, #744532);
    color: var(--artist-btn-primary-text);
}

.artist-shell .bui-btn-outline,
.artist-shell .bui-btn-secondary {
    background: var(--artist-btn-outline-bg);
    color: var(--artist-btn-outline-text);
    border: 1px solid var(--artist-btn-outline-border);
}

.artist-shell .bui-btn-outline:hover,
.artist-shell .bui-btn-outline:focus-visible,
.artist-shell .bui-btn-secondary:hover,
.artist-shell .bui-btn-secondary:focus-visible {
    background: rgba(255, 253, 249, 1);
    color: #3f2f28;
    border-color: rgba(124, 88, 66, 0.34);
}

.artist-shell .bui-btn-danger {
    background: var(--artist-btn-danger-bg);
    color: #fff7f5;
    border-color: transparent;
}

.artist-shell .bui-input,
.artist-shell textarea.bui-input,
.artist-shell select.bui-input,
.artist-shell input[type="file"] {
    border-radius: var(--artist-control-radius);
    border-color: rgba(124, 88, 66, 0.18);
    background: rgba(255, 252, 248, 0.95);
    color: #2f221c;
}

.artist-shell .bui-input:focus,
.artist-shell textarea.bui-input:focus,
.artist-shell select.bui-input:focus {
    border-color: rgba(159, 112, 78, 0.44);
    box-shadow: 0 0 0 3px rgba(179, 111, 80, 0.12);
}

.artist-statement {
    color: #47362e;
}

.artist-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--artist-layout-gap);
}

.artist-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--artist-layout-gap);
}

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

.artist-post-card {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(107, 74, 58, 0.12);
    background: rgba(255, 252, 249, 0.92);
}

.artist-post-card__media {
    display: block;
    aspect-ratio: 16 / 11;
    background:
        linear-gradient(135deg, rgba(176, 111, 87, 0.18), rgba(221, 189, 152, 0.22)),
        #eadccf;
    overflow: hidden;
    text-decoration: none;
}

.artist-section-card {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(107, 74, 58, 0.12);
    background: rgba(255, 252, 249, 0.92);
}

.artist-section-card__media {
    display: block;
    aspect-ratio: 5 / 4;
    background:
        linear-gradient(135deg, rgba(176, 111, 87, 0.18), rgba(221, 189, 152, 0.22)),
        #eadccf;
    overflow: hidden;
    text-decoration: none;
}

.artist-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-section-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-post-card__media span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.6rem);
    color: rgba(96, 56, 39, 0.82);
}

.artist-section-card__media span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.4rem);
    color: rgba(96, 56, 39, 0.82);
}

.artist-post-card__body {
    padding: 1.05rem 1.05rem 1.15rem;
}

.artist-section-card__body {
    padding: 1.05rem 1.05rem 1.15rem;
}

.artist-post-card__title {
    margin: 0.35rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.artist-post-card__title a {
    text-decoration: none;
}

.artist-post-card__summary {
    margin: 0.7rem 0 0;
    color: #625147;
    line-height: 1.65;
}

.artist-post-chip,
.artist-note__section {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin-top: 0.65rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(150, 109, 82, 0.18);
    background: rgba(214, 179, 144, 0.12);
    color: #765541;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.artist-post-chip:hover,
.artist-note__section:hover {
    color: #4f3428;
    border-color: rgba(150, 109, 82, 0.28);
    background: rgba(214, 179, 144, 0.18);
}

.artist-collection-head {
    padding: var(--artist-card-padding);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.artist-collection-head__text {
    margin: 0.7rem 0 0;
    color: #625147;
    line-height: 1.7;
    max-width: 38rem;
}

.artist-collection-inline {
    display: grid;
    gap: 0.7rem;
    padding: 0.2rem 0 0.95rem;
    border-bottom: 1px solid rgba(124, 88, 66, 0.14);
}

.artist-collection-inline__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.artist-collection-inline__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.artist-collection-inline__title {
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    margin: 0;
}

.artist-collection-inline__text {
    margin: 0;
    color: #625147;
    line-height: 1.72;
    max-width: 44rem;
}

.artist-pagination {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.artist-note__backlink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.artist-note__meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.artist-note__title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-top: 0.7rem;
    max-width: 14ch;
    letter-spacing: -0.035em;
    line-height: 0.92;
    text-wrap: balance;
}

.artist-note__summary {
    margin: 0.9rem 0 0;
    color: #655148;
    font-size: 1.12rem;
    line-height: 1.82;
    max-width: 40rem;
    text-wrap: pretty;
}

.artist-note {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
    padding: clamp(1.35rem, 3vw, 2.8rem);
}

.artist-featured-image {
    margin: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(111, 80, 61, 0.12);
    background:
        linear-gradient(135deg, rgba(176, 111, 87, 0.18), rgba(221, 189, 152, 0.22)),
        #eadccf;
}

.artist-featured-image img {
    display: block;
    width: 100%;
    height: clamp(16rem, 42vw, 32rem);
    object-fit: cover;
}

.tn-note-header {
    position: relative;
    width: min(100%, 44rem);
    margin-inline: auto;
}

.tn-note-head-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: var(--bui-space-xs);
    flex-wrap: wrap;
}

.tn-note-menu {
    position: relative;
}

.tn-note-menu-trigger {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(124, 88, 66, 0.18);
    border-radius: 999px;
    background: rgba(255, 249, 244, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.tn-note-menu-trigger span {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #6a5347;
}

.tn-note-menu-popover {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 260px;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(124, 88, 66, 0.18);
    border-radius: 1rem;
    background: rgba(255, 252, 249, 0.96);
    box-shadow: 0 20px 42px rgba(48, 31, 22, 0.12);
    z-index: 10;
}

.tn-note-menu-item {
    font-size: var(--bui-font-size-sm);
    color: #6f594f;
    margin-bottom: 0.35rem;
}

.tn-note-menu-item:last-child {
    margin-bottom: 0;
}

.tn-note-menu-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.4rem;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    background: rgba(214, 179, 144, 0.18);
    color: #4a3328;
    text-decoration: none;
    font-size: var(--bui-font-size-sm);
    font-weight: 600;
}

.tn-note-menu-action:hover {
    background: rgba(214, 179, 144, 0.28);
}

.tn-overlay-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
}

.tn-overlay-dialog[open] {
    display: grid;
    place-items: center;
}

.tn-overlay-dialog::backdrop {
    background: rgba(38, 24, 18, 0.42);
    backdrop-filter: blur(6px);
}

.tn-overlay-dialog__sheet {
    width: min(1080px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 0;
    border: 1px solid rgba(111, 80, 61, 0.12);
    border-radius: var(--artist-card-radius, 1.5rem);
    background: rgba(255, 251, 247, 0.98);
    box-shadow: 0 24px 60px rgba(48, 31, 22, 0.2);
    padding: 1.1rem;
    display: grid;
    gap: 1rem;
}

.tn-overlay-dialog__sheet--compact {
    width: min(760px, calc(100vw - 2rem));
}

.tn-overlay-dialog__head,
.tn-overlay-dialog__actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tn-overlay-dialog__body {
    display: grid;
    gap: 1rem;
}

.tn-note-lightbox__sheet {
    width: min(1280px, calc(100vw - 1rem));
    padding: 1rem;
    background: rgba(18, 12, 9, 0.96);
    color: #f7efe8;
}

.tn-note-lightbox__sheet .artist-section__kicker,
.tn-note-lightbox__sheet .bui-text-secondary {
    color: rgba(247, 239, 232, 0.74);
}

.tn-note-lightbox__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.tn-note-lightbox__frame {
    margin: 0;
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.tn-note-lightbox__image {
    width: 100%;
    max-height: calc(100vh - 13rem);
    object-fit: contain;
    display: block;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
}

.tn-note-lightbox__caption {
    text-align: center;
    color: rgba(247, 239, 232, 0.82);
}

.tn-note-lightbox__nav {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.tn-note-lightbox__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.tn-note-lightbox-trigger {
    cursor: zoom-in;
}

.tn-note-rendered {
    width: 100%;
    padding-inline: 0;
    line-height: 1.9;
    color: #3f312b;
    word-break: break-word;
}

.tn-note-rendered > * {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.tn-note-rendered > .tn-note-gallery,
.tn-note-rendered > .tn-note-image {
    width: min(100%, 54rem);
    max-width: 54rem;
}

.tn-note-rendered h1,
.tn-note-rendered h2,
.tn-note-rendered h3,
.tn-note-rendered h4,
.tn-note-rendered h5,
.tn-note-rendered h6 {
    margin-top: 1.15rem;
    margin-bottom: 0.6rem;
    font-family: Georgia, "Times New Roman", serif;
    color: #2d211c;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.tn-note-rendered p,
.tn-note-rendered ul,
.tn-note-rendered ol,
.tn-note-rendered blockquote,
.tn-note-rendered pre {
    margin-top: 0;
    margin-bottom: 1rem;
}

.tn-note-rendered p,
.tn-note-rendered li,
.tn-note-rendered blockquote {
    font-size: 1.06rem;
    line-height: 1.95;
    text-wrap: pretty;
}

.tn-note-rendered ul,
.tn-note-rendered ol {
    padding-left: 1.4rem;
}

.tn-note-rendered pre,
.tn-note-json {
    padding: 0.85rem;
    border: 1px solid rgba(124, 88, 66, 0.14);
    border-radius: var(--artist-control-radius);
    background: rgba(252, 247, 242, 0.9);
    overflow-x: auto;
}

.tn-note-image,
.tn-note-gallery,
.tn-note-gallery__item,
.tn-note-rendered .tn-note-inline-image {
    max-width: 100%;
}

.tn-note-image img,
.tn-note-gallery__item img,
.tn-note-rendered .tn-note-inline-image {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 34px rgba(42, 24, 15, 0.12);
}

.tn-note-image figcaption,
.tn-note-gallery__item figcaption {
    margin-top: 0.4rem;
    text-align: center;
    color: #7a6357;
    font-size: var(--bui-font-size-sm);
    line-height: 1.55;
}

.tn-note-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: start;
}

.tn-note-gallery--single {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 44rem);
    max-width: 44rem;
}

.tn-note-gallery__item {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

@media (max-width: 720px) {
    .tn-note-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tn-note-submenu-card {
    gap: 0.8rem;
}

.tn-note-submenu-nav {
    display: grid;
    gap: 0.35rem;
}

.tn-note-submenu-link {
    display: block;
    text-decoration: none;
    padding: 0.45rem 0.55rem;
    border-radius: var(--artist-control-radius);
    color: #6f594f;
    background: rgba(255, 248, 241, 0.92);
    border: 1px solid transparent;
    transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.tn-note-submenu-link:hover {
    color: #3d2d26;
    border-color: rgba(150, 109, 82, 0.28);
    background: rgba(255, 251, 246, 1);
}

.tn-auth-page {
    max-width: 920px;
}

.tn-auth-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--bui-space-lg);
}

.tn-auth-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.tn-auth-card {
    min-height: 100%;
}

.tn-auth-form .bui-btn {
    margin-top: var(--bui-space-sm);
}

.tn-page-head-card .bui-card-body {
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
}

.tn-page-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tn-page-head-copy {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    min-width: 0;
    flex-wrap: wrap;
}

.tn-page-head-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.05;
    font-weight: 700;
}

.tn-page-head-summary {
    margin: 0;
    color: #6f5c51;
    font-size: var(--bui-font-size-sm);
    line-height: 1.45;
}

.tn-page-head-actions {
    display: flex;
    gap: var(--bui-space-sm);
    flex-wrap: wrap;
}

.tn-studio-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--artist-layout-gap);
}

.tn-studio-action-card {
    padding: var(--artist-card-padding);
    display: grid;
    gap: 0.75rem;
}

.tn-studio-action-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tn-studio-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tn-studio-page {
    display: grid;
    gap: var(--artist-layout-gap);
}

.tn-studio-workspace {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.tn-studio-workspace--single {
    grid-template-columns: minmax(0, 1fr);
}

.tn-studio-tree-panel,
.tn-studio-explorer-panel {
    border: 1px solid rgba(111, 80, 61, 0.12);
    border-radius: var(--artist-surface-radius);
    background: rgba(255, 252, 249, 0.82);
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

.tn-studio-explorer-panel {
    position: relative;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.tn-studio-explorer-panel.is-media-context {
    border-color: rgba(114, 134, 112, 0.22);
}

.tn-studio-explorer-panel.is-drop-target {
    border-color: rgba(104, 138, 110, 0.42);
    background: rgba(245, 249, 243, 0.92);
    box-shadow: inset 0 0 0 2px rgba(131, 168, 136, 0.18);
}

.tn-studio-explorer-panel.is-uploading::before,
.tn-studio-explorer-panel.is-uploading::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.tn-studio-explorer-panel.is-uploading::before {
    inset: 0;
    border-radius: var(--artist-surface-radius);
    background: rgba(255, 251, 247, 0.62);
    backdrop-filter: blur(3px);
}

.tn-studio-explorer-panel.is-uploading::after {
    top: 50%;
    left: 50%;
    width: 2.35rem;
    height: 2.35rem;
    margin: -1.175rem 0 0 -1.175rem;
    border: 3px solid rgba(145, 97, 69, 0.18);
    border-top-color: rgba(145, 97, 69, 0.92);
    border-radius: 50%;
    animation: tn-studio-upload-spin 0.78s linear infinite;
}

.tn-studio-tree-head,
.tn-studio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tn-studio-toolbar-primary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tn-studio-toolbar-copy {
    display: grid;
    gap: 0.2rem;
}

.tn-studio-toolbar-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.tn-studio-toolbar-actions-group {
    display: inline-flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.tn-studio-toolbar-actions-group--utility {
    margin-right: 0.35rem;
    padding-right: 0.85rem;
    border-right: 1px solid rgba(140, 106, 83, 0.22);
}

.tn-studio-icon-btn {
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tn-studio-icon-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.tn-studio-action-menu {
    position: relative;
}

.tn-studio-action-menu__trigger {
    min-width: 2.9rem;
    padding-inline: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.tn-studio-action-menu__popover {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 220px;
    padding: 0.45rem;
    border: 1px solid rgba(124, 88, 66, 0.18);
    border-radius: 1rem;
    background: rgba(255, 252, 249, 0.98);
    box-shadow: 0 20px 42px rgba(48, 31, 22, 0.12);
    display: grid;
    gap: 0.3rem;
    z-index: 12;
}

.tn-studio-action-menu__popover[hidden] {
    display: none !important;
}

.tn-studio-action-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    background: transparent;
    color: #5c473d;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.tn-studio-action-menu__item:hover {
    border-color: rgba(124, 88, 66, 0.18);
    background: rgba(255, 247, 239, 0.92);
    color: #342720;
}

.tn-studio-root-btn,
.tn-studio-tree-node__button {
    width: 100%;
    border: 1px solid rgba(124, 88, 66, 0.16);
    border-radius: 0.85rem;
    background: rgba(255, 248, 242, 0.92);
    color: #5c473d;
    text-align: left;
    padding: 0.48rem 0.62rem;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.tn-studio-root-btn:hover,
.tn-studio-tree-node__button:hover {
    border-color: rgba(124, 88, 66, 0.28);
    background: rgba(255, 251, 246, 1);
    color: #342720;
}

.tn-studio-root-btn.is-active,
.tn-studio-tree-node__button.is-active {
    border-color: rgba(145, 97, 69, 0.34);
    background: rgba(245, 228, 214, 0.86);
    color: #2f221c;
}

.tn-studio-tree {
    display: grid;
    gap: 0.3rem;
}

.tn-studio-tree-node {
    display: grid;
    gap: 0.22rem;
}

.tn-studio-tree-children {
    margin-left: 0.75rem;
    display: grid;
    gap: 0.22rem;
    padding-left: 0.55rem;
    border-left: 1px dashed rgba(140, 106, 83, 0.18);
}

.tn-studio-tree-node__content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tn-studio-tree-node__label {
    font-weight: 700;
    font-size: 0.94rem;
}

.tn-studio-tree-node__meta {
    margin-left: auto;
    font-size: 0.68rem;
    color: #86695a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tn-studio-breadcrumbs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: #7a6357;
    font-size: var(--bui-font-size-sm);
}

.tn-studio-breadcrumb {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    transition: background 120ms ease, color 120ms ease;
}

.tn-studio-breadcrumb:hover,
.tn-studio-breadcrumb.is-drop-target {
    background: rgba(214, 179, 144, 0.16);
    color: #4a3328;
}

.tn-studio-dropbar {
    border: 1px dashed rgba(140, 106, 83, 0.28);
    border-radius: 1rem;
    padding: 0.55rem 0.8rem;
    color: #725c50;
    background: rgba(255, 248, 241, 0.82);
    font-size: var(--bui-font-size-sm);
    line-height: 1.45;
}

.tn-studio-dropbar.is-active {
    border-color: rgba(148, 94, 64, 0.42);
    background: rgba(245, 228, 214, 0.88);
    color: #3c2d27;
}

.tn-studio-dropbar.is-uploading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tn-studio-dropbar.is-uploading::before {
    content: "";
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid rgba(148, 94, 64, 0.2);
    border-top-color: rgba(148, 94, 64, 0.9);
    border-radius: 50%;
    flex: 0 0 auto;
    animation: tn-studio-upload-spin 0.78s linear infinite;
}

.tn-studio-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
}

.tn-studio-entry-card {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid rgba(111, 80, 61, 0.14);
    border-radius: 1.2rem;
    background: rgba(255, 252, 249, 0.96);
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.tn-studio-entry-card:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 97, 69, 0.24);
    box-shadow: 0 18px 34px rgba(56, 33, 21, 0.08);
}

.tn-studio-entry-card.is-selected {
    border-color: rgba(145, 97, 69, 0.34);
    box-shadow: 0 0 0 3px rgba(179, 111, 80, 0.1);
}

.tn-studio-entry-card.is-drop-target {
    border-color: rgba(145, 97, 69, 0.4);
    background: rgba(245, 228, 214, 0.82);
}

@keyframes tn-studio-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

.tn-studio-entry-card__head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tn-studio-entry-icon {
    width: 3rem;
    height: 2.55rem;
    border-radius: 0.8rem;
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(210, 171, 128, 0.9), rgba(181, 128, 87, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 8px 16px rgba(70, 42, 28, 0.12);
}

.tn-studio-entry-icon::before,
.tn-studio-entry-icon::after {
    content: "";
    position: absolute;
}

.tn-studio-entry-icon--folder {
    clip-path: polygon(0 22%, 40% 22%, 49% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #d7b06d 0%, #b67b3b 100%);
}

.tn-studio-entry-icon--folder::before {
    top: 0.26rem;
    left: 0.34rem;
    width: 1.05rem;
    height: 0.42rem;
    border-radius: 0.38rem 0.38rem 0 0;
    background: rgba(255, 237, 196, 0.9);
}

.tn-studio-entry-icon--folder::after {
    inset: 0.62rem 0.28rem 0.28rem;
    border-radius: 0.55rem 0.55rem 0.68rem 0.68rem;
    background: rgba(255, 249, 233, 0.78);
}

.tn-studio-entry-icon--folder-content {
    background: linear-gradient(180deg, #ddb76f 0%, #b97c35 100%);
}

.tn-studio-entry-icon--folder-media {
    background: linear-gradient(180deg, #9ab38f 0%, #5f8765 100%);
}

.tn-studio-entry-icon--folder-media::before {
    background: rgba(226, 244, 224, 0.92);
}

.tn-studio-entry-icon--folder-media::after {
    background: rgba(240, 250, 239, 0.78);
}

.tn-studio-entry-icon--note {
    border-radius: 0.42rem 0.72rem 0.55rem 0.55rem;
    background: linear-gradient(180deg, #fff8f1 0%, #efdccc 100%);
    box-shadow: inset 0 0 0 1px rgba(164, 123, 96, 0.18), 0 8px 16px rgba(70, 42, 28, 0.08);
}

.tn-studio-entry-icon--note::before {
    top: 0.18rem;
    right: 0.18rem;
    width: 0.75rem;
    height: 0.75rem;
    background: linear-gradient(135deg, rgba(221, 198, 173, 0.96), rgba(255, 248, 240, 0.82));
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 1;
}

.tn-studio-entry-icon--note::after {
    inset: 0.56rem 0.44rem 0.42rem;
    border-radius: 0.35rem;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(177, 135, 106, 0) 0 0.16rem,
            rgba(177, 135, 106, 0.7) 0.16rem 0.24rem,
            rgba(177, 135, 106, 0) 0.24rem 0.46rem
        );
    opacity: 0.95;
}

.tn-studio-entry-icon--media {
    background: linear-gradient(180deg, #496776 0%, #2f4350 100%);
}

.tn-studio-entry-icon--media::before {
    inset: 0.22rem;
    border-radius: 0.62rem;
    background-image:
        linear-gradient(180deg, rgba(20, 33, 41, 0.08), rgba(20, 33, 41, 0.28)),
        var(--studio-preview, linear-gradient(180deg, #cae0e7 0%, #f7f1ea 58%, #ddb089 100%));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    z-index: 0;
}

.tn-studio-entry-icon--media::after {
    inset: 0.42rem;
    border-radius: 0.54rem;
    background:
        radial-gradient(circle at 78% 26%, rgba(255, 245, 210, 0.92) 0 0.18rem, transparent 0.2rem),
        linear-gradient(142deg, transparent 0 48%, rgba(70, 117, 95, 0.88) 49% 69%, transparent 70%),
        linear-gradient(180deg, transparent 0 55%, rgba(85, 144, 114, 0.8) 56% 100%);
    mix-blend-mode: screen;
    opacity: 0.92;
    z-index: 1;
}

.tn-studio-entry-body {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.tn-studio-entry-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: #2e211b;
    overflow: hidden;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tn-studio-entry-meta {
    color: #7a6357;
    font-size: var(--bui-font-size-sm);
    line-height: 1.45;
}

.tn-studio-entry-subline,
.tn-studio-entry-caption {
    color: #7a6357;
    font-size: var(--bui-font-size-sm);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-studio-entry-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(214, 179, 144, 0.14);
    color: #765541;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tn-studio-entry-card--media .tn-studio-entry-card__head {
    align-items: flex-start;
    gap: 1rem;
}

.tn-studio-entry-card--media .tn-studio-entry-icon {
    width: 4.75rem;
    height: 3.7rem;
    border-radius: 0.95rem;
}

.tn-studio-entry-card--media .tn-studio-entry-name,
.tn-studio-entry-card--media .tn-studio-entry-meta,
.tn-studio-entry-card--media .tn-studio-entry-caption {
    white-space: nowrap;
    display: block;
    text-overflow: ellipsis;
}

.tn-studio-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(111, 80, 61, 0.18);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    color: #7a6357;
    background: rgba(255, 252, 249, 0.88);
}

.tn-studio-dialog-grid {
    display: grid;
    gap: 0.85rem;
}

.tn-studio-dialog-grid label {
    display: grid;
    gap: 0.4rem;
    color: #6f5c51;
    font-size: var(--bui-font-size-sm);
}

.tn-studio-cover-picker {
    display: grid;
    gap: 0.75rem;
}

.tn-studio-cover-picker__summary,
.tn-image-selection-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(111, 80, 61, 0.12);
    border-radius: var(--artist-control-radius);
    background: rgba(255, 252, 249, 0.88);
}

.tn-studio-cover-picker__meta,
.tn-studio-cover-picker__empty,
.tn-image-selection-summary__meta,
.tn-image-selection-summary__empty {
    display: grid;
    gap: 0.2rem;
    color: #6f5c51;
}

.tn-studio-cover-picker__meta strong,
.tn-studio-cover-picker__empty strong,
.tn-image-selection-summary__meta strong,
.tn-image-selection-summary__empty strong {
    color: #38261f;
    font-size: 0.98rem;
}

.tn-studio-cover-picker__meta span,
.tn-studio-cover-picker__empty span,
.tn-image-selection-summary__meta span,
.tn-image-selection-summary__empty span {
    font-size: var(--bui-font-size-sm);
    line-height: 1.4;
}

.tn-image-selection-summary__thumb {
    width: 4.5rem;
    min-width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border-radius: var(--artist-control-radius);
    background: rgba(255, 252, 249, 0.96);
    border: 1px solid rgba(111, 80, 61, 0.1);
}

.tn-image-selection-summary__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tn-studio-cover-picker__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tn-studio-cover-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 0.7rem;
}

.tn-studio-cover-gallery__item {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    padding: 0.65rem;
    border: 1px solid rgba(111, 80, 61, 0.12);
    border-radius: 1rem;
    background: rgba(255, 252, 249, 0.92);
    color: #4d392f;
    text-align: left;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.tn-studio-cover-gallery__item:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 97, 69, 0.24);
    box-shadow: 0 16px 28px rgba(56, 33, 21, 0.08);
}

.tn-studio-cover-gallery__item.is-selected {
    border-color: rgba(145, 97, 69, 0.34);
    box-shadow: 0 0 0 3px rgba(179, 111, 80, 0.1);
}

.tn-studio-cover-gallery__thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.85rem;
    background: rgba(245, 232, 219, 0.88);
}

.tn-studio-cover-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tn-studio-cover-gallery__name {
    font-size: var(--bui-font-size-sm);
    line-height: 1.35;
    color: #5a463b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-studio-cover-gallery__empty {
    grid-column: 1 / -1;
    padding: 0.85rem 0.95rem;
    border: 1px dashed rgba(124, 88, 66, 0.18);
    border-radius: var(--artist-control-radius);
    color: #7a6357;
    background: rgba(255, 252, 249, 0.88);
}

.tn-studio-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tn-studio-label {
    display: grid;
    gap: 0.45rem;
    color: #6f5c51;
    font-size: var(--bui-font-size-sm);
}

.tn-studio-move-tree {
    display: grid;
    gap: 0.65rem;
}

.tn-studio-move-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    padding-left: calc(1rem + (var(--folder-depth, 0) * 1rem));
    border: 1px solid rgba(111, 80, 61, 0.14);
    border-radius: 1rem;
    background: rgba(255, 252, 249, 0.96);
    color: #2e211b;
    text-align: left;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.tn-studio-move-option:hover {
    border-color: rgba(145, 97, 69, 0.24);
    background: rgba(250, 241, 232, 0.96);
}

.tn-studio-move-option.is-selected {
    border-color: rgba(145, 97, 69, 0.34);
    box-shadow: 0 0 0 3px rgba(179, 111, 80, 0.1);
}

.tn-studio-move-option__main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex-wrap: wrap;
}

.tn-studio-move-option__name {
    font-weight: 600;
}

.tn-studio-move-option__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(214, 179, 144, 0.18);
    color: #765541;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tn-studio-move-option__check {
    color: #8c5c43;
    font-size: 1rem;
}

.tn-studio-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.tn-studio-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0.95rem;
    border-radius: var(--artist-control-radius);
    border: 1px solid rgba(124, 88, 66, 0.14);
    background: rgba(255, 251, 247, 0.8);
}

.tn-studio-textarea,
.tn-studio-preview {
    min-height: 220px;
    border-radius: var(--artist-control-radius);
}

.tn-studio-preview {
    margin: 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(111, 80, 61, 0.14);
    background: rgba(255, 252, 249, 0.88);
    color: #5a463b;
    overflow: auto;
    white-space: pre-wrap;
}

.tn-studio-cover-preview {
    min-height: 160px;
    border: 1px dashed rgba(124, 88, 66, 0.2);
    border-radius: var(--artist-control-radius);
    background: rgba(255, 252, 249, 0.88);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #7a6357;
}

.tn-studio-cover-preview--compact {
    width: 4.5rem;
    min-width: 4.5rem;
    min-height: 4.5rem;
    height: 4.5rem;
    border-style: solid;
    background: rgba(255, 252, 249, 0.96);
}

.tn-studio-cover-preview img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.tn-studio-cover-preview--compact img {
    height: 100%;
    max-height: none;
}

.tn-notes-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(111, 80, 61, 0.14);
    border-radius: var(--artist-control-radius);
}

.tn-notes-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.tn-notes-table th,
.tn-notes-table td {
    text-align: left;
    vertical-align: middle;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(111, 80, 61, 0.1);
}

.tn-notes-table th {
    color: #7d6558;
    font-size: var(--bui-font-size-sm);
}

.tn-notes-table tr:last-child td {
    border-bottom: none;
}

.tn-notes-row-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.tn-notes-empty {
    text-align: center;
    color: #7d6558;
}

.tn-note-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bui-space-md);
}

.tn-note-editor-grid label,
.tn-note-editor-textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: #6f5c51;
    font-size: var(--bui-font-size-sm);
}

.tn-note-editor-toolbar,
.tn-note-editor-upload,
.tn-note-editor-actions {
    margin-top: var(--bui-space-md);
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.tn-note-editor-textarea {
    min-height: 320px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
}

.tn-note-preview {
    min-height: 120px;
    border: 1px solid rgba(111, 80, 61, 0.14);
    border-radius: var(--artist-control-radius);
    padding: 1rem;
    background: rgba(255, 252, 249, 0.9);
}

.tn-media-upload-panel,
.tn-media-dialog-panel {
    border: 1px solid rgba(111, 80, 61, 0.14);
    border-radius: var(--artist-control-radius);
    padding: 1rem;
    background: rgba(255, 251, 247, 0.84);
    display: grid;
    gap: 0.8rem;
}

.tn-media-upload-controls,
.tn-media-toolbar,
.tn-media-pagination {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.tn-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    overflow: hidden;
    border-radius: var(--artist-control-radius);
    border: 1px solid rgba(111, 80, 61, 0.14);
    background: rgba(255, 252, 249, 0.92);
}

.tn-media-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.tn-media-card {
    position: relative;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(176, 111, 87, 0.18), rgba(221, 189, 152, 0.22)),
        #eadccf;
}

.tn-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.tn-media-card.is-selected::after {
    border-width: 3px;
    border-color: rgba(255, 247, 237, 0.88);
    box-shadow: inset 0 0 0 1px rgba(118, 74, 50, 0.3);
}

.tn-media-card__preview,
.tn-media-card__preview img {
    width: 100%;
    height: 100%;
}

.tn-media-card__preview img {
    display: block;
    object-fit: cover;
}

.tn-media-card__body {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 0.5rem;
    padding: 0.7rem;
    background: linear-gradient(180deg, rgba(24, 17, 14, 0) 0%, rgba(24, 17, 14, 0.84) 54%, rgba(24, 17, 14, 0.92) 100%);
    color: #fff6ef;
}

.tn-media-card__meta-wrap {
    display: grid;
    gap: 0.2rem;
}

.tn-media-card__name {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.tn-media-card__meta {
    color: rgba(255, 243, 235, 0.82);
    font-size: 0.72rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.tn-media-card__actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: nowrap;
    align-items: center;
}

.tn-media-card__actions .bui-btn {
    background: rgba(255, 250, 245, 0.92);
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
}

.tn-image-picker-dialog .tn-overlay-dialog__sheet {
    width: min(1240px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
}

.tn-image-picker-dialog__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.tn-image-picker-dialog .tn-media-grid {
    align-content: start;
}

.tn-media-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(111, 80, 61, 0.2);
    border-radius: var(--artist-control-radius);
    padding: 1.1rem;
    text-align: center;
    color: #7d6558;
    background: rgba(255, 252, 249, 0.88);
}

@media (max-width: 1100px) {
    .artist-post-grid,
    .artist-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .blog-layout,
    .tn-layout-shell,
    .tn-layout-shell.has-right-rail {
        grid-template-columns: 1fr;
    }

    .right-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 900px) {
    .tn-note-editor-grid,
    .tn-auth-grid,
    .tn-studio-management-grid,
    .tn-studio-form-grid,
    .tn-studio-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .artist-shell .bui-container {
        width: min(100% - 1rem, var(--artist-container-max));
    }

    .artist-hero__title {
        white-space: normal;
    }

    .tn-overlay-dialog__head,
    .tn-overlay-dialog__actions {
        flex-direction: column;
    }

    .tn-note-lightbox__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .tn-note-lightbox__nav {
        width: 100%;
        height: 2.75rem;
    }

    .tn-page-head-row,
    .tn-page-head-copy,
    .artist-section__head,
    .artist-collection-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .artist-note__meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}
.artist-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.artist-footer-bottom p {
    margin: 0;
}

.artist-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.artist-language-switcher__label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 240, 228, 0.7);
    padding-left: 0.45rem;
}

.artist-language-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    color: rgba(255, 241, 231, 0.82);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.artist-language-switcher__link:hover,
.artist-language-switcher__link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff7f2;
    transform: translateY(-1px);
}

.artist-language-switcher__link.is-active {
    background: linear-gradient(135deg, #c18860, #8e593d);
    color: #fffdfb;
}

.artist-footer-secret-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 249, 241, 0.08);
    border: 1px solid rgba(255, 241, 228, 0.16);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
}

.artist-footer-secret-link:hover,
.artist-footer-secret-link:focus-visible {
    background: rgba(255, 249, 241, 0.14);
    border-color: rgba(255, 241, 228, 0.28);
}

.artist-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.artist-help-card {
    padding: 1.15rem;
    display: grid;
    gap: 0.65rem;
}

.artist-help-card__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.1;
    color: #2f221c;
}

.artist-help-card__text {
    margin: 0;
    color: #625147;
    line-height: 1.65;
}

.artist-help-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #625147;
    line-height: 1.65;
}

.artist-help-list li + li {
    margin-top: 0.35rem;
}

@media (max-width: 720px) {
    .artist-footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .artist-language-switcher {
        padding: 0.4rem 0.5rem;
        margin-left: 0;
    }

    .artist-footer-secret-link {
        min-width: 1.9rem;
        height: 1.9rem;
    }

    .artist-language-switcher__label {
        display: none;
    }
}
