/* designre/gallery.html의 .container 영역 전용 스타일 */
body.gallery-page .designre-gallery-container,
body.gallery-page .designre-gallery-container *,
body.gallery-page .designre-gallery-container *::before,
body.gallery-page .designre-gallery-container *::after {
    box-sizing: border-box;
}

body.gallery-page .designre-gallery-container {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f7f4;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6560;
    --text-muted: #9e9890;
    --line: rgba(0, 0, 0, 0.06);
    --line-strong: rgba(0, 0, 0, 0.12);
    --accent: #c4a265;
    --accent-hover: #a8894e;
    --radius: 12px;
    --font-body: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
    --font-serif: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s var(--ease);
    --transition-smooth: 0.6s var(--ease);

    width: 100%;
    max-width: 1440px;
    min-height: 0;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
}

body.gallery-page .designre-gallery-container a {
    color: inherit;
    text-decoration: none;
}

body.gallery-page .designre-gallery-container .section-header {
    max-width: 700px;
    margin: 0 auto clamp(48px, 6vw, 72px);
    text-align: center;
}

body.gallery-page .designre-gallery-container .section-tag {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 20px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: none;
}

body.gallery-page .designre-gallery-container .section-tag::before,
body.gallery-page .designre-gallery-container .section-tag::after {
    display: none;
}

body.gallery-page .designre-gallery-container .section-title {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    word-break: keep-all;
}

body.gallery-page .designre-gallery-container .section-desc {
    max-width: 540px;
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    word-break: keep-all;
}

body.gallery-page .designre-gallery-container .gallery-filters {
    display: flex;
    width: auto;
    max-width: 100%;
    margin: 0 0 48px;
    padding: 0;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.gallery-page .designre-gallery-container .filter-btn {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    padding: 8px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.gallery-page .designre-gallery-container .filter-btn:hover,
body.gallery-page .designre-gallery-container .filter-btn.active,
body.gallery-page .designre-gallery-container .filter-btn[aria-current="page"] {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(197, 168, 128, 0.05);
    box-shadow: none;
    transform: none;
}

body.gallery-page .designre-gallery-container .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.gallery-page .designre-gallery-container .gallery-item {
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: start;
}

body.gallery-page .designre-gallery-container .gallery-item[hidden] {
    display: none !important;
}

body.gallery-page .designre-gallery-container .gallery-card {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: none;
    transition: var(--transition-smooth);
}

body.gallery-page .designre-gallery-container .gallery-card:hover,
body.gallery-page .designre-gallery-container .gallery-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

body.gallery-page .designre-gallery-container .gallery-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

body.gallery-page .designre-gallery-container .gallery-figure {
    display: block;
    height: auto;
    margin: 0;
}

body.gallery-page .designre-gallery-container .gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: none;
    transform: none;
    transition: transform var(--transition-smooth);
}

body.gallery-page .designre-gallery-container .gallery-card:hover img,
body.gallery-page .designre-gallery-container .gallery-card:focus-visible img {
    filter: none;
    transform: scale(1.05);
}

body.gallery-page .designre-gallery-container .gallery-info {
    min-height: 104px;
    padding: 20px;
    flex: 1;
    border-top: 1px solid var(--line);
    background: var(--bg-card);
}

body.gallery-page .designre-gallery-container .gallery-info h3 {
    display: block;
    overflow: hidden;
    margin: 0 0 4px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.gallery-page .designre-gallery-container .gallery-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.5;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.gallery-page .designre-gallery-container .thumb-empty {
    display: flex;
    width: 100%;
    min-height: 260px;
    padding: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-secondary);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

body.gallery-page .designre-gallery-container .gallery-card--empty,
body.gallery-page .designre-gallery-container .gallery-card--empty .gallery-figure {
    min-height: 260px;
}

body.gallery-page .designre-gallery-container .gallery-item[data-category="all"]:only-child {
    grid-column: 1 / -1;
}

body.gallery-page .designre-gallery-container .gallery-scroll-sentinel {
    width: 100%;
    height: 1px;
}

body.gallery-page .designre-gallery-container .gallery-noscript {
    margin: 24px 0 0;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 1024px) {
    body.gallery-page .designre-gallery-container .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.gallery-page .designre-gallery-container {
        padding-inline: 16px;
    }

    body.gallery-page .designre-gallery-container .section-header {
        margin-bottom: 40px;
    }

    body.gallery-page .designre-gallery-container .section-title {
        font-size: clamp(2rem, 11vw, 2.7rem);
        overflow-wrap: anywhere;
    }

    body.gallery-page .designre-gallery-container .section-desc {
        font-size: 0.9rem;
    }

    body.gallery-page .designre-gallery-container .gallery-filters {
        margin-bottom: 36px;
        gap: 8px;
    }

    body.gallery-page .designre-gallery-container .filter-btn {
        padding: 8px 16px;
    }

    body.gallery-page .designre-gallery-container .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.quote-page .quote-list-item {
        transform: translateY(0);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        -webkit-tap-highlight-color: transparent;
        will-change: transform;
    }

    body.quote-page .quote-list-item:active,
    body.quote-page .quote-list-item:focus-within {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
    }

    body.quote-page .quote-list-item .wb-lock-icon {
        transform: translateY(1px);
    }

    body.quote-page .quote-section .section-tag {
        padding: 6px 20px;
        border: 1px solid rgba(37, 99, 235, 0.16);
        border-radius: 100px;
        color: #2563eb;
        background: rgba(37, 99, 235, 0.08);
    }

    body.quote-page .quote-section .section-tag::before,
    body.quote-page .quote-section .section-tag::after {
        content: none;
    }

    body.quote-page .quote-list-item .wb-status.notice {
        color: #b4232c;
        border-color: #cf424b;
        background: rgba(207, 66, 75, 0.05);
    }

    body.quote-page .quote-list-item .wb-status.completed {
        color: #087a4b;
        border-color: #159765;
        background: rgba(21, 151, 101, 0.05);
    }

    body.quote-page .quote-list-item .wb-status.waiting {
        color: #9a6500;
        border-color: #d29a24;
        background: transparent;
    }

    body.quote-page .pagination .page-btn.active {
        color: #ffffff;
        border-color: #1a1a1a;
        background: #1a1a1a;
        box-shadow: none;
    }

    body.quote-page .board-toolbar .btn.btn-primary.btn-write {
        font-weight: 700;
    }
}

body.quote-page .wb-lock-icon {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 11px;
    margin: 3px 7px 0 0;
    border: 1.5px solid #2563eb;
    border-radius: 2px;
    color: #2563eb;
    font-size: 0;
    vertical-align: middle;
    opacity: 1;
}

body.quote-page .wb-lock-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 7px;
    height: 7px;
    border: 1.5px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    transform: translateX(-50%);
}

body.quote-page .wb-lock-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 2px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
    transform: translateX(-50%);
}

