* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
    background: #f4f5f7;
    color: #222;
}

/* 홈페이지(공개 매물 목록) 전용 배경: 로고와 같은 갈색 타이어자국 이미지 */
body.site-home-bg {
    background: url('home-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
}

.login-box {
    margin-top: 80px;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.login-box h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.login-box .subtitle {
    margin: 0 0 24px;
    color: #777;
    font-size: 14px;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.login-box button:hover {
    background: #444;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-dashboard-link {
    margin-left: 100px;
}

/* 저장 중 화면 잠금 오버레이 */
.page-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(60, 60, 60, 0.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.page-loading-overlay.open {
    display: flex;
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: page-loading-spin 0.8s linear infinite;
}

@keyframes page-loading-spin {
    to { transform: rotate(360deg); }
}

/* 토스트 알림 (몇 초 뒤 자동으로 사라짐) */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash.flash-hide {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-error { background: #fdecea; color: #b3261e; }
.flash-warning { background: #fff4e5; color: #8a5a00; }
.flash-info { background: #e8f0fe; color: #1a4fba; }

/* 모든 페이지 상단 공통 브랜드 바 (로고 + 검색창).
   내부(.site-header-inner)를 본문과 같은 .container(-wide/-home)로 감싸서,
   로고/검색창이 그 페이지 본문 좌측 라인과 항상 맞춰지게 한다. */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.site-header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-header-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.site-header-brand img {
    height: 44.2px;
    width: auto;
    max-width: 160px;
    display: block;
    border: 2px solid #000;
}

.site-header-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 420px;
    background: #f2f3f5;
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
}

.site-header-search input {
    flex: 1;
    border: none;
    background: none;
    font-size: 13px;
    outline: none;
}

.site-header-search button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 10px;
}

.site-title-link {
    color: inherit;
    text-decoration: none;
}

/* 넓은 컨테이너 (목록/상세 페이지) */
.container-wide {
    max-width: 1080px;
}

/* 공개 홈 화면 전용 컨테이너: 화면이 큰 경우 카드가 최대 5개까지 보이도록 더 넓게 */
.container-home {
    max-width: 1600px;
}

/* 검색바 */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-bar.dash-tight, .bulk-toolbar.dash-tight {
    margin-bottom: 18px;
}

.dashboard-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-toolbar-row .search-bar {
    max-width: 420px;
    flex: 1;
    min-width: 260px;
}

.dashboard-toolbar-row .search-bar select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
}

/* 상태 필터 칩 */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #e5e5e5;
}

.filter-chip.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* 홈(공개 목록) 전용 필터 - 관리자 대시보드의 .filter-bar/.filter-chip와는
   별개로, 세그먼트 컨트롤처럼 한 트랙 안에서 움직이는 모양으로 만든다. */
.home-filter-track {
    display: inline-flex;
    gap: 4px;
    background: rgba(255,255,255,0.55);
    padding: 4px;
    border-radius: 999px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.home-filter-chip {
    padding: 7px 15px;
    border-radius: 999px;
    color: #7d6f57;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
}

.home-filter-chip.active {
    background: #b1501f;
    color: #fff;
}

.recent-section {
    margin-bottom: 38px;
    padding-bottom: 34px;
    border-bottom: 5px solid #fff;
}

.recent-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    font-size: 14px;
}

.pagination a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.pagination .disabled {
    color: #ccc;
}

.pagination-current {
    color: #888;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 100px;
}

.list-end-spacer {
    height: 0;
}

.list-end-spacer.list-end-spacer-active {
    height: 200px;
}

/* 카드 그리드 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* 화면이 좁아져도(모바일 사이즈) 카드가 줄어드는 대신, 컬럼 개수는 최소 2개를 유지.
   뷰포트 기준(media)이 아니라 .home-main의 실제 폭 기준(container)으로
   판단해야, 좌측 사이드바가 자리를 차지해서 좁아진 경우도 정확히 잡힌다. */
@container (max-width: 700px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 화면이 커져서 .home-main 폭이 충분해지면, auto-fill로 계속 늘어나는 대신
   최대 5개 컬럼에서 멈추고 그 안에서만 균등하게 늘어나게 한다. */
@container (min-width: 1160px) {
    .card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.bike-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bike-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.bike-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eee;
}

/* 매물 보기 홈 화면의 썸네일만 30% 더 길게 (번장검색 등 다른 곳은 그대로) */
body.site-home-bg .bike-card-thumb {
    aspect-ratio: 4 / 4.29;
}

.bike-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bike-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.badge-selling { background: #2b8a3e; }
.badge-reserved { background: #e8590c; }
.badge-sold { background: #868e96; }
.badge-ad { background: #495057; }

.bike-card-body {
    padding: 12px 14px;
    position: relative;
}

.card-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.card-share-btn:hover {
    background: rgba(0,0,0,0.12);
}

.card-share-btn.share-copied {
    background: #2b8a3e;
    color: #fff;
}

.bike-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* 공유 버튼(.card-share-btn)이 있는 카드(_bike_cards.html)에서만, 우측 상단
   버튼과 겹치지 않게 여유를 두고 한 줄로 유지한다 (번장검색 카드는 공유
   버튼이 없어서 이 클래스를 안 쓰고 기존처럼 줄바꿈된다). */
.bike-card-title-clip {
    margin-right: 34px;
    overflow: hidden;
    white-space: nowrap;
}

.bike-card-title-inner {
    display: inline-block;
}

.bike-card-year {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.bike-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.bike-card-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eee4d2;
    color: #7d6f57;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
}

.bike-card-meta-chip svg {
    width: 10px;
    height: 10px;
    color: #8a3c16;
    flex-shrink: 0;
}

.bike-card-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.bike-card-color {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #7d6f57;
    background: #eee4d2;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.bike-card-color-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8a3c16;
}

.bike-card-price {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.bike-card-price-unit {
    font-family: 'Noto Sans KR', -apple-system, "Malgun Gothic", sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #7d6f57;
    margin-left: 2px;
}

.bike-card-sob {
    font-size: 12px;
    color: #aaa;
}

.empty-state {
    text-align: center;
    color: #888;
    padding: 80px 0;
}

.detail-box {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.gallery-main {
    position: relative;
    aspect-ratio: 16 / 9;
    background: transparent;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(0.97);
    transform-origin: center;
    border-radius: 16px;
}

/* 상세보기 메인 이미지의 배지/화살표/페이지번호를 가운데쪽으로 10px 이동 */
.gallery-main .badge {
    top: 18px;
    left: 18px;
}

.gallery-main .gallery-arrow-left {
    left: 22px;
}

.gallery-main .gallery-arrow-right {
    right: 22px;
}

.gallery-main .gallery-counter {
    bottom: 22px;
    right: 22px;
}

.gallery-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.gallery-arrow-left { left: 12px; }
.gallery-arrow-right { right: 12px; }

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}

.detail-info {
    padding: 20px;
}

.detail-admin-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.detail-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2dcc8;
    background: transparent;
    color: #7d6f57;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
}

.detail-ghost-btn svg {
    width: 13px;
    height: 13px;
}

.detail-ghost-btn:hover {
    border-color: #b1501f;
    color: #241d14;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.detail-title-row h1 {
    margin: 0;
}

.detail-sob-chip {
    display: inline-block;
    margin-top: 4px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    color: #7d6f57;
    background: #eee4d2;
    padding: 3px 8px;
    border-radius: 6px;
}

.detail-info .badge {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
}

.detail-year {
    color: #888;
    font-size: 14px;
    margin: 4px 0;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 14px 0 16px;
}

.detail-price-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #8a3c16;
    background: #f2ddc0;
    padding: 3px 8px;
    border-radius: 6px;
}

.detail-price-value {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}

.detail-price-unit {
    font-size: 14px;
    color: #7d6f57;
    font-weight: 500;
}

.detail-cta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.detail-cta svg {
    width: 16px;
    height: 16px;
}

.detail-cta-swap {
    background: #fff;
    color: #241d14;
    border-color: #e2dcc8;
}

.detail-cta-swap:hover {
    border-color: #b1501f;
    color: #8a3c16;
}

.detail-cta-kakao {
    flex: 1.4;
    background: #FEE500;
    color: #391B1B;
}

.detail-cta-kakao:hover {
    background: #f5db00;
}

.detail-section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #7d6f57;
    margin: 0 0 10px;
}

.detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.detail-stat-tile {
    background: #f3ecdd;
    border-radius: 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #fff;
    color: #8a3c16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-stat-icon svg {
    width: 13px;
    height: 13px;
}

.detail-stat-value {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: break-word;
}

.detail-stat-label {
    font-size: 11px;
    color: #7d6f57;
}

.detail-tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e2eee2;
    color: #276b39;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 999px;
}

.detail-tag svg {
    width: 11px;
    height: 11px;
}

.detail-note-card {
    background: #f3ecdd;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
}

.detail-note-card svg {
    width: 16px;
    height: 16px;
    color: #8a3c16;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-note-card h4 {
    margin: 0 0 4px;
    font-size: 12px;
    color: #7d6f57;
    font-weight: 700;
}

.detail-note-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.detail-sob {
    color: #aaa;
    font-size: 13px;
}

.detail-note {
    color: #999;
    font-size: 13px;
    margin-top: 16px;
    text-align: center;
}

.photo-thumb-row {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    overflow-x: auto;
}

.photo-thumb-row img {
    width: 100.8px;
    height: 75.6px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.thumb-item {
    cursor: pointer;
    opacity: 0.55;
    border: 0.4px solid transparent;
    transition: opacity 0.15s, border-color 0.15s;
}

.thumb-item:hover {
    opacity: 0.85;
}

.thumb-item.active {
    opacity: 1;
    border-color: #222;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.spec-table th, .spec-table td {
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.spec-table th {
    width: 90px;
    color: #888;
    font-weight: 500;
}

/* 관리자 테이블 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    color: #888;
    font-weight: 600;
    font-size: 12px;
}

/* 방문기록: 레퍼러 값(URL)이 길어서 표가 옆으로 늘어나지 않도록 폭 고정 */
.visit-referrer-col {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* 관리자 표(테이블)가 많은 화면(대시보드/목록 등)을 좁은 화면에서도
   깨지지 않게, 칸이 찌그러들지 않고 옆으로 스크롤되도록 한다. */
@media (max-width: 768px) {
    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table th, .admin-table td {
        white-space: nowrap;
    }

    /* 제조사/모델명처럼 길어질 수 있는 칸은 한 줄에 욱여넣지 않고
       줄바꿈시켜서, 그 한 칸 때문에 표 전체가 옆으로 밀리지 않게 함 */
    .mobile-wrap-col {
        white-space: normal;
        min-width: 110px;
    }

    /* 표 안 사진(썸네일)도 모바일에서는 더 작게 보여줘서 한눈에 더
       많은 정보(가격/상태)가 스크롤 없이 들어오게 함 */
    .admin-table .dash-thumb,
    .admin-table .dash-thumb-placeholder {
        width: 60px;
        height: 64px;
    }

    /* 대시보드 매물 목록: 모바일에서는 한눈에 덜 중요한 칸(사진수/공유/
       매입가)을 숨겨서 스크롤 없이도 핵심 정보(사진/모델명/가격/상태)가
       먼저 보이게 함. 숨긴 정보는 행을 눌러 상세 화면에서 볼 수 있다. */
    .mobile-hide-col {
        display: none;
    }

    /* 대시보드로 돌아가기 링크의 넓은 여백이 좁은 화면에서 어색하게
       벌어지지 않도록, 모바일에서는 다른 topbar 요소처럼 자연스럽게 줄바꿈되게 함 */
    .topbar-dashboard-link {
        margin-left: 0;
    }

    /* 대시보드 매물 목록: 표 전체가 옆으로 밀리는 대신, 행(매물) 하나만
       독립적으로 좌우 스크롤되고 헤더는 그 자리에 고정되게 한다. */
    .mobile-row-scroll-table {
        overflow-x: visible;
    }
    .mobile-row-scroll-table,
    .mobile-row-scroll-table thead,
    .mobile-row-scroll-table tbody {
        display: block;
    }
    .mobile-row-scroll-table thead tr {
        display: flex;
    }
    .mobile-row-scroll-table tbody tr {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-row-scroll-table th,
    .mobile-row-scroll-table td {
        flex: 0 0 auto;
    }
    .mobile-row-scroll-table .col-check { width: 36px; }
    .mobile-row-scroll-table .col-photo { width: 70px; }
    .mobile-row-scroll-table .col-model { width: 130px; }
    .mobile-row-scroll-table .col-price { width: 90px; }
    .mobile-row-scroll-table .col-status { width: 70px; }
    .mobile-row-scroll-table .col-contract { width: 110px; }

    .topbar-inline-gap {
        margin-left: 0 !important;
    }

    /* 매출 통계 그래프: 축소해서 글자가 뭉개지는 대신, 원래 크기를
       유지하고 옆으로 스크롤해서 보게 한다 */
    .sales-chart-svg-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sales-chart-svg {
        width: 600px;
    }
}

.bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bulk-toolbar select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
}

.dash-thumb {
    width: 112px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: inline-block;
}

.dash-thumb-placeholder {
    width: 112px;
    height: 120px;
    border-radius: 6px;
    background: #eee;
    color: #aaa;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 사진 업로드 폼 */
.photo-upload-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 8px;
}

.photo-upload-form input[type="file"] {
    flex: 1;
    font-size: 13px;
}

.photo-upload-form button {
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.upload-hint {
    color: #999;
    font-size: 12px;
    margin: 8px 0 20px;
}

.marketplace-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.marketplace-modal-overlay.open {
    display: flex;
}

.marketplace-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 520px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.marketplace-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.marketplace-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
    resize: vertical;
    margin-bottom: 10px;
    background: #fafafa;
    color: #333;
}

.new-photo-preview.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.new-photo-preview.drag-over {
    outline: 2px dashed #222;
    outline-offset: 2px;
}

.new-photo-preview {
    cursor: grab;
}

.photo-primary-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffd43b;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* 사진 확대보기 / 편집기 */
.photo-viewer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.photo-viewer-overlay.open {
    display: flex;
}

.photo-viewer-box {
    background: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    /* 화면의 약 5/6 크기로 채운다 */
    width: 83.33vw;
    height: 83.33vh;
    display: flex;
    flex-direction: column;
}

.photo-viewer-btn,
.photo-viewer-tool {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #333;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.photo-viewer-btn:hover,
.photo-viewer-tool:hover {
    background: #444;
}

.photo-viewer-tool.active {
    background: #fff;
    color: #1c1c1c;
}

.photo-viewer-tool-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 12px;
}

/* 확대보기 위에 뜨는 아이콘 버튼 (닫기 / 편집하기) */
.photo-viewer-icon-btn {
    position: absolute;
    z-index: 5;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-icon-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.photo-viewer-close {
    right: 12px;
}

.photo-viewer-close:hover {
    background: #b3261e;
}

.photo-viewer-edit {
    left: 12px;
    background: #ffb020;
    color: #1c1c1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.photo-viewer-edit:hover {
    background: #ffa000;
}

/* 편집 도구모음: 사진 영역과 겹치지 않도록 그 아래 별도 칸에 배치 */
.photo-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background: #262626;
    padding: 10px 14px;
    flex-shrink: 0;
}

.photo-editor-hint {
    color: #ccc;
    font-size: 11px;
    white-space: nowrap;
}

.photo-viewer-stage {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 로고/아이콘 설정 */
.branding-preview {
    display: block;
    max-width: 100%;
    max-height: 120px;
    margin-bottom: 12px;
    background: #f4f5f7;
    border-radius: 8px;
    padding: 10px;
}

.branding-preview-icon {
    max-width: 64px;
    max-height: 64px;
}

/* 매물 보기 홈 좌측 사이드바 */
.home-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.home-sidebar {
    flex: 0 0 200px;
    padding: 20px 20px 12px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
}

.home-sidebar-message {
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    white-space: pre-line;
}

.store-location-links {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.side-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.side-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 12px;
    border-radius: 11px;
    border: 1px solid transparent;
    cursor: pointer;
}

.side-cta-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.side-cta-ghost {
    background: rgba(255,255,255,0.6);
    color: #241d14;
    border-color: rgba(36,29,20,0.16);
}

.side-cta-ghost:hover {
    border-color: #b1501f;
    color: #8a3c16;
}

.side-cta-primary {
    background: #b1501f;
    color: #fff;
}

.side-cta-primary:hover {
    background: #8a3c16;
}

/* 대시보드 요청 관리 버튼들(방문 요청/매입 문의 등)의 미처리 건수 레드닷 */
.badge-nav-btn {
    position: relative;
}

.pending-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e03131;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.row-delete-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f1f2f4;
    color: #888;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.row-delete-btn:hover {
    background: #e03131;
    color: #fff;
}

.delete-confirm-photos {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 12px;
}

.delete-confirm-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    text-align: center;
}

.delete-confirm-photo-col img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.store-location-title {
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.store-location-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.map-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
}

.map-icon-naver {
    background: #03C75A;
}

.map-icon-kakao {
    background: #FEE500;
}

/* 관리자 홈 화면 멘트 설정 - 글꼴/크기/굵게/이탤릭 컨트롤을 컴팩트하게 배치 */
.font-settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.font-settings-row .form-row {
    margin-bottom: 0;
}

.font-settings-checkboxes {
    gap: 20px;
}

.font-settings-checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 0 !important;
    cursor: pointer;
}

/* 관리자 홈 화면 멘트 설정 페이지의 미리보기 (실제 사이드바와 동일한 폭) */
.home-sidebar-preview {
    width: 200px;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    min-height: 120px;
}

.home-main {
    flex: 1;
    min-width: 0;
    container-type: inline-size;
}

@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .home-sidebar {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }

    .home-main {
        width: 100%;
    }
}

/* 공개 홈페이지 상단 로고 (가운데, 기존 대비 4배 크기) */
.site-logo-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.site-logo-large {
    display: block;
    height: 144px;
    width: auto;
    max-width: 100%;
}

.photo-viewer-stage img,
.photo-viewer-stage canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: crosshair;
}

.photo-viewer-stage img {
    transform-origin: center;
    touch-action: none;
}

.photo-viewer-stage canvas {
    touch-action: none;
}

/* 확대보기 줌 버튼 (+ / -) */
.zoom-controls {
    position: absolute;
    z-index: 5;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 버튼 */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-danger {
    padding: 10px 20px;
    background: #b3261e;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    padding: 5px 10px;
    background: #fff;
    color: #444;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #f4f5f7;
}

/* 매물 상세 액션바: 예약/판매완료 버튼은 각 상태 뱃지(badge-reserved/badge-sold)와 같은 색으로 */
.btn-reserved {
    display: inline-block;
    padding: 10px 20px;
    background: #e8590c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-reserved:hover {
    background: #d14e0a;
}

.btn-sold {
    display: inline-block;
    padding: 10px 20px;
    background: #868e96;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-sold:hover {
    background: #757c84;
}

/* 예약 관리 패널 (STEP 12) */
.reserve-panel {
    margin-bottom: 20px;
}

/* 매물 상세 페이지: 사진/제목 바로 밑 예약·판매·삭제 액션바 */
.detail-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.badge.detail-title-badge {
    position: relative;
    top: -5px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    padding: 6px 14px;
    font-size: 16px;
    border-radius: 999px;
}

.detail-action-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.detail-action-inline-form input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}

/* 매물 상세 페이지: 공개/관리자 정보 섹션의 보기<->수정 전환 */
.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.reserve-panel .form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.reserve-status {
    font-size: 14px;
    margin: 0 0 8px;
}

.reserve-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

/* 등록/수정 폼 */
.bike-form {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    max-width: 520px;
}

.bike-form h3 {
    font-size: 14px;
    color: #888;
    margin: 20px 0 12px;
}

.bike-form h3:first-child {
    margin-top: 0;
}

/* 매물 등록 폼 안의 사진 추가 (STEP 8 사진 관리와 별개로, 등록과 동시에 업로드) */
.new-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.new-photo-add-tile {
    width: 90px;
    height: 90px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    background: #fafafa;
}

.new-photo-add-tile:hover {
    border-color: #999;
    color: #666;
}

.new-photo-add-tile input[type="file"] {
    display: none;
}

.new-photo-add-icon {
    font-size: 22px;
    line-height: 1;
}

.new-photo-preview {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

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

.new-photo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-photo-remove-btn:hover {
    background: #b3261e;
}

/* 매물 상세 페이지: "수정하기" 전까지 사진 추가/삭제/저장 컨트롤 숨김.
   "수정하기" 타일은 "사진 추가" 타일과 같은 자리(그리드 맨 끝)에서 서로 자리를 바꾼다. */
#photoManagerWrap:not(.editing) .new-photo-add-tile:not(.photo-edit-toggle-tile),
#photoManagerWrap:not(.editing) .new-photo-remove-btn,
#photoManagerWrap:not(.editing) #photoSaveBtn {
    display: none !important;
}

#photoManagerWrap.editing .photo-edit-toggle-tile {
    display: none !important;
}

.photo-edit-toggle-tile {
    cursor: pointer;
    font: inherit;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.auto-grow-textarea {
    resize: none;
    overflow: hidden;
}

/* 개인정보 수집·이용 동의 (매입/대차 문의) */
.consent-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #b1501f;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #1971c2;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.privacy-consent-text {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

/* 문의 모달(매입/대차) 공통 리디자인 */
.inquiry-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 28px 0 0;
}

.inquiry-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f2ddc0;
    color: #8a3c16;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inquiry-icon svg {
    width: 18px;
    height: 18px;
}

.inquiry-title {
    margin: 0;
    font-size: 17px;
}

.inquiry-tab-track {
    display: inline-flex;
    gap: 4px;
    background: #eee4d2;
    padding: 4px;
    border-radius: 999px;
    margin: 14px 0 4px;
}

.inquiry-tab-chip {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7d6f57;
    cursor: pointer;
    border: none;
    background: transparent;
}

.inquiry-tab-chip.active {
    background: #b1501f;
    color: #fff;
}

.inquiry-bike-ref {
    display: none;
    align-items: center;
    gap: 10px;
    background: #eee4d2;
    border-radius: 11px;
    padding: 9px 12px;
    margin-bottom: 14px;
}

.inquiry-bike-ref.show {
    display: flex;
}

.inquiry-bike-ref-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff;
    color: #8a3c16;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inquiry-bike-ref-icon svg {
    width: 13px;
    height: 13px;
}

.inquiry-bike-ref-text {
    font-size: 12px;
    color: #7d6f57;
    line-height: 1.4;
}

.inquiry-bike-ref-text b {
    color: #241d14;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.inquiry-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.inquiry-dropzone {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px dashed #ddd2b8;
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 14px;
    color: #7d6f57;
    cursor: pointer;
}

.inquiry-dropzone:hover,
.inquiry-dropzone.drag-over {
    border-color: #b1501f;
}

.inquiry-dropzone-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eee4d2;
    color: #8a3c16;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inquiry-dropzone-icon svg {
    width: 15px;
    height: 15px;
}

.inquiry-dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inquiry-dropzone-text b {
    font-size: 12.5px;
    color: #241d14;
    font-weight: 700;
}

.inquiry-dropzone-text span {
    font-size: 11px;
}

.inquiry-field {
    margin-bottom: 12px;
}

.inquiry-field-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.inquiry-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7d6f57;
    margin-bottom: 6px;
}

