html, body, #app {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: #111827;
    color: #e5e7eb;
}

/* Full-viewport shell — no wasted chrome */
.owner-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: #111827;
}

.owner-header {
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

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

.owner-header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.owner-header__logo {
    height: 32px;
    width: auto;
    display: block;
}

/* Same high-contrast circular style as photo-tile actions; slightly smaller for header */
.owner-header__guest-link.photo-tile__btn {
    width: 40px;
    height: 40px;
    text-decoration: none;
    flex-shrink: 0;
}

.owner-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner-header__phone {
    font-size: 13px;
    color: #9ca3af;
}

.owner-main {
    flex: 1 1 auto;
    padding: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

/* Login full page */
.login-page {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    background: #111827;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 16px;
}

.login-sub {
    text-align: center;
    color: #9ca3af;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.45;
}

.login-phone input,
.login-code input {
    font-size: 22px !important;
    letter-spacing: 0.04em;
    text-align: center;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* Listing cards */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.listing-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s ease;
}

.listing-card:hover {
    border-color: #5eead4;
}

.listing-card--unpublished .listing-card__media {
    filter: grayscale(1);
    opacity: 0.72;
}

.listing-card--unpublished:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.listing-card__media {
    position: relative;
}

.listing-card__img {
    aspect-ratio: 4 / 3;
    width: 100%;
    object-fit: cover;
    display: block;
    background: #1f2937;
}

.listing-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 13px;
}

.listing-card__guest-link.photo-tile__btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    z-index: 2;
}

.listing-card__body {
    padding: 14px 16px 16px;
}

.listing-card__name {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px;
}

.listing-card__city {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.empty-state {
    text-align: center;
    padding: 64px 16px;
    color: #9ca3af;
    font-size: 16px;
}

/* Edit listing */
.edit-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
}

.edit-back__icon {
    flex-shrink: 0;
    display: block;
}

.edit-back:hover {
    color: #e5e7eb;
}

.edit-section {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.edit-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.field-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* All display toggles in one card — left-aligned label + switch */
.toggle-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.toggle-card__title {
    margin: 0 0 12px;
    font-size: 18px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.toggle-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.toggle-row:last-of-type {
    padding-bottom: 0;
}

.toggle-label {
    font-size: 15px;
    line-height: 1.35;
    flex: 0 1 auto;
}

.toggle-row .n-switch {
    flex: 0 0 auto;
}

/* Photo grid — large thumbs, high-contrast icon actions */
.photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.photo-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-tile__actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 14px 12px 12px;
    /* Stronger scrim so icons stay readable on bright photos */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        transparent 100%
    );
    justify-content: center;
    align-items: center;
}

.photo-tile__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #f9fafb;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.photo-tile__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.photo-tile__btn--danger {
    border-color: rgba(248, 113, 113, 0.85);
    background: rgba(127, 29, 29, 0.92);
    color: #fecaca;
}

.photo-tile__btn:not(:disabled):active {
    opacity: 0.9;
}

.photo-upload-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Field fill is one step above canvas (themeOverrides Input.color = #1f2937).
   Pin the wrapper so nested Naive layers don't fall back to bodyColor. */
.n-input .n-input-wrapper {
    background-color: #1f2937 !important;
}
