@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    background: #fff;
    color: #1a1a1a;
  }
}

@layer components {
  .country-flag-image {
    display: inline-block;
    width: 12px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
  }

  .homepage-shell {
    background: #fff;
  }

  .public-site-footer {
    padding: 32px 20px 40px;
    text-align: center;
  }

  .public-site-footer__text {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
  }

  .public-site-footer__link {
    color: #444;
    text-decoration: none;
  }

  .public-site-footer__link:hover {
    text-decoration: underline;
  }

  .password-requirements {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fafafa;
    padding: 14px 16px;
  }

  .password-requirements__title {
    margin: 0 0 10px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .password-requirements__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .password-requirements__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
  }

  .password-requirements__indicator {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: transparent;
  }

  .password-requirements__item[data-met="true"] {
    color: #888;
    text-decoration: line-through;
  }

  .password-requirements__item[data-met="true"] .password-requirements__indicator {
    border-color: #3a9e5f;
    background: #3a9e5f;
    color: #fff;
  }

  .password-requirements__item[data-met="true"] .password-requirements__indicator::before {
    content: "✓";
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .homepage-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 0 40px;
  }

  .homepage-nav__left {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
  }

  .homepage-nav__title {
    color: #111;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    text-decoration: none;
  }

  .homepage-nav__title--mobile {
    display: none;
  }

  .homepage-nav__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }

  .homepage-nav__label {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
  }

  .homepage-nav__label span {
    color: #444;
    font-weight: 500;
  }

  .homepage-nav__form {
    margin: 0;
  }

  .homepage-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: none;
    padding: 5px 12px;
    color: #444;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .homepage-nav__button:hover {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .homepage-nav__button--link {
    text-decoration: none;
  }

  .homepage-nav__mobile-menu {
    display: none;
    margin-left: auto;
  }

  .homepage-nav__menu-toggle {
    position: relative;
    z-index: 42;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: none;
    color: #444;
    cursor: pointer;
    transition: background-color 0.15s ease;
  }

  .homepage-nav__menu-toggle:hover {
    background: #f5f5f5;
  }

  .homepage-nav__mobile-menu[data-open="true"] .homepage-nav__menu-toggle {
    background: #f0f0f0;
  }

  .homepage-nav__menu-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
  }

  .homepage-nav__mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: none;
    background: transparent;
    padding: 0;
  }

  .homepage-nav__mobile-panel {
    position: fixed;
    top: calc(80px + 8px);
    right: 12px;
    z-index: 41;
    display: flex;
    width: 200px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .homepage-nav__mobile-menu[data-open="true"] .homepage-nav__mobile-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
  }

  .homepage-nav__mobile-form {
    margin: 0;
  }

  .homepage-nav__mobile-action {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    border: none;
    background: #fff;
    padding: 13px 16px;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.12s ease;
  }

  .homepage-nav__mobile-action:hover {
    background: #f7f7f7;
  }

  .homepage-nav__mobile-action-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #aaa;
  }

  .homepage-nav__mobile-divider {
    height: 1px;
    background: #f0f0f0;
  }

  .homepage-nav__mobile-action--danger {
    color: #e05555;
  }

  .homepage-nav__mobile-action--danger:hover {
    background: #fff5f5;
  }

  .homepage-nav__mobile-action--danger .homepage-nav__mobile-action-icon {
    opacity: 0.7;
  }

  .homepage-intro {
    background: #fff;
    padding: 50px 40px 80px;
  }

  .homepage-intro-render {
    text-align: center;
  }

  .homepage-intro-render .trix-content {
    margin: 0 auto;
    max-width: 1000px;
    color: #777;
    font-size: 16px;
    line-height: 1.75;
  }

  .homepage-intro-render .trix-content > :first-child {
    margin-top: 0;
  }

  .homepage-intro-render .trix-content > :last-child {
    margin-bottom: 0;
  }

  .homepage-intro-render .trix-content h1,
  .homepage-intro-render .trix-content h2,
  .homepage-intro-render .trix-content h3 {
    margin-bottom: 10px;
    color: #111;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.3;
  }

  .homepage-intro-render .trix-content h1 {
    font-size: 38px;
    font-weight: 800;
  }

  .homepage-intro-render .trix-content p,
  .homepage-intro-render .trix-content ul,
  .homepage-intro-render .trix-content ol,
  .homepage-intro-render .trix-content blockquote {
    margin: 0 auto;
    color: #777;
    font-size: 16px;
    line-height: 1.75;
  }

  .homepage-stats {
    border-bottom: 1px solid #ebebeb;
    background: #fff;
    padding: 24px 40px;
  }

  .homepage-stats__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1280px;
  }

  .homepage-stats__item {
    padding: 0 48px;
    text-align: center;
  }

  .homepage-stats__number {
    display: block;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.1;
  }

  .homepage-stats__label {
    display: block;
    margin-top: 3px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
  }

  .homepage-stats__divider {
    width: 1px;
    height: 32px;
    background: #e4e4e4;
  }

  .homepage-main {
    margin: 0 auto;
    max-width: 1290px;
    padding: 36px 40px 80px;
  }

  .public-not-found {
    margin: 0 auto;
    max-width: 960px;
    padding: 72px 40px 120px;
  }

  .public-not-found__body {
    max-width: 520px;
  }

  .public-not-found__eyebrow {
    margin-bottom: 12px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .public-not-found__title {
    color: #111;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.05;
  }

  .public-not-found__text {
    margin-top: 16px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
  }

  .homepage-filter-bar {
    background: #fff;
    padding: 14px 40px;
  }

  .homepage-filter-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    max-width: 1280px;
  }

  .homepage-filter-bar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .homepage-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: #f2f2f2;
    padding: 5px 12px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .homepage-filter-pill:hover {
    background: #eaeaea;
    color: #333;
  }

  .homepage-filter-pill[data-active="true"] {
    border-color: #111;
    background: #111;
    color: #fff;
  }

  .homepage-filter-bar__divider {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: #e4e4e4;
  }

  .homepage-country-filter {
    display: inline-flex;
  }

  .homepage-country-filter__count {
    border-radius: 10px;
    background: #111;
    padding: 1px 6px;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
  }

  .homepage-filter-pill[data-active="true"] .homepage-country-filter__count {
    background: rgba(255, 255, 255, 0.18);
  }

  .homepage-country-row {
    background: #fff;
    max-height: 0;
    overflow: hidden;
    padding: 0 40px;
    transition: max-height 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid transparent;
  }

  .homepage-country-row[data-open="true"] {
    max-height: 320px;
    overflow-y: auto;
    padding: 12px 40px 16px;
    border-bottom-color: #ebebeb;
    overscroll-behavior: contain;
  }

  .homepage-country-row__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    max-width: 1280px;
  }

  .homepage-country-filter__option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: #f2f2f2;
    padding: 4px 10px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .homepage-country-filter__option:hover {
    background: #eaeaea;
    color: #333;
  }

  .homepage-country-filter__option[data-active="true"] {
    border-color: #111;
    background: #111;
    color: #fff;
  }

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

  .homepage-card {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .homepage-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.09);
  }

  .homepage-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .homepage-card__thumb {
    width: 100%;
    aspect-ratio: 187.5 / 300;
    background: #f2f2f2;
    overflow: hidden;
  }

  .homepage-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .homepage-card__thumb-image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .homepage-card__thumb-image--softened {
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: saturate(0.98) contrast(0.98) blur(0.15px);
  }

  .homepage-card__body {
    padding: 8px 10px 10px;
  }

  .homepage-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
  }

  .homepage-card__badge {
    border-radius: 4px;
    background: #f2f2f2;
    padding: 2px 6px;
    color: #888;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
  }

  .homepage-card__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .homepage-card__flag {
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
  }

  .homepage-card__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.1px;
  }

  .post-page {
    background: #fff;
  }

  .post-page__nav {
    position: sticky;
    top: 0;
  }

  .post-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .post-page__breadcrumb--desktop {
    display: flex;
  }

  .post-page__breadcrumb-link,
  .post-page__breadcrumb-current {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.3;
  }

  .post-page__breadcrumb-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .post-page__breadcrumb-link:hover {
    color: #888;
  }

  .post-page__breadcrumb-separator {
    color: #ddd;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
  }

  .post-page__breadcrumb-current {
    color: #111;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .post-page__content {
    margin: 0 auto;
    max-width: 1280px;
    padding: 48px 40px 80px;
  }

  .post-page__mobile-title {
    display: none;
    margin-bottom: 18px;
  }

  .post-page__mobile-title-text {
    color: #111;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.2;
  }

  .post-page__media-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 40px;
  }

  .post-page__media-tab {
    border: none;
    border-radius: 20px;
    background: none;
    padding: 7px 16px;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .post-page__media-tab:hover {
    background: #f2f2f2;
    color: #444;
  }

  .post-page__media-tab[data-active="true"] {
    background: #111;
    color: #fff;
  }

  .post-page__videos {
    width: 100%;
  }

  .responsive-gallery__image {
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .responsive-gallery__image[data-loaded="true"] {
    opacity: 1;
  }

  .lightbox-close-button:focus {
    outline: none;
  }

  .lightbox-close-button:focus-visible {
    outline: none;
  }

  .lightbox-close-button {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    mix-blend-mode: difference;
  }

  .owner-posts-page-shell {
    margin: -24px;
    background: #f7f7f7;
  }

  .owner-dashboard-page-shell {
    margin: -24px;
    background: #f7f7f7;
  }

  .owner-dashboard-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 40px 80px;
  }

  .owner-dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }

  .owner-dashboard-split--detail {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }

  .owner-dashboard-card {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
    padding: 28px;
  }

  .owner-dashboard-card--side {
    position: sticky;
    top: 100px;
  }

  .owner-dashboard-card--stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .owner-dashboard-card--inset {
    padding: 20px;
  }

  .owner-dashboard-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .owner-dashboard-card__title {
    color: #111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
  }

  .owner-dashboard-card__description {
    margin-top: 4px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
  }

  .owner-dashboard-card__subhead {
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .owner-auth-provider-card {
    max-width: 480px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
  }

  .owner-auth-provider-card__header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .owner-auth-provider-card__label {
    margin-bottom: 4px;
    color: #bbb;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .owner-auth-provider-card__title {
    margin: 0 0 6px;
    color: #111;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
  }

  .owner-auth-provider-card__description {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
  }

  .owner-auth-provider-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px;
  }

  .owner-auth-provider-card__field-label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-auth-provider-card__input {
    width: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    padding: 9px 12px;
    color: #111;
    font-size: 16px;
    line-height: 1.4;
  }

  .owner-auth-provider-card__input::placeholder {
    color: #ccc;
  }

  .owner-auth-provider-card__input:focus {
    border-color: #aaa;
    outline: none;
  }

  .owner-auth-provider-card__help {
    margin-top: 6px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
  }

  .owner-auth-provider-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #f0f0f0;
  }

  .owner-auth-provider-card__footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .owner-auth-provider-card__primary-action,
  .owner-auth-provider-card__secondary-action,
  .owner-auth-provider-card__danger-action {
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .owner-auth-provider-card__primary-action {
    border: none;
    border-radius: 8px;
    background: #111;
    padding: 8px 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
  }

  .owner-auth-provider-card__primary-action:hover {
    background: #333;
  }

  .owner-auth-provider-card__secondary-action {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 8px 14px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
  }

  .owner-auth-provider-card__secondary-action:hover {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .owner-auth-provider-card__danger-action {
    border: none;
    background: none;
    padding: 8px 4px;
    color: #e05555;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
  }

  .owner-auth-provider-card__danger-action:hover {
    color: #c03030;
  }

  .owner-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .owner-dashboard-list-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: #fff;
    padding: 14px 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .owner-dashboard-list-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  }

  .owner-dashboard-list-card__body {
    flex: 1;
    min-width: 0;
  }

  .owner-dashboard-list-card__title {
    margin-bottom: 4px;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .owner-dashboard-list-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
  }

  .owner-dashboard-list-card__meta-dot {
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: #ccc;
  }

  .owner-dashboard-empty {
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    padding: 24px 0;
  }

  .owner-dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .owner-dashboard-summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .owner-dashboard-summary-item {
    min-width: 0;
  }

  .owner-dashboard-summary-key {
    margin-bottom: 2px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
  }

  .owner-dashboard-summary-value {
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
  }

  .owner-dashboard-summary-value--mono {
    overflow-wrap: anywhere;
    color: #555;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 14px;
    font-weight: 400;
  }

  .owner-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .owner-settings-rich-text__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .owner-settings-rich-text__source {
    margin-top: 14px;
  }

  .owner-settings-rich-text__source-field {
    width: 100%;
    min-height: 220px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    color: #111;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
  }

  .owner-settings-rich-text__source-field:focus {
    border-color: #aaa;
    outline: none;
  }

  .owner-dashboard-danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    background: #fff;
    padding: 8px 16px;
    color: #e05555;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .owner-dashboard-danger-action:hover {
    background: #fff0f0;
  }

  .owner-dashboard-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 8px 16px;
    color: #444;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .owner-dashboard-secondary-action:hover {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .owner-toast-stack {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .owner-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    padding: 12px 18px;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
  }

  .owner-toast[data-state="visible"] {
    opacity: 1;
    transform: translateY(0);
  }

  .owner-toast[data-state="leaving"] {
    opacity: 0;
    transform: translateY(10px);
  }

  .owner-toast__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
    background: #3a9e5f;
  }

  .owner-toast--error .owner-toast__dot {
    background: #e05555;
  }

  .owner-toast__message {
    display: block;
  }

  .owner-toast--dark {
    border: none;
    background: #111;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  }

  .owner-dashboard-provider-mappings {
    margin-top: 8px;
  }

  .owner-dashboard-provider-mappings__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .owner-dashboard-provider-mapping {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: start;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
  }

  .owner-dashboard-provider-mapping__details {
    min-width: 0;
  }

  .owner-dashboard-provider-mapping__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .owner-dashboard-provider-mapping__name {
    color: #111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
  }

  .owner-dashboard-provider-mapping__amount {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-dashboard-provider-mapping__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
  }

  .owner-dashboard-provider-mapping__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .owner-dashboard-notice {
    border-radius: 12px;
    padding: 20px;
  }

  .owner-dashboard-notice--success {
    border: 1px solid #c6ecd4;
    background: #f0faf0;
  }

  .owner-dashboard-notice__title {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  .owner-dashboard-notice__body {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff;
  }

  .owner-dashboard-code {
    margin-top: 12px;
    overflow-x: auto;
    border-radius: 10px;
    background: #111;
    padding: 16px;
    color: #f5f5f5;
    font-size: 12px;
    line-height: 1.6;
  }

  .owner-dashboard-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
  }

  .owner-dashboard-checkbox__input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border-color: #d4d4d8;
  }

  .owner-dashboard-checkbox__title {
    display: block;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-dashboard-checkbox__description {
    display: block;
    margin-top: 4px;
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
  }

  .owner-posts-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 40px 80px;
  }

  .owner-stats-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 80px;
  }

  .owner-stats-page__title {
    margin: 0;
    color: #111;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.1;
  }

  .owner-stats-page__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .owner-stats-page__filters-card {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
    padding: 24px 28px;
  }

  .owner-stats-page__filters-card .owner-dashboard-card__title {
    margin-bottom: 4px;
  }

  .owner-stats-page__filters-card .owner-dashboard-card__description {
    margin-bottom: 20px;
    color: #aaa;
    font-size: 14px;
  }

  .owner-stats-page__filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .owner-stats-page__quick-ranges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .owner-stats-page__quick-ranges-label {
    margin-right: 4px;
    color: #bbb;
    font-size: 12px;
    font-weight: 500;
  }

  .owner-stats-page__range-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    background: #f2f2f2;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .owner-stats-page__range-pill:hover {
    background: #eaeaea;
    color: #444;
  }

  .owner-stats-page__range-pill[data-active="true"] {
    background: #111;
    color: #fff;
  }

  .owner-stats-page__custom-range-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  .owner-stats-page__field {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    gap: 0;
    min-width: 0;
  }

  .owner-stats-page__field span {
    margin-bottom: 5px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .owner-stats-page__field .owner-dashboard-field__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    color: #111;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
  }

  .owner-stats-page__field .owner-dashboard-field__input:focus {
    border-color: #aaa;
  }

  .owner-stats-page__range-arrow {
    flex-shrink: 0;
    padding-bottom: 10px;
    color: #ccc;
    font-size: 16px;
    line-height: 1;
  }

  .owner-stats-page__custom-range-form .owner-dashboard-primary-button {
    flex-shrink: 0;
    padding: 9px 18px;
    font-size: 13px;
  }

  .owner-stats-page__summary-card {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
    padding: 18px 20px;
  }

  .owner-stats-page__summary-label {
    margin-bottom: 8px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
  }

  .owner-stats-page__summary-number {
    color: #111;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
  }

  .owner-stats-page__table-card {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .owner-stats-page__table-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid #f0f0f0;
  }

  .owner-stats-page__activity-list {
    display: flex;
    flex-direction: column;
    padding: 0 28px;
  }

  .owner-stats-page__activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #f5f5f5;
  }

  .owner-stats-page__activity-item:last-child {
    border-bottom: none;
  }

  .owner-stats-page__activity-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .owner-stats-page__activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .owner-stats-page__activity-icon--login {
    background: #f0f7ff;
    color: #6aabf0;
  }

  .owner-stats-page__activity-icon--post_view {
    background: #f0faf5;
    color: #5abf8a;
  }

  .owner-stats-page__activity-icon--member_expired,
  .owner-stats-page__activity-icon--generic {
    background: #faf3f0;
    color: #d18a66;
  }

  .owner-stats-page__activity-icon-svg {
    width: 15px;
    height: 15px;
  }

  .owner-stats-page__activity-copy {
    min-width: 0;
  }

  .owner-stats-page__member-email {
    margin: 0;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .owner-stats-page__activity-message {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
  }

  .owner-stats-page__activity-message strong {
    color: #555;
    font-weight: 500;
  }

  .owner-stats-page__activity-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
  }

  .owner-stats-page__tier-badge {
    display: inline-block;
    margin-bottom: 3px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f2f2f2;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
  }

  .owner-stats-page__activity-timestamp {
    display: block;
    margin: 0;
    color: #bbb;
    font-size: 12px;
    line-height: 1.5;
  }

  .owner-posts-page__toolbar {
    margin-bottom: 20px;
  }

  .owner-posts-page__toolbar-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
  }

  .owner-posts-page__search {
    position: relative;
    flex: 1;
  }

  .owner-posts-page__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
  }

  .owner-posts-page__search-input,
  .owner-posts-page__sort {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    line-height: 1.4;
  }

  .owner-posts-page__search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    color: #111;
  }

  .owner-posts-page__search-input::placeholder {
    color: #bbb;
  }

  .owner-posts-page__search-input:focus,
  .owner-posts-page__sort:focus {
    border-color: #bbb;
    outline: none;
  }

  .owner-posts-page__sort {
    width: 160px;
    padding: 8px 28px 8px 12px;
    color: #555;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
  }

  .owner-posts-page__count {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
  }

  .owner-posts-page__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .owner-post-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: #fff;
    padding: 14px 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .owner-post-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  }

  .owner-post-card__thumb-link {
    display: block;
    flex-shrink: 0;
  }

  .owner-post-card__thumb {
    width: 82px;
    height: 82px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .owner-post-card__thumb--placeholder {
    background: #94d7d0;
  }

  .owner-post-card__body {
    flex: 1;
    min-width: 0;
  }

  .owner-post-card__title {
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .owner-post-card__title-link {
    color: inherit;
    text-decoration: none;
  }

  .owner-post-card__title-link:hover {
    text-decoration: underline;
  }

  .owner-post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.4;
  }

  .owner-post-card__meta--secondary {
    margin-top: 4px;
  }

  .owner-post-card__meta-dot {
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: #ccc;
  }

  .owner-post-card__status {
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }

  .owner-post-card__status--published {
    border: 1px solid #c6ecd4;
    background: #f0faf0;
    color: #3a9e5f;
  }

  .owner-post-card__status--draft,
  .owner-post-card__status--scheduled {
    border: 1px solid #e4e4e4;
    background: #f5f5f5;
    color: #aaa;
  }

  .owner-post-card__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }

  .owner-post-card__delete-form {
    margin: 0;
  }

  .owner-post-card__action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .owner-post-card__action svg {
    width: 18px;
    height: 18px;
  }

  .owner-post-card__action--manage:hover {
    background: #f5f5f5;
    color: #555;
  }

  .owner-post-card__action--delete:hover {
    background: #fff0f0;
    color: #e05555;
  }

  .owner-post-card__tooltip {
    position: absolute;
    left: 50%;
    top: calc(-100% - 6px);
    transform: translateX(-50%);
    border-radius: 5px;
    background: #111;
    padding: 4px 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }

  .owner-post-card__action:hover .owner-post-card__tooltip {
    opacity: 1;
  }

  .owner-stats-page__media-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    outline: none;
  }

  .owner-stats-page__media-preview strong {
    text-decoration: underline;
    text-decoration-color: #d4d4d8;
    text-underline-offset: 2px;
  }

  .owner-stats-page__media-preview-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    width: 148px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 20;
  }

  .owner-stats-page__media-preview:hover .owner-stats-page__media-preview-card,
  .owner-stats-page__media-preview:focus-visible .owner-stats-page__media-preview-card {
    opacity: 1;
  }

  .owner-stats-page__media-preview:focus-visible strong {
    text-decoration-color: #111;
  }

  .owner-stats-page__media-preview-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f5f5f5;
  }

  .owner-posts-page__empty {
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    padding: 24px 0;
  }

  .owner-posts-page__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
  }

  .owner-posts-page__pagination-summary {
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
  }

  .owner-posts-page__pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .owner-posts-page__pagination-link,
  .owner-posts-page__pagination-current {
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
  }

  .owner-posts-page__pagination-link {
    color: #555;
  }

  .owner-posts-page__pagination-current {
    color: #888;
  }

  .owner-post-detail {
    margin: -24px;
    background: #f7f7f7;
  }

  .owner-post-detail__header {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 80px;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
  }

  .owner-post-detail__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    max-width: 960px;
    padding: 0 40px;
    min-height: 80px;
  }

  .owner-post-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .owner-post-detail__breadcrumb-link,
  .owner-post-detail__breadcrumb-current {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.3;
  }

  .owner-post-detail__breadcrumb-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .owner-post-detail__breadcrumb-link:hover {
    color: #888;
  }

  .owner-post-detail__breadcrumb-separator {
    color: #ddd;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
  }

  .owner-post-detail__breadcrumb-current {
    color: #111;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .owner-post-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .owner-post-detail__secondary-action,
  .owner-post-detail__primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .owner-post-detail__secondary-action {
    border: 1px solid #ddd;
    background: #fff;
    padding: 7px 14px;
    color: #444;
    font-weight: 500;
  }

  .owner-post-detail__secondary-action:hover {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .owner-post-detail__primary-action {
    border: 0;
    background: #111;
    padding: 8px 16px;
    color: #fff;
    font-weight: 600;
  }

  .owner-post-detail__primary-action:hover {
    background: #333;
  }

  .owner-post-detail__action-icon {
    width: 14px;
    height: 14px;
  }

  .owner-post-detail__body {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 40px 80px;
  }

  .owner-post-detail__top {
    margin-bottom: 32px;
  }

  .owner-post-detail__card {
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
  }

  .owner-post-detail__featured-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid #f0f0f0;
  }

  .owner-post-detail__featured-thumb {
    width: 72px;
    height: 96px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e8e4e0;
    border-radius: 7px;
    background: #d4cfc9;
  }

  .owner-post-detail__featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .owner-post-detail__featured-placeholder {
    width: 100%;
    height: 100%;
    background: #d4cfc9;
  }

  .owner-post-detail__featured-info {
    flex: 1;
    min-width: 0;
  }

  .owner-post-detail__featured-label {
    margin-bottom: 4px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-post-detail__featured-name {
    margin-bottom: 6px;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .owner-post-detail__featured-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: none;
    padding: 3px 10px;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.3;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .owner-post-detail__featured-toggle:hover {
    border-color: #ccc;
    background: #f5f5f5;
    color: #444;
  }

  .owner-post-detail__card-body {
    padding: 28px;
  }

  .owner-post-detail__danger-row {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
  }

  .owner-post-detail__danger-row form {
    margin: 0;
  }

  .owner-post-detail__danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e05555;
    border-radius: 8px;
    background: #e05555;
    padding: 8px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .owner-post-detail__danger-button:hover {
    border-color: #c63c3c;
    background: #c63c3c;
  }

  .owner-post-detail__card-title {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
  }

  .owner-post-detail-form {
    margin-top: 0;
  }

  .owner-post-detail-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 16px;
  }

  .owner-post-detail-form__label {
    display: block;
    margin-bottom: 6px;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-post-detail-form__input,
  .owner-post-detail-form__select,
  .owner-post-detail-form__button-select,
  .owner-post-detail-form__search {
    width: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    padding: 8px 12px;
    color: #111;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s ease;
  }

  .owner-post-detail-form__input::placeholder,
  .owner-post-detail-form__search::placeholder {
    color: #bbb;
  }

  .owner-post-detail-form__input:focus,
  .owner-post-detail-form__select:focus,
  .owner-post-detail-form__button-select:focus,
  .owner-post-detail-form__search:focus {
    outline: none;
    border-color: #aaa;
  }

  .owner-post-detail-form__button-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .owner-post-detail-form__select {
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23bbb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
  }

  .owner-post-detail-form__help {
    margin-top: 5px;
    color: #bbb;
    font-size: 13px;
    line-height: 1.5;
  }

  .owner-post-detail-form__accent {
    color: #7aabf0;
  }

  .owner-post-detail-form__errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    background: #fff0f0;
  }

  .owner-post-detail-form__errors-title {
    color: #b14343;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }

  .owner-post-detail-form__errors-list {
    margin-top: 8px;
    padding-left: 18px;
    color: #b14343;
    font-size: 13px;
    line-height: 1.6;
  }

  .owner-post-detail-form__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
  }

  .owner-post-detail-form__stat {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f7f7;
  }

  .owner-post-detail-form__stat-number {
    margin-bottom: 4px;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
  }

  .owner-post-detail-form__stat-label {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-post-media-sections {
    margin-top: 24px;
  }

  .owner-post-media-section {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
  }

  .owner-post-media-section:first-child {
    margin-top: 0;
  }

  .owner-post-media-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .owner-post-media-section__title {
    color: #111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
  }

  .owner-post-media-section__description {
    margin-top: 4px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
  }

  .owner-post-media-section__actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .owner-post-media-section__secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 6px 12px;
    color: #444;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .owner-post-media-section__secondary-action:hover {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .owner-post-media-section__secondary-action--delete {
    border-color: #f5c6c6;
    color: #e05555;
  }

  .owner-post-media-section__secondary-action--delete:hover {
    background: #fff0f0;
  }

  .owner-post-media-section__secondary-action--disabled,
  .owner-post-media-section__secondary-action--disabled:hover {
    border-color: #e4e4e4;
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
  }

  .owner-post-media-section__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .owner-post-media-section__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 24px;
    border: 1.5px dashed #e0e0e0;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
  }

  .owner-post-media-section__dropzone:hover {
    border-color: #bbb;
    background: #fafafa;
  }

  .owner-post-media-section__dropzone-primary {
    color: #444;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }

  .owner-post-media-section__dropzone-secondary {
    margin-top: 8px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
  }

  .owner-post-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .owner-post-media-grid__empty {
    grid-column: 1 / -1;
  }

  .owner-post-media-section__empty {
    padding: 28px 16px;
    border: 1px dashed #e0e0e0;
    border-radius: 10px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  .owner-post-media-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .owner-post-media-card__select {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .owner-post-media-card__select-input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .owner-post-media-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  }

  .owner-post-media-card:hover .owner-post-media-card__select,
  .owner-post-media-card[data-selected="true"] .owner-post-media-card__select {
    opacity: 1;
  }

  .owner-post-media-card[data-selected="true"] {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
  }

  .owner-post-media-card__checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11px;
    height: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }

  .owner-post-media-card__checkmark svg {
    width: 11px;
    height: 11px;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .owner-post-media-card[data-selected="true"] .owner-post-media-card__select {
    background: #111;
    border-color: #111;
  }

  .owner-post-media-card[data-selected="true"] .owner-post-media-card__checkmark {
    opacity: 1;
  }

  .owner-post-media-card__thumb {
    aspect-ratio: 2 / 3;
    background: #e8e4e0;
  }

  .owner-post-media-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .owner-post-media-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .owner-post-media-card__body {
    padding: 10px 12px 12px;
  }

  .owner-post-media-card__filename-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
  }

  .owner-post-media-card__filename {
    min-width: 0;
    overflow: hidden;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .owner-post-media-card__drag {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    cursor: grab;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
  }

  .owner-post-media-card__drag:active {
    cursor: grabbing;
  }

  .owner-post-media-card__position {
    margin-bottom: 10px;
    color: #bbb;
    font-size: 13px;
    line-height: 1.4;
  }

  .owner-post-media-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .owner-post-media-card__actions form {
    margin: 0;
  }

  .owner-post-media-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: #fff;
    padding: 4px 10px;
    color: #555;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .owner-post-media-card__action:hover {
    background: #f5f5f5;
  }

  .owner-post-media-card__action--delete {
    border-color: #f5c6c6;
    color: #e05555;
  }

  .owner-post-media-card__action--delete:hover {
    background: #fff0f0;
  }

  .owner-post-media-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .owner-post-media-card__tag {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
  }

  .owner-post-media-bulk-bar {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px 12px 20px;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .owner-post-media-bulk-bar[data-state="visible"] {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }

  .owner-post-media-bulk-bar__count {
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
  }

  .owner-post-media-bulk-bar__count span {
    color: #fff;
    font-weight: 600;
  }

  .owner-post-media-bulk-bar__divider {
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: #333;
  }

  .owner-post-media-bulk-bar__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .owner-post-media-bulk-bar__action--delete {
    color: #ff8080;
  }

  .owner-post-media-bulk-bar__action--delete:hover {
    background: rgba(224, 85, 85, 0.15);
  }

  .owner-post-media-bulk-bar__action--cancel {
    color: #666;
  }

  .owner-post-media-bulk-bar__action--cancel:hover {
    background: #222;
    color: #aaa;
  }
}

@media (min-width: 768px) {
  .homepage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .homepage-grid {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, 187.5px);
  }
}

@media (min-width: 1280px) {
  .homepage-grid {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, 187.5px);
  }
}