.inquiry-field label svg {
    width: 13px;
    height: 13px;
    color: #8a3c16;
    flex-shrink: 0;
}

.inquiry-req {
    color: #b1501f;
    font-weight: 700;
}

.inquiry-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2dcc8;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fffdf8;
    color: #241d14;
}

.inquiry-field input:focus {
    outline: none;
    border-color: #b1501f;
}

.inquiry-field-mono input {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.inquiry-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: #b1501f;
    color: #fff;
    margin-top: 4px;
}

.inquiry-submit:hover {
    background: #8a3c16;
}

.inquiry-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 관리자 상세 2단 패널 */
.admin-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

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

.panel {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.panel h3 {
    font-size: 14px;
    color: #888;
    margin: 0 0 10px;
}

.delete-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.delete-form input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.archived-row {
    opacity: 0.5;
}

.row-link {
    cursor: pointer;
}

.purchase-price-cell {
    cursor: pointer;
}

.purchase-price-value {
    display: inline-block;
    filter: blur(6px);
    transition: filter 0.15s ease;
    user-select: none;
}

.purchase-price-value.revealed {
    filter: none;
    user-select: text;
}

.admin-table tbody tr:not(.archived-row):hover {
    background: #fafafa;
}

/* 상태 아이콘 클릭 -> 빠른 상태변경 메뉴 */
.status-menu {
    position: relative;
    display: inline-block;
}

.status-menu summary {
    list-style: none;
    cursor: pointer;
}

.status-menu summary::-webkit-details-marker {
    display: none;
}

.status-menu-body {
    /* 표(.admin-table)의 overflow:hidden에 잘리지 않도록 화면 기준 고정 위치를 쓰고,
       실제 top/left는 JS가 열릴 때마다 계산해서 넣는다 (아래쪽 공간이 부족하면 위로 펼침) */
    position: fixed;
    z-index: 1000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.status-menu-body form {
    margin: 0;
}

.status-menu-action {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: none;
    background: #f4f5f7;
    color: #222;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.status-menu-action:hover {
    background: #e9eaec;
}

.status-menu-action-danger {
    background: #fdecea;
    color: #b3261e;
}

.status-menu-action-danger:hover {
    background: #f8d7d3;
}

.status-menu-note {
    font-size: 12px;
    color: #999;
    padding: 4px 6px;
}

/* 대시보드 상단 버튼 드롭다운 ("설정 ▾", "이름 ▾") */
.topbar-menu {
    position: relative;
    display: inline-block;
}

.topbar-menu summary {
    list-style: none;
    cursor: pointer;
}

.topbar-menu summary::-webkit-details-marker {
    display: none;
}

.topbar-menu-body {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.topbar-menu-arrow {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

.topbar-menu-action {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f4f5f7;
    color: #222;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-menu-action:hover {
    background: #e9eaec;
}

.dashboard-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1.2px;
    margin-bottom: 18px;
}

.dashboard-announcement-line {
    display: block;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 14px;
    color: #5f4b00;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-announcement-line:hover {
    background: #ffecb3;
}

.dashboard-announcement-empty {
    color: #999;
    font-size: 13px;
    margin: 0 0 18px;
}

/* 대시보드 통계 (STEP 17) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-tile {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.stat-tile-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.stat-tile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-tile-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.stat-tile-value {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.stat-tile-value.stat-selling { color: #2b8a3e; }
.stat-tile-value.stat-reserved { color: #e8590c; }
.stat-tile-value.stat-sold { color: #868e96; }

/* 업데이트 로그 (git 커밋 기록) */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-entry {
    background: #fff;
    border-radius: 10px;
    padding: 0 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.changelog-entry summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
}

.changelog-entry summary::-webkit-details-marker {
    display: none;
}

.changelog-entry summary::before {
    content: '\25b8';
    color: #bbb;
    font-size: 12px;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}

.changelog-entry[open] summary::before {
    content: '\25be';
}

.changelog-date {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
    width: 130px;
}

.changelog-summary {
    font-size: 14px;
    font-weight: 600;
}

.changelog-body {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    padding: 0 0 16px 26px;
}

.changelog-body-empty {
    color: #aaa;
}

/* 공유하기 등에서 쓰는 토스트 메시지 */
.sob-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.sob-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 404/403/500 공용 오류 페이지 */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page-code {
    font-size: 15px;
    color: #999;
    margin: 0 0 8px;
}

.error-page h1 {
    font-size: 22px;
    margin: 0 0 12px;
}

.error-page p {
    color: #666;
    margin: 0 0 24px;
}

/* 매출 통계 페이지: 월별 매출/이익 막대그래프 */
.sales-chart-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.sales-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sales-chart-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sales-chart-svg-wrap {
    position: relative;
}

.sales-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.sales-chart-gridline {
    stroke: #eee;
    stroke-width: 1;
}

.sales-chart-axis-label {
    fill: #888;
    font-size: 11px;
}

.sales-chart-bar {
    cursor: pointer;
    transition: opacity 0.1s ease;
}

.sales-chart-bar:hover {
    opacity: 0.8;
}

.sales-chart-tooltip {
    position: absolute;
    display: none;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.sales-chart-tooltip.show {
    display: block;
}

.sales-chart-table-toggle {
    margin-top: 12px;
}

.sales-chart-table-toggle summary {
    cursor: pointer;
    color: #555;
    font-size: 13px;
}
