.customer-main {
    max-width: none;
    width: 100%;
    padding: 40px 0 80px;
}

.customer-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 35px 0;
}

.customer-tabs a {
    min-width: 120px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid #ddd;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    transition: .2s;
}

.customer-tabs a:hover,
.customer-tabs a.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.customer-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 30px;
}

.customer-board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.customer-board-head h2 {
    font-size: 22px;
}

.customer-write-btn {
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.qna-list {
    border-top: 1px solid #111;
}

.qna-row {
    display: grid;
    grid-template-columns: 100px 1fr 180px;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.qna-subject strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1;
}

.qna-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    line-height: 1;
}

.qna-subject p {
    display: none;
}

.qna-subject {
    display: flex;
    align-items: center;
}

.qna-status {
    width: 86px;
    height: 32px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qna-status.waiting {
    background: #fff7ed;
    color: #ea580c;
}

.qna-status.completed {
    background: #ecfdf5;
    color: #059669;
}

@media (max-width: 768px) {
    .customer-main {
        width: 95%;
        padding: 25px 0 60px;
    }

    .customer-tabs {
        gap: 8px;
        margin: 25px 0;
    }

    .customer-tabs a {
        min-width: auto;
        flex: 1;
        height: 42px;
        padding: 0;
        font-size: 14px;
    }

    .customer-content {
        padding: 20px 15px;
    }

    .qna-row {
        grid-template-columns: 74px 1fr;
        align-items: center;
        gap: 10px;
        min-height: 54px;
        padding: 10px 0;
    }

    .qna-meta {
        grid-column: 2 / 3;
        justify-content: flex-start;
        gap: 10px;
        margin-top: -2px;
        font-size: 12px;
    }

    .qna-status {
        width: 74px;
        height: 30px;
        font-size: 12px;
        flex-shrink: 0;
    }
}

.qna-write-layer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.qna-write-layer.active {
    display: flex;
}

.qna-write-box {
    width: 720px;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    max-height: 90vh;
    overflow-y: auto;
}

.qna-write-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.qna-write-head h3 {
    font-size: 22px;
}

.qna-write-close {
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.qna-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qna-form-row {
    margin-bottom: 14px;
}

.qna-form-row label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.qna-form-row input[type="text"],
.qna-form-row input[type="password"] {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.qna-file-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background: #fafafa;
}

.qna-file-box input[type="file"] {
    display: none;
}

.qna-file-btn {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 !important;
}

.qna-file-text {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.qna-form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.qna-secret-check {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 20px;
    font-size: 14px;
    cursor: pointer;
}

.qna-form-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.qna-cancel-btn,
.qna-submit-btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.qna-cancel-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.qna-submit-btn {
    border: none;
    background: #111;
    color: #fff;
}

.ck-editor__editable {
    min-height: 220px;
}

@media (max-width: 768px) {
    .qna-write-layer {
        align-items: center;
        padding: 18px;
    }

    .qna-write-box {
        width: 100%;
        max-height: 86vh;
        border-radius: 16px;
        padding: 18px 14px;
    }

    .qna-write-head {
        margin-bottom: 14px;
    }

    .qna-write-head h3 {
        font-size: 19px;
    }

    .qna-form-row {
        margin-bottom: 12px;
    }

    .qna-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ck-editor__editable {
        min-height: 150px;
    }

    .qna-drop-zone {
        min-height: 90px;
    }

    .qna-preview-item {
        width: 76px;
        height: 76px;
    }

    .qna-form-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.qna-drop-zone {
    position: relative;
    min-height: 110px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.qna-drop-zone:hover,
.qna-drop-zone.dragover {
    border-color: #111;
    background: #f5f5f5;
}

.qna-drop-zone input[type="file"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.qna-drop-text {
    text-align: center;
    color: #555;
}

.qna-drop-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.qna-drop-text span {
    font-size: 12px;
    color: #888;
}

.qna-file-list {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.qna-file-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.qna-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.qna-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.qna-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qna-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.qna-subject a {
    display: block;
    max-width: 100%;
}

.qna-view-head {
    border-top: none;
    border-bottom: 1px solid #eee;
    padding: 22px 0;
}

.qna-view-head h2 {
    margin-top: 14px;
    font-size: 24px;
    line-height: 1.4;
}

.qna-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

.qna-view-content {
    min-height: 220px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.qna-view-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.qna-view-images img {
    max-width: 180px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.qna-answer-box {
    margin-top: 28px;
    padding: 24px;
    border-radius: 14px;
    background: #f8f8f8;
}

.qna-answer-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
}

.qna-answer-title span {
    font-size: 13px;
    color: #888;
}

.qna-answer-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.qna-view-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.qna-edit-btn,
.qna-delete-btn,
.qna-list-btn {
    height: 42px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.qna-edit-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.qna-delete-btn {
    border: 1px solid #dc2626;
    background: #fff;
    color: #dc2626;
}

.qna-list-btn {
    border: none;
    background: #111;
    color: #fff;
}

.qna-password-box {
    max-width: 420px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 14px;
    text-align: center;
}

.qna-password-box h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.qna-password-box p {
    font-size: 14px;
    color: #777;
    margin-bottom: 18px;
}

.qna-password-form {
    display: flex;
    gap: 8px;
}

.qna-password-form input {
    flex: 1;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
}

.qna-password-form button {
    width: 80px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.qna-password-error {
    margin-bottom: 12px;
    color: #dc2626;
    font-size: 13px;
}

@media (max-width: 768px) {
    .qna-view-head h2 {
        font-size: 20px;
    }

    .qna-view-content {
        padding: 24px 0;
        font-size: 14px;
    }

    .qna-view-images img {
        max-width: 100%;
        width: 100%;
    }

    .qna-answer-box {
        padding: 18px;
    }

    .qna-password-box {
        margin: 35px 0;
        padding: 24px 16px;
    }
}

.notice-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #222;
}

.notice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px;
    border-bottom: 1px solid #e5e5e5;
    padding-left: 15px;
}

.notice-subject {
    flex: 1;
    min-width: 0;
}

.notice-subject a {
    display: block;
}

.notice-subject strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
    word-break: break-all;
}

.notice-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.notice-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

.notice-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    border-bottom: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
    .notice-row {
        display: block;
        padding: 16px 0;
    }

    .notice-subject strong {
        font-size: 15px;
    }

    .notice-meta {
        margin-top: 8px;
        font-size: 13px;
    }
}

.notice-top-row {
    background: #fafafa;
    border-left: 4px solid #222;
    padding-left: 14px;
}

.notice-top-row+.notice-top-row {
    border-top: 1px solid #ddd;
}

.notice-top-row .notice-subject strong {
    font-weight: 700;
}

.notice-view-head {
    padding: 0 4px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.notice-view-head h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.notice-view-meta {
    display: flex;
    gap: 14px;
    color: #888;
    font-size: 14px;
}

.notice-view-content {
    min-height: 260px;
    padding: 32px 4px;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-all;
}

.notice-view-content img {
    max-width: 100%;
    height: auto;
}

.notice-view-btns {
    margin-top: 24px;
    text-align: center;
}

.notice-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .notice-view-head {
        padding: 20px 0;
    }

    .notice-view-head h2 {
        font-size: 19px;
    }

    .notice-view-content {
        padding: 26px 0;
        font-size: 14px;
    }
}

.notice-search-form {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 18px;
}

.notice-search-form input {
    width: 260px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.notice-search-form button,
.notice-search-reset {
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.notice-search-form button {
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.notice-search-reset {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .notice-search-form {
        display: grid;
        grid-template-columns: 1fr 70px;
    }

    .notice-search-form input {
        width: 100%;
    }

    .notice-search-reset {
        grid-column: 1 / 3;
        justify-content: center;
    }
}