@media (max-width: 767px) {
  .homepage-nav,
  .homepage-intro,
  .homepage-stats,
  .homepage-filter-bar,
  .homepage-main,
  .public-not-found,
  .post-page__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-posts-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-post-detail {
    margin: -24px;
  }

  .homepage-nav {
    min-height: 72px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .homepage-nav__title {
    font-size: 22px;
  }

  .homepage-nav__right {
    display: none;
  }

  .homepage-nav__mobile-menu {
    display: block;
  }

  .homepage-nav__title--mobile {
    display: inline-flex;
  }

  .homepage-nav__mobile-panel {
    top: calc(72px + 8px);
  }

  .post-page__breadcrumb--desktop {
    display: none;
  }

  .post-page__mobile-title {
    display: block;
  }

  .post-page__mobile-title-text {
    text-align: center;
  }

  .post-page__content {
    padding-top: 20px;
  }

  .post-page__media-tabs {
    padding: 16px 20px;
  }

  .homepage-intro {
    padding-top: 80px;
    padding-bottom: 72px;
  }

  .homepage-stats__inner {
    flex-wrap: wrap;
    gap: 16px 0;
  }

  .homepage-stats__item {
    padding: 0 28px;
  }

  .homepage-filter-bar__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
  }

  .homepage-country-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  .homepage-country-row[data-open="true"] {
    max-height: 45vh;
    padding: 12px 20px 16px;
  }

  .owner-posts-page__toolbar-controls,
  .owner-posts-page__pagination,
  .owner-post-card {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-stats-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-stats-page__summary {
    grid-template-columns: 1fr;
  }

  .owner-stats-page__filters-card {
    padding: 20px;
  }

  .owner-stats-page__custom-range-form {
    align-items: stretch;
  }

  .owner-stats-page__range-arrow {
    align-self: center;
    padding-bottom: 0;
  }

  .owner-stats-page__activity-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-stats-page__activity-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-stats-page__activity-side {
    align-items: flex-start;
    text-align: left;
  }

  .owner-dashboard-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-dashboard-split {
    grid-template-columns: 1fr;
  }

  .owner-dashboard-card--side {
    position: static;
  }

  .owner-post-detail__header-inner,
  .owner-post-detail__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .owner-post-detail__header-inner,
  .owner-post-detail__actions,
  .owner-post-detail-form__grid,
  .owner-post-media-section__header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

  .owner-post-card__actions {
    justify-content: flex-end;
  }
}