/* designre/quote.html content area: desktop only */
@media (min-width: 769px) {
body.quote-page .designre-quote-container,
body.quote-page .designre-quote-container *,
body.quote-page .designre-quote-container *::before,
body.quote-page .designre-quote-container *::after {
    box-sizing: border-box;
}

body.quote-page .designre-quote-section {
    min-height: 0;
    padding: 120px 0 108px;
    border-bottom: 0;
    background: #ffffff;
}

body.quote-page .designre-quote-section .designre-quote-container {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f7f4;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6560;
    --text-muted: #9e9890;
    --line: rgba(26, 26, 26, 0.08);
    --line-strong: rgba(26, 26, 26, 0.18);
    --accent: #c4a265;
    --accent-hover: #a8894e;
    --radius: 6px;
    --font-quote: "Noto Sans KR", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s var(--ease);

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    max-width: 1200px;
    min-height: 0;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
    color: var(--text-primary);
    background: transparent;
    font-family: var(--font-quote);
}

body.quote-page .designre-quote-container a {
    color: inherit;
    text-decoration: none;
}

body.quote-page .designre-quote-container .section-header {
    position: static;
    display: block;
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 0;
    overflow: visible;
    border: 0;
    clip-path: none;
    text-align: center;
    white-space: normal;
}

body.quote-page .designre-quote-container .section-tag {
    display: inline-block;
    min-height: 0;
    margin: 0 0 16px;
    padding: 6px 20px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 100px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body.quote-page .designre-quote-container .section-tag::before,
body.quote-page .designre-quote-container .section-tag::after {
    content: none;
}

body.quote-page .designre-quote-container .section-title {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-quote);
    font-size: clamp(2.15rem, 3.2vw, 2.8rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
}

body.quote-page .designre-quote-container .section-desc {
    display: block;
    max-width: 540px;
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-family: var(--font-quote);
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.8;
    word-break: keep-all;
}

body.quote-page .designre-quote-container .quote-list {
    position: static;
    display: block;
    grid-column: 1 / -1;
    order: initial;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-top: 2px solid var(--text-primary);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

body.quote-page .designre-quote-container .quote-list::before {
    content: none;
    display: none;
}

body.quote-page .designre-quote-container .quote-list-header,
body.quote-page .designre-quote-container .quote-list-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 140px 140px 100px;
    align-items: center;
}

body.quote-page .designre-quote-container .quote-list-header {
    min-height: 0;
    padding: 16px 24px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
}

body.quote-page .designre-quote-container .quote-list-header span {
    padding: 0;
    color: var(--text-secondary);
    font-family: var(--font-quote);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}

body.quote-page .designre-quote-container .quote-list-item {
    min-height: 0;
    margin: 0;
    padding: 20px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text-secondary);
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
    text-decoration: none;
    transform: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.quote-page .designre-quote-container .quote-list-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

body.quote-page .designre-quote-container .quote-list-item:hover,
body.quote-page .designre-quote-container .quote-list-item:active {
    border-left: 0;
    color: var(--text-secondary);
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.quote-page .designre-quote-container .quote-list-item .ql-num,
body.quote-page .designre-quote-container .quote-list-item .ql-title,
body.quote-page .designre-quote-container .quote-list-item .ql-writer,
body.quote-page .designre-quote-container .quote-list-item .ql-date,
body.quote-page .designre-quote-container .quote-list-item .ql-views {
    order: initial;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: var(--font-quote);
    line-height: 1.8;
}

body.quote-page .designre-quote-container .ql-num {
    color: var(--text-muted);
    font-size: 1.08rem;
    font-weight: 500;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

body.quote-page .designre-quote-container .quote-list-item .ql-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    padding-left: 0;
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0;
    text-align: left;
    transition: color var(--transition-fast);
    overflow: hidden;
}

body.quote-page .designre-quote-container .ql-title-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.quote-page .designre-quote-container .quote-list-item:hover .ql-title {
    color: var(--accent);
}

body.quote-page .designre-quote-container .quote-list-item .ql-title:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 4px;
}

body.quote-page .designre-quote-container .quote-list-item .ql-writer {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 400;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.quote-page .designre-quote-container .quote-list-item .ql-date,
body.quote-page .designre-quote-container .quote-list-item .ql-views {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

body.quote-page .designre-quote-container .quote-list-item .ql-writer::after,
body.quote-page .designre-quote-container .quote-list-item .ql-date::after,
body.quote-page .designre-quote-container .quote-list-item .ql-views::before {
    content: none;
}

body.quote-page .designre-quote-container .wb-lock-icon {
    flex: 0 0 14px;
    margin: 3px 0 0;
}

body.quote-page .designre-quote-container .wb-status {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 22px;
    margin-right: 8px;
    padding: 3px 8px;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 100px;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body.quote-page .designre-quote-container .wb-status.notice {
    color: #b4232c;
    border-color: #cf424b;
    background: rgba(207, 66, 75, 0.05);
}

body.quote-page .designre-quote-container .wb-status.completed {
    color: #087a4b;
    border-color: #159765;
    background: rgba(21, 151, 101, 0.05);
}

body.quote-page .designre-quote-container .wb-status.waiting {
    color: #9a6500;
    border-color: #d29a24;
    background: transparent;
}

body.quote-page .designre-quote-container .board-toolbar {
    order: initial;
    display: flex;
    grid-column: 3;
    grid-row: 3;
    width: auto;
    margin: 20px 0 0;
    align-items: center;
    justify-self: end;
    justify-content: flex-end !important;
}

body.quote-page .designre-quote-container .board-toolbar .btn.btn-primary.btn-write {
    display: inline-flex;
    width: auto;
    height: 40px;
    min-height: 40px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--text-primary) !important;
    border-radius: 4px;
    color: var(--text-primary) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-family: var(--font-quote);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

body.quote-page .designre-quote-container .board-toolbar .btn.btn-primary.btn-write:hover,
body.quote-page .designre-quote-container .board-toolbar .btn.btn-primary.btn-write:active {
    color: #ffffff !important;
    border-color: var(--text-primary) !important;
    background: var(--text-primary) !important;
    box-shadow: none !important;
    filter: none;
    transform: none;
}

body.quote-page .designre-quote-container .board-toolbar .btn-icon {
    display: inline;
    color: inherit;
    font-size: 1.1rem;
    font-weight: 400;
}

body.quote-page .designre-quote-container .board-toolbar .btn-write:hover .btn-icon,
body.quote-page .designre-quote-container .board-toolbar .btn-write:active .btn-icon {
    color: #ffffff;
}

body.quote-page .designre-quote-container .pagination {
    order: initial;
    display: flex;
    grid-column: 2;
    grid-row: 3;
    margin: 20px 0 0;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 6px;
}

body.quote-page .designre-quote-container .pagination .page-btn {
    display: flex;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--text-primary);
    background: #ffffff;
    box-shadow: none;
    font-family: var(--font-quote);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.quote-page .designre-quote-container .pagination .page-btn:hover,
body.quote-page .designre-quote-container .pagination .page-btn.active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(196, 162, 101, 0.06);
    box-shadow: none;
}

body.quote-page .designre-quote-container .pagination .page-btn.active {
    color: #ffffff;
    border-color: var(--text-primary);
    background: var(--text-primary);
}
}

/* Quote detail page */
body.quote-detail-page {
    background: #ffffff;
    color: #1a1a1a;
}

body.quote-detail-page .quote-detail-shell,
body.quote-detail-page .quote-detail-shell *,
body.quote-detail-page .quote-detail-shell *::before,
body.quote-detail-page .quote-detail-shell *::after {
    box-sizing: border-box;
}

body.quote-detail-page .quote-detail-shell {
    --quote-detail-text: #1a1a1a;
    --quote-detail-muted: #8c8781;
    --quote-detail-subtle: #6b6560;
    --quote-detail-line: rgba(26, 26, 26, 0.1);
    --quote-detail-line-strong: rgba(26, 26, 26, 0.22);
    --quote-detail-accent: #c4a265;
    --quote-detail-blue: #2563eb;
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 142px clamp(20px, 5vw, 52px) 96px;
    color: var(--quote-detail-text);
    font-family: "Noto Sans KR", sans-serif;
}

body.quote-detail-page .quote-detail-topbar {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.quote-detail-page .quote-detail-back,
body.quote-detail-page .quote-detail-actions a,
body.quote-detail-page .quote-detail-actions button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--quote-detail-line-strong);
    border-radius: 4px;
    color: var(--quote-detail-text);
    background: #ffffff;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.quote-detail-page .quote-detail-back:hover,
body.quote-detail-page .quote-detail-actions a:hover,
body.quote-detail-page .quote-detail-actions button:hover {
    color: #ffffff;
    border-color: var(--quote-detail-text);
    background: var(--quote-detail-text);
}

body.quote-detail-page .quote-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

body.quote-detail-page .quote-detail-actions .delete-button {
    color: #b4232c;
    border-color: rgba(180, 35, 44, 0.34);
}

body.quote-detail-page .quote-detail-actions .delete-button:hover {
    color: #b4232c;
    border-color: #b4232c;
    background: #fff5f5;
}

body.quote-detail-page .quote-detail-head {
    padding: 38px 0 30px;
    border-top: 2px solid var(--quote-detail-text);
    border-bottom: 1px solid var(--quote-detail-line-strong);
}

body.quote-detail-page .quote-detail-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 16px;
    align-items: center;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    color: var(--quote-detail-blue);
    background: rgba(37, 99, 235, 0.08);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

body.quote-detail-page .quote-detail-title {
    max-width: 940px;
    margin: 0;
    color: var(--quote-detail-text);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    word-break: keep-all;
}

body.quote-detail-page .quote-detail-meta {
    display: flex;
    margin-top: 24px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: var(--quote-detail-subtle);
    font-size: 0.96rem;
    line-height: 1.5;
}

body.quote-detail-page .quote-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

body.quote-detail-page .quote-detail-meta b {
    color: var(--quote-detail-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

body.quote-detail-page .quote-detail-meta .private {
    color: #9a6500;
}

body.quote-detail-page .quote-detail-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

body.quote-detail-page .quote-detail-card,
body.quote-detail-page .quote-detail-section {
    border-top: 1px solid var(--quote-detail-text);
    border-bottom: 1px solid var(--quote-detail-line-strong);
    background: #ffffff;
}

body.quote-detail-page .quote-detail-card {
    padding: 24px 0 2px;
}

body.quote-detail-page .quote-detail-card h2,
body.quote-detail-page .quote-detail-section h2 {
    margin: 0;
    color: var(--quote-detail-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

body.quote-detail-page .quote-detail-rows {
    margin-top: 14px;
}

body.quote-detail-page .quote-detail-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 48px;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--quote-detail-line);
}

body.quote-detail-page .quote-detail-row span {
    color: var(--quote-detail-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

body.quote-detail-page .quote-detail-row strong {
    min-width: 0;
    color: var(--quote-detail-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    word-break: break-word;
}

body.quote-detail-page .quote-detail-section {
    margin-top: 34px;
    padding: 26px 0 30px;
}

body.quote-detail-page .quote-detail-section > h2 {
    margin-bottom: 20px;
}

body.quote-detail-page .quote-detail-content > div {
    min-height: 180px;
    padding-top: 2px;
    color: var(--quote-detail-text);
    font-size: 1.04rem;
    font-weight: 400;
    line-height: 1.9;
    word-break: keep-all;
}

body.quote-detail-page .quote-detail-content p {
    margin: 0 0 1em;
}

body.quote-detail-page .quote-detail-content p:last-child {
    margin-bottom: 0;
}

body.quote-detail-page .quote-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    border-radius: 4px;
}

body.quote-detail-page .quote-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

body.quote-detail-page .quote-detail-images figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--quote-detail-line);
    border-radius: 6px;
    background: #f8f7f4;
}

body.quote-detail-page .quote-detail-images img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

body.quote-detail-page .quote-detail-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.quote-detail-page .quote-detail-files .file-link {
    display: inline-flex;
    min-height: 38px;
    padding: 0 14px;
    align-items: center;
    border: 1px solid var(--quote-detail-line-strong);
    border-radius: 4px;
    color: var(--quote-detail-text);
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

body.quote-detail-page .quote-detail-files .file-link:hover {
    border-color: var(--quote-detail-accent);
    color: var(--quote-detail-text);
    background: rgba(196, 162, 101, 0.06);
}

@media (max-width: 768px) {
    body.quote-detail-page .quote-detail-shell {
        width: 100%;
        padding: 132px 18px 58px;
    }

    body.quote-detail-page .quote-detail-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.quote-detail-page .quote-detail-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body.quote-detail-page .quote-detail-head {
        padding: 30px 0 24px;
    }

    body.quote-detail-page .quote-detail-title {
        font-size: clamp(1.6rem, 7vw, 2.08rem);
        line-height: 1.36;
    }

    body.quote-detail-page .quote-detail-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 0.92rem;
    }

    body.quote-detail-page .quote-detail-info {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 26px;
    }

    body.quote-detail-page .quote-detail-row {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
    }

    body.quote-detail-page .quote-detail-section {
        margin-top: 28px;
        padding: 23px 0 26px;
    }

    body.quote-detail-page .quote-detail-content > div {
        min-height: 140px;
        font-size: 0.98rem;
        line-height: 1.85;
    }

    body.quote-detail-page .quote-detail-images {
        grid-template-columns: 1fr;
    }
}

/* Member write page */
body.member-write-page {
    --member-write-accent: #2563eb;
    --member-write-accent-dark: #1d4ed8;
    --member-write-ink: #111827;
    --member-write-muted: #64748b;
    --member-write-line: #dbe3ef;
    background: #f4f8fd;
    color: var(--member-write-ink);
    font-family: "Noto Sans KR", sans-serif;
}

body.member-write-page .section-write {
    min-height: 100vh;
    padding: 152px 20px 84px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef5ff 48%, #ffffff 100%);
}

body.member-write-page .write-form-container {
    width: min(100%, 960px);
    margin: 0 auto;
}

body.member-write-page .write-form-card {
    position: relative;
    overflow: hidden;
    padding: 46px 52px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
}

body.member-write-page .write-form-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #25b9ef, #2563eb 55%, #ef4fa6);
    content: "";
}

body.member-write-page .write-form-header {
    margin-bottom: 30px;
    text-align: center;
}

body.member-write-page .write-form-eyebrow {
    margin-bottom: 10px;
    color: var(--member-write-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.member-write-page .write-form-title {
    margin: 0 0 12px;
    color: var(--member-write-ink);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

body.member-write-page .write-form-subtitle {
    max-width: 680px;
    margin: 0 auto;
    color: var(--member-write-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    word-break: keep-all;
}

body.member-write-page .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px !important;
}

body.member-write-page .meta-item {
    min-width: 0;
    padding: 7px 11px;
    border: 1px solid var(--member-write-line);
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.4;
}

body.member-write-page .meta-item strong {
    font-weight: 600;
}

body.member-write-page .message {
    display: none;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--member-write-line);
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.member-write-page .message.success,
body.member-write-page .message.error {
    display: block;
}

body.member-write-page .message.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

body.member-write-page .message.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

body.member-write-page .custom-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
}

body.member-write-page .field-block {
    min-width: 0;
    margin: 0;
}

body.member-write-page .custom-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

body.member-write-page .custom-label::before {
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: var(--member-write-accent);
    content: "";
    flex: 0 0 auto;
}

body.member-write-page .custom-label:has(input[type="checkbox"])::before {
    display: none;
}

body.member-write-page .custom-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--member-write-accent);
}

body.member-write-page .custom-input,
body.member-write-page .custom-textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 14px 17px;
    border: 1px solid var(--member-write-line);
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: var(--member-write-ink);
    font: inherit;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.member-write-page .custom-input:focus,
body.member-write-page .custom-textarea:focus {
    border-color: var(--member-write-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.member-write-page .custom-input::placeholder,
body.member-write-page .custom-textarea::placeholder {
    color: #94a3b8;
}

body.member-write-page input[type="file"].custom-input {
    padding: 10px 12px;
    color: #475569;
}

body.member-write-page input[type="file"].custom-input::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
}

body.member-write-page .hint {
    display: block;
    margin-top: 8px;
    color: var(--member-write-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

body.member-write-page .file-list {
    display: grid;
    gap: 8px;
}

body.member-write-page .file-item {
    display: flex;
    min-height: 44px;
    padding: 8px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--member-write-line);
    border-radius: 6px;
    color: #334155;
}

body.member-write-page .file-remove {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
}

body.member-write-page .note-editor.note-frame {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--member-write-line);
    border-radius: 8px;
    box-shadow: none;
}

body.member-write-page .note-editor .note-toolbar {
    padding: 8px;
    border-bottom: 1px solid var(--member-write-line);
    background: #f8fafc;
}

body.member-write-page .note-editor .note-editable {
    min-height: 320px;
    padding: 18px;
    background: #ffffff;
    color: var(--member-write-ink);
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

body.member-write-page .actions {
    display: flex;
    padding-top: 4px;
    justify-content: flex-end;
    gap: 10px;
}

body.member-write-page .actions .ghost,
body.member-write-page .actions button {
    display: inline-flex;
    min-width: 116px;
    min-height: 48px;
    margin: 0;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

body.member-write-page .actions .ghost {
    background: #ffffff;
    color: #334155;
}

body.member-write-page .actions button {
    border-color: var(--member-write-accent);
    background: var(--member-write-accent);
    color: #ffffff;
}

body.member-write-page .actions button:hover {
    border-color: var(--member-write-accent-dark);
    background: var(--member-write-accent-dark);
}

body.member-write-page .actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 768px) {
    body.member-write-page .section-write {
        padding: 124px 12px 54px;
    }

    body.member-write-page .write-form-card {
        padding: 28px 18px;
    }

    body.member-write-page .write-form-title {
        font-size: 1.6rem;
    }

    body.member-write-page .write-form-subtitle {
        font-size: 0.9rem;
    }

    body.member-write-page .meta-item {
        flex: 1 1 calc(50% - 8px);
    }

    body.member-write-page .note-editor .note-editable {
        min-height: 260px;
    }

    body.member-write-page .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body.member-write-page .actions .ghost,
    body.member-write-page .actions button {
        width: 100%;
        min-width: 0;
    }
}

body.member-write-page .custom-form .form-row {
    display: flex;
    gap: 24px;
    margin: 0 !important;
}

body.member-write-page .custom-form .form-group {
    display: flex;
    min-width: 0;
    margin: 0;
    flex: 1;
    flex-direction: column;
}

body.member-write-page select.custom-input {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5L2.5 6h11L8 11.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

body.member-write-page .env-toggle-group {
    display: flex;
    height: 54px;
    gap: 12px;
}

body.member-write-page .env-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.member-write-page .env-btn {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 12px 16px;
    align-items: center;
    justify-content: center;
    flex: 1;
    border: 1px solid var(--member-write-line);
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.member-write-page .env-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: var(--member-write-accent-dark);
}

body.member-write-page .env-radio:checked + .env-btn {
    border-color: var(--member-write-accent);
    background: #eff6ff;
    color: var(--member-write-accent-dark);
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.member-write-page .field-error {
    display: none;
    margin-top: 8px;
    color: #dc2626;
    font-size: 0.82rem;
}

body.member-write-page .custom-file-upload {
    display: flex;
    min-height: 164px;
    margin: -8px 0 16px;
    padding: 36px 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--member-write-accent);
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.member-write-page .custom-file-upload:hover,
body.member-write-page .custom-file-upload:focus-visible,
body.member-write-page .custom-file-upload.is-dragover {
    border-color: var(--member-write-accent);
    outline: none;
    background: #eff6ff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

body.member-write-page .custom-file-upload.is-dragover {
    transform: translateY(-2px);
}

body.member-write-page .custom-file-upload input {
    display: none;
}

body.member-write-page .custom-file-upload span {
    color: var(--member-write-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

body.member-write-page .custom-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

body.member-write-page .custom-file-item {
    position: relative;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--member-write-line);
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.member-write-page .custom-file-item img,
body.member-write-page .custom-file-fallback {
    display: flex;
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--member-write-accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    object-fit: cover;
}

body.member-write-page .custom-file-item p {
    overflow: hidden;
    margin: 0;
    color: #475569;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.member-write-page .custom-file-item button.custom-remove-file {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    width: 28px;
    height: 28px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff !important;
    border-radius: 50%;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 0 !important;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35);
}

body.member-write-page .custom-file-item button.custom-remove-file::before {
    content: "\00d7";
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-1px);
}

body.member-write-page .custom-file-item .custom-file-status {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.4;
    white-space: normal;
}

body.member-write-page .custom-file-item .custom-file-status.error {
    color: #dc2626;
}

body.member-write-page .custom-file-progress {
    width: 100%;
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 5px;
    background: #dbeafe;
}

body.member-write-page .custom-file-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width 120ms linear;
}

body.member-write-page .custom-submit-buttons {
    display: flex;
    margin-top: 16px;
    padding-top: 30px;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid #e2e8f0;
}

body.member-write-page .custom-submit-buttons .btn {
    display: inline-flex;
    min-width: 140px;
    min-height: 52px;
    margin: 0;
    padding: 14px 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

body.member-write-page .custom-submit-buttons #submitButton.custom-save {
    border: 1px solid #2563eb !important;
    background: linear-gradient(135deg, #111827 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22) !important;
}

body.member-write-page .custom-submit-buttons #submitButton.custom-save:hover {
    border-color: #1d4ed8 !important;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}

body.member-write-page .custom-submit-buttons #submitButton.custom-save:disabled {
    border-color: #94a3b8 !important;
    background: #94a3b8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    cursor: wait;
}

body.member-write-page .custom-submit-buttons .custom-cancel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
}

body.member-write-page .write-helper-card {
    position: relative;
    display: grid;
    width: min(100%, 960px);
    margin: 28px auto 0;
    padding: 34px 38px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 56%, #f8fafc 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

body.member-write-page .write-helper-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #25b9ef, #2563eb 55%, #ef4fa6);
    content: "";
}

body.member-write-page .write-helper-title {
    margin: 0 0 10px;
    color: var(--member-write-ink);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.35;
}

body.member-write-page .write-helper-text {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    word-break: keep-all;
}

body.member-write-page .write-helper-highlight {
    color: var(--member-write-accent-dark);
    font-weight: 800;
}

body.member-write-page .write-helper-note {
    margin: 10px 0 0;
    color: #dc2626;
    font-size: 0.86rem;
    font-weight: 700;
}

body.member-write-page .write-helper-link {
    display: inline-flex;
    min-height: 52px;
    padding: 0 28px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

@media (max-width: 768px) {
    body.member-write-page .custom-form .form-row {
        gap: 12px;
    }

    body.member-write-page .custom-form .form-row:not(.form-row-size) {
        flex-direction: column;
    }

    body.member-write-page .custom-file-upload {
        min-height: 142px;
        padding: 28px 16px;
    }

    body.member-write-page .custom-submit-buttons {
        gap: 10px;
    }

    body.member-write-page .custom-submit-buttons .btn {
        min-width: 0;
        padding: 14px 10px;
        flex: 1;
        font-size: 0.95rem;
    }

    body.member-write-page .write-helper-card {
        padding: 26px 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.member-write-page .write-helper-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body.member-write-page .custom-submit-buttons {
        flex-direction: column;
    }

    body.member-write-page .write-helper-title {
        font-size: 1.25rem;
    }
}

/* Private quote password */
body.quote-password-page {
    background: #ffffff;
    color: #1a1a1a;
    font-family: "Noto Sans KR", sans-serif;
}

body.quote-password-page .quote-password-main {
    min-height: 680px;
    padding: 152px 20px 104px;
    background: #ffffff;
}

body.quote-password-page .quote-password-section {
    position: relative;
    width: min(100%, 720px);
    margin: 0 auto;
}

body.quote-password-page .quote-password-close,
body.quote-password-page .quote-password-title-mobile,
body.quote-password-page .quote-password-desc-mobile {
    display: none;
}

body.quote-password-page .quote-password-header {
    text-align: center;
}

body.quote-password-page .quote-password-header .section-tag {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 20px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body.quote-password-page .quote-password-header h1 {
    margin: 0;
    color: #1a1a1a;
    font-size: clamp(2.15rem, 3.2vw, 2.8rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
}

body.quote-password-page .quote-password-header p {
    margin: 20px auto 0;
    color: #6b6560;
    font-size: 0.96rem;
    font-weight: 400;
    line-height: 1.8;
    word-break: keep-all;
}

body.quote-password-page .quote-password-error {
    width: min(100%, 560px);
    margin: 30px auto -18px;
    padding: 12px 15px;
    border: 1px solid #efb7b7;
    border-radius: 6px;
    background: #fffafa;
    color: #b4232c;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

body.quote-password-page .quote-password-form {
    width: min(100%, 560px);
    margin: 48px auto 0;
    padding: 28px 0 30px;
    border-top: 2px solid #1a1a1a;
    border-bottom: 1px solid rgba(26, 26, 26, 0.18);
}

body.quote-password-page .quote-password-field label {
    display: block;
    margin: 0 0 11px;
    color: #1a1a1a;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
}

body.quote-password-page .quote-password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 10px;
}

body.quote-password-page .quote-password-control input {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0 17px;
    border: 1px solid #d8d4cf;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    color: #1a1a1a;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.quote-password-page .quote-password-control input::placeholder {
    color: #aaa49d;
}

body.quote-password-page .quote-password-control input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.quote-password-page .quote-password-control #passwordSubmit {
    display: inline-flex;
    width: 108px;
    height: 54px;
    margin: 0;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

body.quote-password-page .quote-password-control #passwordSubmit:hover {
    border-color: #2563eb;
    background: #2563eb;
}

body.quote-password-page .quote-password-control #passwordSubmit:disabled {
    cursor: wait;
    opacity: 0.6;
}

body.quote-password-page .quote-password-note {
    max-width: 560px;
    margin: 18px auto 0;
    color: #8a847d;
    font-size: 0.84rem;
    line-height: 1.7;
    text-align: center;
    word-break: keep-all;
}

body.quote-password-page .quote-password-actions {
    display: flex;
    margin-top: 26px;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

body.quote-password-page .quote-password-actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid transparent;
    color: #6b6560;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

body.quote-password-page .quote-password-actions a:hover {
    border-bottom-color: #1a1a1a;
    color: #1a1a1a;
}

@media (max-width: 600px) {
    body.quote-password-page {
        overflow: hidden;
    }

    body.quote-password-page .quote-password-main {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: flex;
        min-height: 100dvh;
        padding: 20px 9px;
        overflow-y: auto;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.7);
        overscroll-behavior: contain;
    }

    body.quote-password-page .quote-password-section {
        width: 100%;
        max-width: 460px;
        margin: auto;
        padding: 48px 30px 30px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
    }

    body.quote-password-page .quote-password-close {
        position: absolute;
        top: 18px;
        right: 18px;
        display: block;
        width: 28px;
        height: 28px;
        border: 0;
        color: #242424;
        text-decoration: none;
    }

    body.quote-password-page .quote-password-close::before,
    body.quote-password-page .quote-password-close::after {
        position: absolute;
        top: 13px;
        left: 4px;
        width: 20px;
        height: 1.5px;
        background: currentColor;
        content: "";
    }

    body.quote-password-page .quote-password-close::before {
        transform: rotate(45deg);
    }

    body.quote-password-page .quote-password-close::after {
        transform: rotate(-45deg);
    }

    body.quote-password-page .quote-password-header .section-tag,
    body.quote-password-page .quote-password-title-desktop,
    body.quote-password-page .quote-password-desc-desktop {
        display: none;
    }

    body.quote-password-page .quote-password-title-mobile,
    body.quote-password-page .quote-password-desc-mobile {
        display: inline;
    }

    body.quote-password-page .quote-password-header h1 {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.4;
    }

    body.quote-password-page .quote-password-header p {
        margin-top: 18px;
        color: #333333;
        font-size: 1rem;
        line-height: 1.6;
    }

    body.quote-password-page .quote-password-form {
        width: 100%;
        margin-top: 28px;
        padding: 0;
        border: 0;
    }

    body.quote-password-page .quote-password-field label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.quote-password-page .quote-password-control {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.quote-password-page .quote-password-control input {
        height: 46px;
        padding: 0 13px;
        border-color: #c8c8c8;
        border-radius: 5px;
        font-size: 0.95rem;
    }

    body.quote-password-page .quote-password-control #passwordSubmit {
        display: flex;
        width: 100%;
        height: 50px;
        min-height: 50px;
        padding: 0 18px;
        align-items: center;
        justify-content: center;
        border: 1px solid #087f74;
        border-radius: 5px;
        background: #087f74;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 7px 16px rgba(8, 127, 116, 0.18);
        -webkit-tap-highlight-color: transparent;
    }

    body.quote-password-page .quote-password-control #passwordSubmit:hover,
    body.quote-password-page .quote-password-control #passwordSubmit:focus-visible {
        border-color: #087f74;
        outline: none;
        background: #087f74;
        color: #ffffff;
    }

    body.quote-password-page .quote-password-control #passwordSubmit:active {
        border-color: #066d64;
        background: #066d64;
        box-shadow: 0 3px 8px rgba(8, 127, 116, 0.2);
        transform: translateY(1px);
    }

    body.quote-password-page .quote-password-control #passwordSubmit:disabled {
        border-color: #9ac8c3;
        background: #9ac8c3;
        color: #ffffff;
        box-shadow: none;
        opacity: 1;
    }

    body.quote-password-page .quote-password-note,
    body.quote-password-page .quote-password-actions {
        display: none;
    }

    body.quote-password-page .quote-password-error {
        width: 100%;
        margin: 20px 0 0;
        padding: 10px 12px;
        font-size: 0.84rem;
    }
}

@media (max-width: 768px) {
    body:not(.home-page) .mobile-menu-bar .mobile-menu-item.active {
        color: #2563eb;
        font-weight: 700;
        text-shadow: none;
    }

    body:not(.home-page) .mobile-menu-bar .mobile-menu-item.active::after {
        content: "";
        position: absolute;
        right: 14px;
        bottom: 0;
        left: 14px;
        display: block;
        height: 2px;
        border-radius: 0;
        background: #2563eb;
        box-shadow: none;
    }

    body:not(.home-page) .mobile-menu-bar.scrolled .mobile-menu-item.active {
        color: #f3d36a;
        text-shadow: none;
    }

    body:not(.home-page) .mobile-menu-bar.scrolled .mobile-menu-item.active::after {
        background: #f3d36a;
    }
}
