.pf-wrap,
.pf-view-wrap,
.pf-write-wrap {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    color: #1f2937;
}

.pf-body .yg-pf-grid {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pf-body .yg-pf-card {
    min-width: 0;
    max-width: 100%;
}

.pf-header,
.pf-view-header {
    position: relative;
    padding: 18px 16px 22px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.pf-view-header {
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.pf-view-header-dim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
}

.pf-back {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

.pf-back--light {
    margin-bottom: 18px;
}

.pf-header-text {
    position: relative;
    z-index: 2;
    margin-top: 14px;
}

.pf-title,
.pf-view-title {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
}

.pf-view-title {
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.pf-sub {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.pf-body,
.pf-view-body {
    padding: 16px;
    background: #fff;
}

.pf-empty {
    padding: 60px 20px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    color: #9ca3af;
}

.pf-write-btn {
    position: fixed;
    right: 18px;
    bottom: 110px;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    text-decoration: none;
}

.pf-write-btn--edit {
    bottom: 180px;
    background: #f59e0b;
}

.pf-write-btn--delete {
    bottom: 250px;
    background: #ef4444;
}

.pf-view-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pf-view-stat {
    padding: 14px 10px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.pf-view-stat span {
    display: block;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 0.75rem;
}

.pf-view-stat strong {
    color: #111827;
    font-size: 0.95rem;
}

.pf-view-content {
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    line-height: 1.7;
}

.pf-view-content img {
    max-width: 100%;
    height: auto;
}

.pf-view-actions {
    margin-top: 16px;
    text-align: center;
}

.pf-view-link {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    background: #fff;
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
}

.pf-write-wrap {
    padding: 16px;
}

.pf-write-form {
    padding: 18px;
    border-radius: 16px;
    background: #fff;
}

.pf-write-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.pf-write-field {
    margin-bottom: 14px;
}

.pf-write-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.pf-write-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pf-write-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.pf-btn {
    flex: 1;
    height: 46px;
    border-radius: 10px;
    text-align: center;
    line-height: 46px;
    font-weight: 700;
    text-decoration: none;
}

.pf-btn--cancel {
    background: #e5e7eb;
    color: #374151;
}

.pf-btn--submit {
    border: 0;
    background: #f97316;
    color: #fff;
    cursor: pointer;
}

.pf-file-group .filebox {
    position: relative;
}

.pf-file-group .lb_icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 1.2em;
    text-align: center;
    color: #b2b2b2;
    z-index: 1;
    pointer-events: none;
}

.pf-file-group .filebox .btn_file {
    display: inline-block;
    position: absolute;
    right: 8px;
    top: 8px;
    border: 1px solid #3a8afd;
    border-radius: 3px;
    width: 60px;
    height: 30px;
    color: #3a8afd;
    font-size: 1em;
    line-height: 30px;
    font-weight: bold;
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.pf-file-group .filebox .fileName {
    display: block;
    width: 100%;
    height: 45px;
    padding: 8px 78px 8px 45px;
    line-height: 28px;
    border: 1px solid #d0d3db;
    background-color: #fff;
    color: #333;
    border-radius: 0;
    box-sizing: border-box;
}

.pf-file-group .filebox .fileName::placeholder {
    color: #b2b2b2;
}

.pf-file-group .filebox input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.pf-file-group .file_del {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.board-header,
.category-tabs,
.btn_top,
#bo_v_info,
.bo_v_nb,
#bo_v_act {
    display: none !important;
}