* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "Malgun Gothic", "맑은 고딕", sans-serif;
    background: #ffffff;
    color: #222222;
    overflow: hidden;
}

button,
input,
textarea {
    font-family: Arial, "Malgun Gothic", "맑은 고딕", sans-serif;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

/* =========================
   상단
========================= */

.top-bar {
    width: 100%;
    height: 11.111111vh;
    display: flex;
    align-items: center;
    background: #FF9400;
    background-image: url("./airplane1.png");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    padding: 0 30px;
    overflow: hidden;
}

.top-bar .profile,
.top-bar .title { display: none; }

.profile {
    width: min(120px, calc(11.111111vh - 20px));
    height: min(120px, calc(11.111111vh - 20px));
    flex: 0 0 min(120px, calc(11.111111vh - 20px));
    overflow: hidden;
}

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

.title {
    margin-left: 30px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #000000;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.admin-button,
.info-button {
    background: #ffffff;
    border: 3px solid #000000;
    color: #111111;
    font-weight: 700;
    white-space: nowrap;
}

.admin-button {
    padding: 11px 18px;
    font-size: 16px;
}

.info-button {
    padding: 11px 16px;
    font-size: 15px;
}

.admin-button:hover,
.info-button:hover {
    background: #eeeeee;
}

.admin-button.logged-in {
    background: #000000;
    color: #ffffff;
}

.header-line {
    width: 100%;
    height: 3px;
    background: #000000;
}

/* =========================
   전체 레이아웃
========================= */

.site-layout {
    width: 100%;
    height: calc(100vh - 11.111111vh - 3px);
    display: flex;
}

.sidebar {
    width: 265px;
    height: 100%;
    flex: 0 0 265px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 2px solid #000000;
}

.menu-item {
    width: 100%;
    height: 82px;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    background: #ffffff;
    border: none;
    border-bottom: 1.5px solid #000000;
    font-size: 30px;
    font-weight: 700;
    color: #111111;
    text-align: left;
}

.menu-item.active {
    background: #FF9400;
    color: #ffffff;
}

.menu-item.locked {
    background: #f5f5f5;
    color: #555555;
}

.menu-item.upcoming {
    background: #eeeeee;
    color: #999999;
}

.main-content {
    flex: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 45px;
    overflow-y: auto;
    background: #ffffff;
}

/* =========================
   화면 전환 애니메이션
========================= */

.screen {
    display: none;
    width: 100%;
    transform-origin: center top;
}

.screen.visible {
    display: block;
    animation: screenFadeSlide 0.62s cubic-bezier(0.22, 0.8, 0.2, 1) both;
    will-change: opacity, transform;
}

@keyframes screenFadeSlide {
    0% {
        opacity: 0;
        transform: translate3d(0, 28px, 0) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* 상세 글은 오른쪽에서 살짝 들어오며 전환 */
#screen-news-detail.visible {
    animation: detailFadeSlide 0.66s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

@keyframes detailFadeSlide {
    0% {
        opacity: 0;
        transform: translate3d(36px, 10px, 0) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.page-heading {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    margin: 12px 0 0;
    font-size: 20px;
    color: #666666;
}

/* =========================
   소개
========================= */

.intro-box {
    width: 100%;
    margin-top: 35px;
    padding: 45px;
    background: #ffffff;
    border: 4px solid #000000;
}

.intro-box h2 {
    margin: 0 0 22px;
    font-size: 36px;
}

.intro-box p {
    margin: 0 0 35px;
    font-size: 22px;
    line-height: 1.6;
}

.orange-button {
    padding: 16px 30px;
    background: #FF9400;
    border: 3px solid #000000;
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
}

.orange-small-button {
    flex-shrink: 0;
    padding: 13px 22px;
    background: #FF9400;
    border: 3px solid #000000;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.orange-button:hover,
.orange-small-button:hover {
    background: #e98900;
}

.white-button {
    margin-bottom: 30px;
    padding: 12px 20px;
    background: #ffffff;
    border: 3px solid #000000;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.white-button:hover {
    background: #eeeeee;
}

/* =========================
   목록
========================= */

.list-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.empty-box {
    width: 100%;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 4px solid #000000;
    text-align: center;
}

.empty-title {
    font-size: 34px;
    font-weight: 700;
    color: #555555;
}

.empty-description {
    margin-top: 10px;
    font-size: 18px;
    color: #999999;
}

.news-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-row {
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    padding: 0;
    background: #ffffff;
    border: 3px solid #000000;
    cursor: pointer;
    text-align: left;
    transition: 0.15s ease;
}

.news-row:hover {
    background: #fff4df;
}

.news-row.unread {
    border-color: #e00000;
}

.news-author {
    width: 200px;
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 17px;
    font-weight: 700;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    font-size: 25px;
    font-weight: 700;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-unread {
    margin-left: 10px;
    color: #e00000;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.news-date {
    width: 130px;
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 16px;
    color: #777777;
    text-align: right;
    white-space: nowrap;
}

/* =========================
   상세 글
========================= */

.detail-box {
    width: 100%;
    padding: 50px;
    background: #ffffff;
    border: 4px solid #000000;
}

.detail-author {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #555555;
}

.detail-title-line {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.detail-title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}

.detail-date {
    flex-shrink: 0;
    font-size: 18px;
    color: #777777;
}

.detail-content {
    font-size: 24px;
    line-height: 1.9;
    color: #333333;
    word-break: break-word;
}

/* =========================
   사진
========================= */

.news-images {
    width: 100%;
    margin-top: 20px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 14px;

    background: transparent;
    border: none;

    line-height: 0;
}

.news-image {
    width: auto !important;
    height: 175px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: 175px !important;

    display: block !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 2px solid #000000;

    background: #ffffff;

    object-fit: contain !important;
    object-position: left top;
}

/* =========================
   삭제
========================= */

.delete-button {
    margin-top: 20px;
    padding: 12px 22px;
    background: #ffffff;
    border: 3px solid #cc0000;
    font-size: 18px;
    font-weight: 700;
    color: #cc0000;
}

.delete-button:hover {
    background: #fff0f0;
}

/* =========================
   작성
========================= */

.write-box {
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border: 4px solid #000000;
}

.write-box h1 {
    margin: 0 0 35px;
    font-size: 42px;
}

.write-box label,
.auth-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
}

.write-box input,
.write-box textarea,
.auth-box input {
    width: 100%;
    margin-bottom: 25px;
    padding: 15px;
    background: #ffffff;
    border: 3px solid #000000;
    font-size: 19px;
    outline: none;
}

.write-box textarea {
    min-height: 260px;
    resize: vertical;
    line-height: 1.6;
}

.file-input {
    padding: 10px !important;
}

.image-help {
    margin: -10px 0 18px;
    color: #777777;
    font-size: 14px;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.preview-item {
    overflow: hidden;
    border: 2px solid #000000;
    background: #f5f5f5;
}

.preview-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.preview-name {
    padding: 6px;
    font-size: 11px;
    background: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.write-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =========================
   인증
========================= */

.auth-box {
    width: min(520px, 100%);
    margin: 50px auto;
    padding: 0;
    background: #ffffff;
    border: 4px solid #000000;
}

.auth-tabs {
    display: flex;
    width: 100%;
    border-bottom: 3px solid #000000;
}

.auth-tab {
    flex: 1;
    padding: 16px 10px;
    background: #ffffff;
    border: none;
    border-right: 3px solid #000000;
    font-size: 19px;
    font-weight: 700;
}

.auth-tab:last-child {
    border-right: none;
}

.auth-tab.active {
    background: #FF9400;
    color: #ffffff;
}

.auth-panel {
    padding: 40px;
}

.auth-panel h1 {
    margin: 0 0 12px;
    font-size: 38px;
}

.auth-description {
    margin: 0 0 35px;
    font-size: 18px;
    color: #666666;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: #FF9400;
    border: 3px solid #000000;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.login-button:hover {
    background: #e98900;
}

.login-cancel-button {
    width: calc(100% - 80px);
    margin: 0 40px 40px;
    padding: 13px;
    background: #ffffff;
    border: 3px solid #000000;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.login-cancel-button:hover {
    background: #eeeeee;
}

.login-error {
    min-height: 24px;
    margin: 0 40px 20px;
    color: #cc0000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
}

/* =========================
   좋아요 / 댓글
========================= */

.news-interactions {
    width: 100%;
    margin-top: 28px;
}

.reaction-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 2px solid #000000;
}

.like-button {
    padding: 11px 18px;
    background: #ffffff;
    border: 3px solid #000000;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
}

.like-button:hover {
    background: #fff4df;
}

.like-button.liked {
    background: #ffe8e8;
    border-color: #d00000;
    color: #d00000;
}

.like-button:disabled {
    opacity: 0.65;
}

.comment-count {
    font-size: 17px;
    font-weight: 700;
    color: #555555;
}

.comments-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.comment-item {
    position: relative;
    padding: 18px 4px;
    border-bottom: 1px solid #cccccc;
}

.comment-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.comment-author {
    font-size: 17px;
    color: #111111;
}

.comment-date {
    font-size: 13px;
    color: #888888;
}

.comment-content {
    margin-top: 8px;
    padding-right: 50px;
    font-size: 17px;
    line-height: 1.7;
    color: #333333;
    word-break: break-word;
}

.comment-delete-button {
    position: absolute;
    top: 16px;
    right: 0;
    padding: 5px 9px;
    background: #ffffff;
    border: 1px solid #999999;
    color: #666666;
    font-size: 12px;
}

.comment-delete-button:hover {
    border-color: #cc0000;
    color: #cc0000;
}

.comment-form {
    margin-top: 18px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 13px;
    background: #ffffff;
    border: 3px solid #000000;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.comment-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.comment-length {
    font-size: 12px;
    color: #888888;
}

.comment-login-notice,
.comments-login-box,
.comments-empty,
.comments-loading,
.comments-error {
    padding: 18px 4px;
    color: #777777;
    font-size: 14px;
    line-height: 1.6;
}

.comments-error {
    color: #cc0000;
}

.hidden {
    display: none !important;
}

/* =========================
   태블릿 / 모바일
========================= */

@media (max-width: 1400px) {

    .title {
        font-size: 56px;
    }

    .sidebar {
        width: 230px;
        flex-basis: 230px;
    }

    .menu-item {
        font-size: 27px;
    }
}

@media (max-width: 1100px) {

    .title {
        margin-left: 22px;
        font-size: 44px;
    }

    .sidebar {
        width: 200px;
        flex-basis: 200px;
    }

    .menu-item {
        font-size: 23px;
    }

    .main-content {
        padding: 30px;
    }

    .news-author {
        width: 150px;
    }

    .news-title {
        font-size: 18px;
    }

    .header-actions {
        gap: 7px;
    }

    .admin-button,
    .info-button {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 800px) {

    .title {
        margin-left: 15px;
        font-size: 30px;
    }

    .sidebar {
        width: 160px;
        flex-basis: 160px;
    }

    .menu-item {
        font-size: 18px;
    }

    .main-content {
        padding: 20px;
    }

    .news-author {
        width: 110px;
        padding: 0 10px;
        font-size: 14px;
    }

    .news-title {
        padding: 0 10px;
        font-size: 18px;
    }

    .news-date {
        width: 100px;
        padding: 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {

    .top-bar {
        height: 72px;
        padding: 0 10px 0 12px;
    }

    .profile {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .title {
        margin-left: 12px;
        font-size: 21px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-actions {
        margin-left: auto;
        gap: 5px;
    }

    .admin-button,
    .info-button {
        border-width: 2px;
        font-size: 10px;
        padding: 7px 8px;
    }

    .admin-button {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .info-button {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-line {
        height: 2px;
    }

    .site-layout {
        height: calc(100vh - 74px);
    }

    .sidebar {
        width: 88px;
        flex: 0 0 88px;
        border-right: 1.5px solid #000000;
    }

    .menu-item {
        height: 58px;
        min-height: 58px;
        padding: 0 5px;
        justify-content: center;
        font-size: 15px;
        line-height: 1.2;
        text-align: center;
        border-bottom: 1px solid #000000;
    }

    .menu-item.locked {
        font-size: 13px;
        flex-direction: column;
        gap: 2px;
    }

    .main-content {
        width: calc(100% - 88px);
        padding: 18px 14px;
        overflow-y: auto;
    }

    .page-heading {
        font-size: 28px;
    }

    .page-subtitle {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.5;
    }

    .intro-box {
        margin-top: 18px;
        padding: 20px;
        border-width: 2px;
    }

    .intro-box h2 {
        margin-bottom: 12px;
        font-size: 22px;
    }

    .intro-box p {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.6;
    }

    .orange-button {
        width: 100%;
        padding: 11px 10px;
        border-width: 2px;
        font-size: 15px;
    }

    .list-header {
        margin-bottom: 18px;
        gap: 10px;
    }

    .orange-small-button {
        padding: 9px 12px;
        border-width: 2px;
        font-size: 13px;
    }

    .empty-box {
        min-height: 220px;
        border-width: 2px;
    }

    .empty-title {
        font-size: 24px;
    }

    .empty-description {
        font-size: 13px;
    }

    .news-list {
        gap: 9px;
    }

    .news-row {
        min-height: 64px;
        border-width: 2px;
    }

    .news-row.unread {
        border-width: 3px;
    }

    .news-author {
        width: 86px;
        padding: 0 7px;
        font-size: 11px;
    }

    .news-title {
        padding: 0 7px;
        font-size: 15px;
    }

    .news-unread {
        margin-left: 7px;
        font-size: 10px;
    }

    .news-date {
        width: 74px;
        padding: 0 6px;
        font-size: 10px;
    }

    .white-button {
        margin-bottom: 16px;
        padding: 8px 12px;
        border-width: 2px;
        font-size: 13px;
    }

    .detail-box {
        padding: 20px;
        border-width: 2px;
    }

    .detail-author {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .detail-title-line {
        gap: 6px;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-title {
        font-size: 27px;
    }

    .detail-date {
        font-size: 12px;
    }

    .detail-content {
        font-size: 15px;
        line-height: 1.8;
    }

    /*
      모바일 사진은 현재 괜찮다고 했으므로
      기존 크기 유지
    */
    .news-images {
        margin-top: 14px;
        gap: 7px;
    }

    .news-image {
        width: auto !important;
        height: 125px !important;
        max-width: none !important;
        max-height: 125px !important;
        flex: 0 0 auto !important;
    }

    .delete-button {
        margin-top: 12px;
        padding: 9px 14px;
        border-width: 2px;
        font-size: 13px;
    }

    .write-box {
        padding: 20px;
        border-width: 2px;
    }

    .write-box h1 {
        margin-bottom: 22px;
        font-size: 27px;
    }

    .write-box label,
    .auth-box label {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .write-box input,
    .write-box textarea,
    .auth-box input {
        margin-bottom: 17px;
        padding: 10px;
        border-width: 2px;
        font-size: 14px;
    }

    .write-box textarea {
        min-height: 180px;
    }

    .file-input {
        padding: 8px !important;
    }

    .image-help {
        margin: -8px 0 15px;
        font-size: 11px;
    }

    .image-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .preview-name {
        font-size: 9px;
    }

    .auth-box {
        width: 100%;
        margin: 20px auto;
        border-width: 2px;
    }

    .auth-tabs {
        border-bottom-width: 2px;
    }

    .auth-tab {
        padding: 11px 8px;
        border-right-width: 2px;
        font-size: 14px;
    }

    .auth-panel {
        padding: 22px;
    }

    .auth-panel h1 {
        margin-bottom: 8px;
        font-size: 26px;
    }

    .auth-description {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .login-button {
        padding: 11px;
        border-width: 2px;
        font-size: 15px;
    }

    .login-cancel-button {
        width: calc(100% - 44px);
        margin: 0 22px 22px;
        padding: 11px;
        border-width: 2px;
        font-size: 15px;
    }

    .login-error {
        margin: 0 22px 15px;
        font-size: 12px;
    }
}

@media (max-width: 700px) {

    .news-interactions {
        margin-top: 20px;
    }

    .reaction-bar {
        gap: 8px;
        padding-bottom: 12px;
    }

    .like-button {
        padding: 8px 12px;
        border-width: 2px;
        font-size: 13px;
    }

    .comment-count {
        font-size: 12px;
    }

    .comment-item {
        padding: 13px 2px;
    }

    .comment-author {
        font-size: 13px;
    }

    .comment-date {
        font-size: 10px;
    }

    .comment-content {
        padding-right: 45px;
        font-size: 13px;
        line-height: 1.65;
    }

    .comment-delete-button {
        top: 11px;
        font-size: 10px;
    }

    .comment-form textarea {
        min-height: 85px;
        padding: 10px;
        border-width: 2px;
        font-size: 13px;
    }

    .comment-form-bottom {
        gap: 8px;
    }

    .comment-length {
        font-size: 10px;
    }
}

@media (max-width: 480px) {

    .top-bar {
        height: 62px;
        padding: 0 7px 0 8px;
    }

    .profile {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .title {
        margin-left: 8px;
        font-size: 22px;
    }

    .header-actions {
        gap: 4px;
    }

    .admin-button,
    .info-button {
        padding: 6px 7px;
        font-size: 9px;
    }

    .admin-button {
        max-width: 90px;
    }

    .info-button {
        max-width: 66px;
    }

    .site-layout {
        height: calc(100vh - 64px);
    }

    .sidebar {
        width: 72px;
        flex-basis: 72px;
    }

    .main-content {
        width: calc(100% - 72px);
        padding: 14px 10px;
    }

    .menu-item {
        height: 52px;
        min-height: 52px;
        font-size: 13px;
    }

    .menu-item.locked {
        font-size: 11px;
    }

    .page-heading {
        font-size: 24px;
    }

    .news-author {
        width: 70px;
        font-size: 10px;
    }

    .news-title {
        font-size: 13px;
    }

    .news-unread {
        margin-left: 5px;
        font-size: 9px;
    }

    .news-date {
        width: 65px;
        font-size: 9px;
    }

    .news-images {
        gap: 5px;
        margin-top: 12px;
    }

    .news-image {
        width: auto !important;
        height: 105px !important;
        max-width: none !important;
        max-height: 105px !important;
        flex: 0 0 auto !important;
    }

}

/* ==========================================================
   최종 강제 적용
   PC/컴퓨터에서만 사진 크기를 확실하게 175px로 고정
   위의 다른 규칙보다 마지막에 적용됨
========================================================== */

@media (min-width: 701px) {

    .news-images {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 14px !important;
    }

    .news-image {
        width: auto !important;
        height: 175px !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: none !important;
        max-height: 175px !important;

        flex: 0 0 auto !important;

        object-fit: contain !important;
    }
}

/* =========================
   조회수 / 목록 통계 / 수정
========================= */

.news-stats {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-stats {
    margin: -18px 0 28px;
    font-size: 15px;
    font-weight: 700;
    color: #777777;
}

.edit-news-button {
    margin-top: 20px;
    margin-right: 8px;
    padding: 12px 22px;
    background: #FF9400;
    border: 3px solid #000000;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.edit-news-button:hover {
    background: #e98900;
}

@media (max-width: 700px) {

    .news-stats {
        margin-top: 3px;
        font-size: 9px;
    }

    .detail-stats {
        margin: -10px 0 18px;
        font-size: 11px;
    }

    .edit-news-button {
        margin-top: 12px;
        margin-right: 5px;
        padding: 9px 14px;
        border-width: 2px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .news-stats {
        font-size: 8px;
    }

    .detail-stats {
        font-size: 10px;
    }

    .edit-news-button {
        font-size: 12px;
    }
}

/* =========================
   인증 UI 안정화
========================= */
.auth-box {
    position: relative;
    z-index: 1;
}

.auth-tabs {
    position: relative;
    z-index: 2;
}

.auth-tab {
    position: relative;
    z-index: 3;
    cursor: pointer !important;
    pointer-events: auto !important;
}

@media (min-width: 701px) {
    .auth-tabs {
        display: flex;
    }

    .auth-tab {
        flex: 1 1 0;
    }
}

@media (max-width: 700px) {
    .auth-tabs {
        display: flex;
    }

    .auth-tab {
        flex: 1 1 0;
    }
}

/* ==========================================================
   로그인 / 회원가입 - PC + 노트북 + 태블릿 + 모바일 압축 배치
   목적: 화면 아래로 최대한 내리지 않고 전체 폼을 보이게 함
========================================================== */

.auth-box {
    width: min(900px, calc(100% - 24px)) !important;
    max-width: 900px !important;
    margin: 16px auto !important;
    padding: 0 !important;
}

.auth-tabs {
    display: flex !important;
    width: 100%;
}

.auth-tab {
    flex: 1 1 0 !important;
    min-width: 0;
    padding: 10px 8px !important;
    font-size: 16px !important;
}

.auth-panel {
    padding: 20px 24px !important;
}

.auth-panel h1 {
    margin: 0 0 6px !important;
    font-size: 30px !important;
}

.auth-description {
    margin: 0 0 14px !important;
    font-size: 14px !important;
}

/* PC / 노트북 / 큰 태블릿: 입력칸 가로 배치 */
@media (min-width: 701px) {
    .auth-box {
        width: min(900px, calc(100% - 50px)) !important;
        max-height: calc(100vh - 80px);
        overflow: hidden;
    }

    .auth-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 0;
        align-items: end;
    }

    .auth-panel h1,
    .auth-panel .auth-description,
    .auth-panel .login-button,
    .auth-panel + .auth-panel {
        grid-column: 1 / -1;
    }

    .auth-panel label {
        margin-bottom: 5px !important;
        font-size: 14px !important;
    }

    .auth-panel input {
        width: 100% !important;
        margin-bottom: 12px !important;
        padding: 10px !important;
        font-size: 15px !important;
    }

    .login-button {
        padding: 11px !important;
        font-size: 16px !important;
        margin-top: 2px;
    }

    .login-cancel-button {
        width: calc(100% - 48px) !important;
        margin: 0 24px 18px !important;
        padding: 10px !important;
        font-size: 15px !important;
    }

    .login-error {
        margin: 0 24px 10px !important;
        font-size: 13px !important;
        min-height: 18px !important;
    }
}

/* 모바일 / 작은 화면: 세로지만 최대한 짧게 */
@media (max-width: 700px) {
    .auth-box {
        width: min(430px, calc(100% - 16px)) !important;
        max-width: 430px !important;
        margin: 8px auto !important;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    .auth-tab {
        padding: 8px 6px !important;
        font-size: 14px !important;
    }

    .auth-panel {
        padding: 14px 16px !important;
    }

    .auth-panel h1 {
        margin-bottom: 4px !important;
        font-size: 24px !important;
    }

    .auth-description {
        margin-bottom: 12px !important;
        font-size: 12px !important;
    }

    .auth-panel label {
        margin-bottom: 4px !important;
        font-size: 12px !important;
    }

    .auth-panel input {
        margin-bottom: 10px !important;
        padding: 8px !important;
        font-size: 13px !important;
    }

    .login-button {
        padding: 9px !important;
        font-size: 14px !important;
    }

    .login-cancel-button {
        width: calc(100% - 32px) !important;
        margin: 0 16px 12px !important;
        padding: 9px !important;
        font-size: 13px !important;
    }

    .login-error {
        margin: 0 16px 10px !important;
        font-size: 11px !important;
        min-height: 15px !important;
    }
}

/* 아주 작은 휴대폰: 회원가입도 가급적 한 화면에 */
@media (max-width: 480px) {
    .auth-box {
        width: calc(100% - 10px) !important;
        max-height: calc(100vh - 72px);
        margin: 5px auto !important;
    }

    .auth-panel {
        padding: 10px 12px !important;
    }

    .auth-panel h1 {
        font-size: 21px !important;
    }

    .auth-description {
        font-size: 11px !important;
        margin-bottom: 9px !important;
    }

    .auth-panel label {
        font-size: 11px !important;
    }

    .auth-panel input {
        padding: 7px !important;
        font-size: 12px !important;
        margin-bottom: 7px !important;
    }

    .login-button {
        padding: 8px !important;
        font-size: 13px !important;
    }

    .login-cancel-button {
        padding: 8px !important;
        margin: 0 12px 10px !important;
        width: calc(100% - 24px) !important;
    }
}
/* =========================
   관리자 커뮤니티
========================= */
.community-shell {
    width: min(920px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.community-description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border: 2px solid #000;
    background: #fff;
}
.community-description strong { font-size: 18px; }
.community-description span { font-size: 14px; color: #666; line-height: 1.5; }

.community-messages {
    height: 560px;
    padding: 20px 16px;
    overflow-y: auto;
    border: 3px solid #111;
    border-radius: 10px;
    background: #f3f3f3;
}

.community-message {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 82%;
    margin-bottom: 16px;
}
.community-message.other { align-items: flex-start; }
.community-message.self { margin-left: auto; align-items: flex-end; }
.community-name {
    margin: 0 8px 5px;
    font-size: 13px;
    font-weight: 700;
    color: #222;
}
.community-message-row {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: flex-end;
    gap: 6px;
}
.community-message.self .community-message-row { flex-direction: row-reverse; }
.community-bubble {
    display: inline-block;
    width: fit-content;
    max-width: min(620px, 68vw);
    min-width: 0;
    padding: 7px 10px;
    border: 2px solid #222;
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,.10);
}
.community-message.self .community-bubble { background: #ffdf9a; }
.community-time {
    flex: 0 0 auto;
    font-size: 11px;
    color: #777;
    white-space: nowrap;
}
.community-empty, .community-loading, .community-error {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}
.community-error { color: #c00; }
.community-readonly-notice {
    padding: 11px 14px;
    border: 2px solid #222;
    background: #fff;
    color: #666;
    text-align: center;
    font-size: 13px;
}
.community-composer {
    padding: 12px;
    border: 2px solid #000;
    background: #fff;
}
.community-composer textarea {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #b8b8b8;
    outline: 0;
    font: inherit;
    font-size: 15px;
    line-height: 1.55;
}
.community-composer textarea:focus { border-color: #000; }
.community-composer textarea:disabled { background: #f4f4f4; color: #999; }
.community-composer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}
.community-message-length { color: #888; font-size: 12px; }

@media (max-width: 700px) {
    .top-bar {
        background-image: url("./airplane.png");
        background-position: left top;
        background-size: cover;
    }
    .community-messages {
        height: 52vh;
        min-height: 360px;
        padding: 14px 10px;
        border-width: 2px;
    }
    .community-message { max-width: 91%; margin-bottom: 13px; }
    .community-message-row { gap: 5px; }
    .community-bubble {
        max-width: 67vw;
        padding: 6px 9px;
        border-radius: 11px;
        font-size: 14px;
        line-height: 1.4;
    }
    .community-name { margin: 0 6px 4px; font-size: 11px; }
    .community-time { font-size: 9px; }
    .community-description { padding: 12px 13px; border-width: 1.5px; }
    .community-description strong { font-size: 16px; }
    .community-description span { font-size: 12px; }
    .community-composer { border-width: 1.5px; padding: 9px; }
}

/* =========================
   메뉴 구분
========================= */
.menu-membership-divider {
    width: 100%;
    padding: 9px 8px 7px;
    border-top: 1.5px solid #000000;
    background: #ffffff;
    color: #777777;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 700px) {
    .menu-membership-divider {
        padding: 6px 3px 5px;
        border-top-width: 1px;
        font-size: 9px;
    }
}

/* ================================
   사진 정렬
================================ */
.news-image {
    object-position: left top !important;
}

.edit-news-button {
    margin-top: 12px;
}

/* ================================
   관리자 커뮤니티 말풍선
   - 짧은 글: 글자+여백만큼
   - 긴 글: 화면 안에서만 자동 줄바꿈
================================ */
.community-message-row {
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100% !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

.community-bubble {
    display: block !important;
    width: max-content !important;
    max-width: min(620px, 68vw) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
    padding: 8px 12px !important;
    border: 2px solid #222 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.community-message.self .community-bubble {
    background: #ffdf9a !important;
}

/* PC */
@media (min-width: 701px) {
    .community-message-row {
        display: inline-flex !important;
        width: max-content !important;
        max-width: 100% !important;
    }

    .community-bubble {
        width: max-content !important;
        max-width: min(620px, 60vw) !important;
        padding: 8px 12px !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }
}

/* 모바일: 기존 모바일 전용 배너로 복구 */
@media (max-width: 700px) {
    .top-bar {
        background-image: url("./airplane.png") !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .community-message {
        width: fit-content !important;
        max-width: 91% !important;
    }

    .community-message-row {
        display: inline-flex !important;
        width: max-content !important;
        max-width: 100% !important;
        gap: 5px !important;
    }

    .community-bubble {
        width: max-content !important;
        max-width: min(68vw, 280px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 7px 10px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

/* ===== 메뉴 드로어 최종 수정 ===== */

/* 왼쪽 메뉴는 평소 숨김 */
.sidebar {
    position: fixed !important;
    top: calc(11.111111vh + 3px + 48px) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 265px !important;
    height: auto !important;
    flex: none !important;
    z-index: 1002 !important;
    transform: translateX(-105%) !important;
    transition: transform .22s ease !important;
    box-shadow: 8px 0 24px rgba(0,0,0,.18) !important;
    overflow-y: auto !important;
}

.sidebar.open {
    transform: translateX(0) !important;
}

/* 배너 바로 아래 왼쪽의 햄버거 버튼 */
.menu-toggle {
    position: relative !important;
    z-index: 1004 !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #000 !important;
    border-bottom: 1px solid #000 !important;
    background: #fff !important;
    display: block !important;
    cursor: pointer !important;
    position: relative !important;
}

/* 실제 3개 가로줄을 배경으로 고정해서 어떤 상속 스타일에도 안 뒤집힘 */
.menu-toggle::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 24px !important;
    height: 18px !important;
    transform: translate(-50%, -50%) !important;
    background: linear-gradient(
        to bottom,
        #111 0, #111 2px,
        transparent 2px, transparent 8px,
        #111 8px, #111 10px,
        transparent 10px, transparent 16px,
        #111 16px, #111 18px
    ) !important;
    pointer-events: none !important;
}

/* 기존 span은 숨김 */
.menu-toggle-bar {
    display: none !important;
}

/* 나머지 화면 어둡게 */
.sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1001 !important;
    background: rgba(0,0,0,.52) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .22s ease, visibility .22s ease !important;
}

.sidebar-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 본문은 사이드바가 없어도 전체 폭 사용 */
.site-layout {
    display: block !important;
    width: 100% !important;
    height: calc(100vh - 11.111111vh - 3px - 48px) !important;
}

.main-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
}

@media (max-width: 700px) {
    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
    }

    .menu-toggle::before {
        width: 22px !important;
        height: 16px !important;
        background: linear-gradient(
            to bottom,
            #111 0, #111 2px,
            transparent 2px, transparent 7px,
            #111 7px, #111 9px,
            transparent 9px, transparent 14px,
            #111 14px, #111 16px
        ) !important;
    }

    .sidebar {
        top: calc(11.111111vh + 3px + 42px) !important;
        width: min(270px, 82vw) !important;
    }

    .site-layout {
        height: calc(100vh - 11.111111vh - 3px - 42px) !important;
    }
}



/* 홈 화면 - 독립된 별도 창 */
#screen-home.home-screen {
    width: 100%;
}

#screen-home .home-window {
    width: 100%;
    border: 4px solid #000;
    background: #fff;
}

#screen-home .home-window-title {
    padding: 18px 24px;
    border-bottom: 3px solid #000;
    background: #ff9400;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

#screen-home .home-window-body {
    min-height: 360px;
    padding: 48px;
}

#screen-home .home-window-body h1 {
    margin: 0 0 18px;
    font-size: 46px;
    line-height: 1.2;
}

#screen-home .home-window-body p {
    margin: 0;
    font-size: 21px;
    line-height: 1.7;
}

@media (max-width: 700px) {
    #screen-home .home-window {
        border-width: 2px;
    }

    #screen-home .home-window-title {
        padding: 12px 16px;
        border-bottom-width: 2px;
        font-size: 22px;
    }

    #screen-home .home-window-body {
        min-height: 240px;
        padding: 24px;
    }

    #screen-home .home-window-body h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    #screen-home .home-window-body p {
        font-size: 14px;
    }
}

/* 홈 화면 보완 */
#screen-home .home-window-title {
    text-align: center;
}

#screen-home .youtube-link {
    display: inline-block;
    margin-top: 24px;
    padding: 13px 22px;
    background: #ff0000;
    border: 3px solid #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

#screen-home .youtube-link:hover {
    background: #cc0000;
}

@media (max-width: 700px) {
    #screen-home .youtube-link {
        margin-top: 18px;
        padding: 10px 14px;
        border-width: 2px;
        font-size: 14px;
    }
}


/* =========================
   홈 대시보드
========================= */

#screen-home.home-screen {
    width: 100%;
}

#screen-home .home-dashboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#screen-home .home-hero {
    position: relative;
    width: 100%;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 48px 52px;
    overflow: hidden;
    background: #111111;
    border: 4px solid #000000;
    color: #ffffff;
}

#screen-home .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(255, 148, 0, 0.16),
            transparent 48%,
            rgba(255, 255, 255, 0.04)
        );
    pointer-events: none;
}

#screen-home .home-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

#screen-home .home-eyebrow {
    margin-bottom: 13px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ff9400;
}

#screen-home .home-hero h1 {
    margin: 0;
    font-size: clamp(42px, 4vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

#screen-home .home-hero p {
    margin: 20px 0 0;
    font-size: 20px;
    line-height: 1.65;
    color: #dddddd;
}

#screen-home .home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

#screen-home .home-primary-button,
#screen-home .home-youtube-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 20px;
    border: 3px solid #ffffff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.15s ease;
}

#screen-home .home-primary-button {
    background: #ff9400;
    border-color: #ff9400;
    color: #111111;
}

#screen-home .home-primary-button:hover {
    background: #ffffff;
    border-color: #ffffff;
}

#screen-home .home-youtube-button {
    background: transparent;
    color: #ffffff;
}

#screen-home .home-youtube-button:hover {
    background: #ffffff;
    color: #111111;
}

#screen-home .home-hero-mark {
    position: relative;
    z-index: 1;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    border: 3px solid #ff9400;
    background: #191919;
    transform: rotate(7deg);
    isolation: isolate;
}

/* 안쪽 네모는 사진보다 뒤에 표시 */
#screen-home .home-hero-mark::before,
#screen-home .home-hero-mark::after {
    content: "";
    position: absolute;
    z-index: 0;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    opacity: 0.18;
    pointer-events: none;
}

#screen-home .home-hero-mark::before {
    inset: 17px;
}

#screen-home .home-hero-mark::after {
    inset: 33px;
}

#screen-home .home-hero-mark span {
    position: relative;
    z-index: 2;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.08em;
    transform: rotate(-7deg);
}

/* 사진은 바깥 네모 안에만 들어가고, 안쪽 네모는 사진 뒤에 남김 */
#screen-home .home-hero-image {
    position: relative;
    z-index: 3;
    display: block;
    width: 82%;
    height: 82%;
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    transform: rotate(-7deg);
}

#screen-home .home-section-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

#screen-home .home-panel {
    width: 100%;
    padding: 28px;
    background: #ffffff;
    border: 4px solid #000000;
}

#screen-home .home-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

#screen-home .home-panel-kicker {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: #ff9400;
}

#screen-home .home-panel-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

#screen-home .home-text-button {
    padding: 5px 0;
    border: none;
    background: transparent;
    color: #555555;
    font-size: 15px;
    font-weight: 800;
}

#screen-home .home-text-button:hover {
    color: #ff9400;
}

#screen-home .home-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#screen-home .home-news-item {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    background: #ffffff;
    border: none;
    border-top: 2px solid #eeeeee;
    color: #111111;
    text-align: left;
    transition: 0.15s ease;
}

#screen-home .home-news-item:first-child {
    border-top: none;
}

#screen-home .home-news-item:hover {
    padding-left: 6px;
    background: #fff8ee;
}

#screen-home .home-news-rank {
    width: 34px;
    flex: 0 0 34px;
    font-size: 17px;
    font-weight: 900;
    color: #ff9400;
}

#screen-home .home-news-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#screen-home .home-news-meta,
#screen-home .home-news-author {
    font-size: 12px;
    color: #777777;
}

#screen-home .home-news-item strong {
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#screen-home .home-news-views {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    color: #666666;
}

#screen-home .home-loading,
#screen-home .home-empty {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    border: 2px dashed #d8d8d8;
    color: #888888;
    text-align: center;
    font-size: 15px;
}

#screen-home .home-quick-panel {
    margin-bottom: 0;
}

#screen-home .home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

#screen-home .home-quick-card {
    min-width: 0;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    background: #f8f8f8;
    border: 3px solid #000000;
    color: #111111;
    text-align: left;
    transition: 0.15s ease;
}

#screen-home .home-quick-card:hover {
    background: #ff9400;
    transform: translateY(-2px);
}

#screen-home .home-quick-number {
    margin-bottom: 19px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

#screen-home .home-quick-card strong {
    margin-bottom: 8px;
    font-size: 21px;
}

#screen-home .home-quick-card > span:last-child {
    font-size: 13px;
    line-height: 1.55;
    color: #666666;
}

#screen-home .home-quick-card:hover > span:last-child {
    color: #222222;
}

@media (max-width: 1100px) {
    #screen-home .home-hero {
        padding: 40px;
    }

    #screen-home .home-hero-mark {
        width: 140px;
        height: 140px;
        flex-basis: 140px;
    }

    #screen-home .home-hero-image {
        width: 82%;
        height: 82%;
        max-width: 82%;
        max-height: 82%;
    }

    #screen-home .home-hero-mark span {
        font-size: 40px;
    }

    #screen-home .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    #screen-home .home-section-grid {
        grid-template-columns: 1fr;
    }

    #screen-home .home-hero {
        min-height: 0;
        padding: 30px;
    }

    #screen-home .home-hero-mark {
        display: none;
    }
}

@media (max-width: 700px) {
    #screen-home .home-dashboard {
        gap: 16px;
    }

    #screen-home .home-hero {
        padding: 25px 22px;
        border-width: 2px;
    }

    #screen-home .home-eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    #screen-home .home-hero h1 {
        font-size: 34px;
    }

    #screen-home .home-hero p {
        margin-top: 14px;
        font-size: 15px;
    }

    #screen-home .home-actions {
        margin-top: 20px;
    }

    #screen-home .home-primary-button,
    #screen-home .home-youtube-button {
        min-height: 45px;
        padding: 10px 14px;
        border-width: 2px;
        font-size: 14px;
    }

    #screen-home .home-panel {
        padding: 20px 17px;
        border-width: 2px;
    }

    #screen-home .home-panel-heading h2 {
        font-size: 24px;
    }

    #screen-home .home-news-item {
        gap: 9px;
    }

    #screen-home .home-news-item strong {
        font-size: 15px;
    }

    #screen-home .home-news-rank {
        width: 27px;
        flex-basis: 27px;
        font-size: 15px;
    }

    #screen-home .home-news-views {
        display: none;
    }

    #screen-home .home-quick-grid {
        grid-template-columns: 1fr;
    }

    #screen-home .home-quick-card {
        min-height: 120px;
        border-width: 2px;
    }
}


/* 후원 페이지 */
.donation-box {
    width: min(760px, 100%);
    margin: 24px auto 0;
    padding: 34px 28px;
    border: 2px solid #111;
    border-radius: 18px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.donation-box-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.donation-box-description {
    margin: 0 auto 24px;
    max-width: 620px;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

.donation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 2px solid #111;
    border-radius: 12px;
    background: #ff9400;
    color: #111;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.donation-button:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.donation-button:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .donation-box {
        padding: 28px 18px;
        border-radius: 14px;
    }

    .donation-box-title {
        font-size: 23px;
    }

    .donation-box-description {
        font-size: 15px;
    }

    .donation-button {
        width: 100%;
        padding: 0 16px;
        font-size: 15px;
    }
}

/* 후원 닉네임 안내문 */
.donation-nickname-notice {
    margin: 10px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .donation-nickname-notice {
        font-size: 12px;
    }
}

/* ==========================================================
   영상 미리보기
========================================================== */

.video-preview-upload-box {
    margin-top: 24px;
    padding: 26px;
    background: #ffffff;
    border: 3px solid #000000;
}

.video-preview-upload-box h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.video-preview-help {
    margin: 0 0 22px;
    color: #777777;
    font-size: 14px;
    font-weight: 600;
}

.video-preview-upload-box label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

.video-preview-upload-box input[type="text"],
.video-preview-upload-box textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 12px;
    border: 2px solid #000000;
    background: #ffffff;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.video-preview-upload-box textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.video-file-name {
    margin: 10px 0 16px;
    color: #666666;
    font-size: 13px;
    word-break: break-all;
}

.video-upload-actions {
    display: flex;
    justify-content: flex-end;
}

.video-upload-status {
    min-height: 22px;
    margin-top: 14px;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
}

.video-upload-status.error {
    color: #c00000;
    font-weight: 700;
}

.video-upload-status.success {
    color: #168000;
    font-weight: 700;
}

.video-upload-progress-wrap {
    margin-top: 12px;
}

.video-upload-progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    background: #eeeeee;
    border: 2px solid #000000;
    box-sizing: border-box;
}

.video-upload-progress-bar {
    width: 0;
    height: 100%;
    background: #FF9400;
}

.video-upload-progress-text {
    margin-top: 6px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.video-preview-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.video-preview-card {
    overflow: hidden;
    background: #ffffff;
    border: 3px solid #000000;
}

.video-player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111111;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #111111;
}

.video-player-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.video-preview-card-body {
    padding: 18px;
}

.video-preview-card-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.video-preview-card-description {
    margin-bottom: 12px;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.video-preview-card-meta {
    margin-bottom: 14px;
    color: #888888;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
}

.video-delete-button {
    padding: 9px 13px;
    background: #ffffff;
    border: 2px solid #000000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.video-delete-button:hover {
    background: #eeeeee;
}

.video-empty-box {
    grid-column: 1 / -1;
    padding: 35px 20px;
    background: #ffffff;
    border: 3px solid #000000;
    text-align: center;
    color: #666666;
    font-weight: 700;
}

.video-error-box {
    color: #c00000;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .video-preview-upload-box {
        padding: 18px;
        border-width: 2px;
    }

    .video-preview-upload-box h2 {
        font-size: 21px;
    }

    .video-preview-help {
        font-size: 11px;
    }

    .video-preview-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .video-preview-card {
        border-width: 2px;
    }

    .video-preview-card-body {
        padding: 14px;
    }

    .video-preview-card-title {
        font-size: 17px;
    }

    .video-preview-card-description {
        font-size: 12px;
    }

    .video-preview-card-meta {
        font-size: 10px;
    }
}


/* ==========================================================
   카테고리 소개 화면 - 하단 빈 공간 채우기
   소식 / 스포츠소식 / 관리자 커뮤니티 / 고급소식 공통
   화면 전체에서 별도 스크롤 없이 최근 글 3개 표시
========================================================== */
.category-intro-screen.visible {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-intro-box {
    flex: 0 0 auto;
    margin-top: 24px !important;
    padding: 28px 32px !important;
}

.category-intro-box h2 {
    margin-bottom: 12px !important;
    font-size: 30px !important;
}

.category-intro-box p {
    margin-bottom: 20px !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
}

.category-intro-box .orange-button {
    padding: 13px 24px;
    font-size: 18px;
}

.intro-recent-panel {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 18px;
    padding: 18px 20px 20px;
    border: 3px solid #000000;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.intro-recent-heading {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.intro-recent-kicker {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ff9400;
}

.intro-recent-heading h2 {
    margin: 0;
    font-size: 24px;
}

.intro-recent-description {
    flex-shrink: 0;
    color: #777777;
    font-size: 12px;
    font-weight: 700;
}

.intro-recent-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
}

.intro-recent-card {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #222222;
    background: #ffffff;
    color: #111111;
    text-align: left;
    overflow: hidden;
}

.intro-recent-card:hover {
    background: #fff8ef;
}

.intro-recent-number {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 800;
    color: #ff9400;
}

.intro-recent-card-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.intro-recent-card-meta,
.intro-recent-card-author {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #777777;
    font-size: 11px;
    font-weight: 600;
}

.intro-recent-card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 16px;
    line-height: 1.35;
    word-break: break-word;
}

.intro-recent-arrow {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 800;
}

.intro-recent-loading,
.intro-recent-empty {
    grid-column: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777777;
    font-size: 14px;
}

/* ==========================================================
   관리자 커뮤니티 말풍선 - 글자에 최대한 밀착
========================================================== */
.community-message {
    display: flex !important;
    flex-direction: column !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-items: flex-start !important;
}

.community-message.self {
    align-items: flex-end !important;
}

.community-message-row {
    display: flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    align-items: flex-end !important;
    gap: 6px !important;
}

.community-bubble {
    display: block !important;
    width: auto !important;
    max-width: min(620px, 70vw) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
    padding: 8px 11px !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 700px) {
    .category-intro-box {
        margin-top: 14px !important;
        padding: 18px 16px !important;
    }

    .category-intro-box h2 {
        margin-bottom: 8px !important;
        font-size: 21px !important;
    }

    .category-intro-box p {
        margin-bottom: 13px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .category-intro-box .orange-button {
        padding: 9px 14px;
        border-width: 2px;
        font-size: 13px;
    }

    .intro-recent-panel {
        margin-top: 12px;
        padding: 11px;
        border-width: 2px;
    }

    .intro-recent-heading {
        gap: 8px;
        margin-bottom: 8px;
    }

    .intro-recent-kicker {
        font-size: 8px;
    }

    .intro-recent-heading h2 {
        font-size: 17px;
    }

    .intro-recent-description {
        font-size: 9px;
    }

    .intro-recent-grid {
        gap: 7px;
    }

    .intro-recent-card {
        gap: 6px;
        padding: 8px;
        border-width: 1.5px;
    }

    .intro-recent-number {
        font-size: 13px;
    }

    .intro-recent-card-meta,
    .intro-recent-card-author {
        font-size: 8px;
    }

    .intro-recent-card-title {
        font-size: 11px;
        line-height: 1.3;
    }

    .intro-recent-arrow {
        font-size: 13px;
    }

    .intro-recent-loading,
    .intro-recent-empty {
        font-size: 11px;
    }

    .community-message-row {
        gap: 5px !important;
    }

    .community-bubble {
        max-width: min(68vw, 300px) !important;
        padding: 7px 10px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 420px) {
    .intro-recent-card {
        gap: 5px;
        padding: 7px;
    }

    .intro-recent-number {
        font-size: 11px;
    }

    .intro-recent-card-meta,
    .intro-recent-card-author {
        font-size: 7px;
    }

    .intro-recent-card-title {
        font-size: 10px;
    }

    .intro-recent-arrow {
        font-size: 11px;
    }

    .community-bubble {
        max-width: calc(100vw - 95px) !important;
    }
}

/* ==========================================================
   최근 소식 3개 - 소개 화면 안에서만 공간 채우기
   PC / 모바일 모두 페이지 자체 스크롤 없이 표시
========================================================== */
.category-intro-screen.visible {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.category-intro-screen .page-heading {
    flex: 0 0 auto;
}

.category-intro-box {
    flex: 0 0 auto !important;
    min-height: 0 !important;
}

.intro-recent-panel {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.intro-recent-grid {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.intro-recent-card {
    min-height: 0 !important;
    height: 100% !important;
}

@media (max-width: 700px) {
    .category-intro-screen .page-heading {
        margin-bottom: 6px !important;
        font-size: 24px !important;
    }

    .category-intro-box {
        margin-top: 8px !important;
        padding: 12px 14px !important;
    }

    .category-intro-box h2 {
        margin-bottom: 6px !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .category-intro-box p {
        margin-bottom: 8px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    .category-intro-box .orange-button {
        padding: 8px 11px !important;
        border-width: 2px !important;
        font-size: 12px !important;
    }

    .intro-recent-panel {
        flex-basis: 170px !important;
        margin-top: 8px !important;
        padding: 8px !important;
    }

    .intro-recent-heading {
        margin-bottom: 6px !important;
    }

    .intro-recent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .intro-recent-card {
        padding: 7px !important;
        gap: 5px !important;
    }

    .intro-recent-card-title {
        font-size: 10px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    .intro-recent-card-meta,
    .intro-recent-card-author {
        font-size: 7px !important;
    }
}

@media (max-width: 420px) {
    .intro-recent-panel {
        flex-basis: 155px !important;
        padding: 7px !important;
    }

    .intro-recent-grid {
        gap: 5px !important;
    }

    .intro-recent-card {
        padding: 6px !important;
        gap: 4px !important;
    }

    .intro-recent-number {
        font-size: 10px !important;
    }

    .intro-recent-card-title {
        font-size: 9px !important;
    }

    .intro-recent-card-meta,
    .intro-recent-card-author {
        font-size: 6.5px !important;
    }

    .intro-recent-arrow {
        font-size: 10px !important;
    }
}

/* ==========================================================
   관리자 커뮤니티 말풍선 - 글자 길이에 맞춰 표시
========================================================== */
.community-message {
    width: fit-content !important;
    max-width: 88% !important;
}

.community-message-row {
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-flex !important;
}

.community-bubble {
    width: auto !important;
    max-width: min(620px, 68vw) !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
}

@media (max-width: 700px) {
    .community-message {
        max-width: 91% !important;
    }

    .community-message-row {
        width: fit-content !important;
        max-width: 100% !important;
    }

    .community-bubble {
        max-width: calc(100vw - 110px) !important;
    }
}


/* ==========================================================
   최종: 카테고리 소개 화면 / 최근 소식 3개 안정화
   PC / 모바일 모두 화면 밖으로 밀려나지 않도록 높이를 고정
========================================================== */
.category-intro-screen.visible {
    box-sizing: border-box !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.category-intro-screen .category-intro-box {
    flex: 0 0 auto !important;
    min-height: 0 !important;
}

.category-intro-screen .intro-recent-panel {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.category-intro-screen .intro-recent-grid {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.category-intro-screen .intro-recent-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* ==========================================================
   관리자 커뮤니티 말풍선 최종 정리
   글자 길이에 맞춰서만 늘어나고, 긴 글만 줄바꿈
========================================================== */
.community-message {
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.community-message-row {
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: flex-end !important;
}

.community-bubble {
    width: fit-content !important;
    max-width: min(620px, 70vw) !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 700px) {
    .category-intro-screen.visible {
        overflow: hidden !important;
    }

    .category-intro-screen .category-intro-box {
        margin-top: 8px !important;
        padding: 11px 13px !important;
    }

    .category-intro-screen .category-intro-box h2 {
        margin-bottom: 5px !important;
        font-size: 17px !important;
    }

    .category-intro-screen .category-intro-box p {
        margin-bottom: 7px !important;
        font-size: 10.5px !important;
        line-height: 1.32 !important;
    }

    .category-intro-screen .category-intro-box .orange-button {
        padding: 7px 10px !important;
        font-size: 11.5px !important;
    }

    .category-intro-screen .intro-recent-panel {
        flex: 0 0 150px !important;
        min-height: 150px !important;
        margin-top: 7px !important;
        padding: 7px !important;
    }

    .category-intro-screen .intro-recent-heading {
        margin-bottom: 5px !important;
    }

    .category-intro-screen .intro-recent-heading h2 {
        font-size: 16px !important;
    }

    .category-intro-screen .intro-recent-description {
        font-size: 8px !important;
    }

    .category-intro-screen .intro-recent-grid {
        gap: 5px !important;
    }

    .category-intro-screen .intro-recent-card {
        padding: 6px !important;
        gap: 4px !important;
    }

    .category-intro-screen .intro-recent-card-title {
        font-size: 9px !important;
        line-height: 1.22 !important;
        -webkit-line-clamp: 2 !important;
    }

    .category-intro-screen .intro-recent-card-meta,
    .category-intro-screen .intro-recent-card-author {
        font-size: 6.5px !important;
    }

    .category-intro-screen .intro-recent-number {
        font-size: 10px !important;
    }

    .category-intro-screen .intro-recent-arrow {
        font-size: 10px !important;
    }

    .community-bubble {
        max-width: calc(100vw - 105px) !important;
        padding: 7px 9px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 420px) {
    .category-intro-screen .intro-recent-panel {
        flex-basis: 140px !important;
        min-height: 140px !important;
    }

    .category-intro-screen .intro-recent-card {
        padding: 5px !important;
    }

    .category-intro-screen .intro-recent-card-title {
        font-size: 8.5px !important;
    }

    .category-intro-screen .intro-recent-card-meta,
    .category-intro-screen .intro-recent-card-author {
        font-size: 6px !important;
    }

    .community-bubble {
        max-width: calc(100vw - 95px) !important;
    }
}

/* ==========================================================
   관리자 커뮤니티 말풍선 최최종
   짧은 글은 글자에 딱 맞게,
   긴 글만 지정한 최대 너비에서 자동 줄바꿈
========================================================== */
.community-message {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.community-message-row {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
}

.community-bubble {
    display: inline-flex !important;
    width: max-content !important;
    max-width: min(620px, 70vw) !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    box-sizing: border-box !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    align-items: center !important;
}

@media (max-width: 700px) {
    .community-bubble {
        width: max-content !important;
        max-width: calc(100vw - 105px) !important;
        padding: 7px 9px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 420px) {
    .community-bubble {
        max-width: calc(100vw - 95px) !important;
    }
}


/* 역할 닉네임 + 말풍선 최종 보정 */
.community-name.admin,
.comment-author.admin {
    color: #1976d2 !important;
}

.community-name.membership,
.comment-author.membership {
    color: #d9a300 !important;
}

.community-message {
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.community-message-row {
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 5px !important;
}

.community-bubble {
    display: inline-block !important;
    width: max-content !important;
    max-width: min(620px, 70vw) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    box-sizing: border-box !important;
    padding: 3px 6px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 700px) {
    .community-bubble {
        max-width: calc(100vw - 95px) !important;
        padding: 3px 5px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 420px) {
    .community-bubble {
        max-width: calc(100vw - 88px) !important;
        padding: 3px 5px !important;
    }
}


/* ==========================================================
   커뮤니티 말풍선 NEW
   - 기존 말풍선 폭 계산을 무시하고 새 구조로 적용
   - 짧은 글은 글자 폭 + 최소 여백만 사용
   - 긴 글만 최대 폭에서 자동 줄바꿈
========================================================== */
.community-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.community-message.other {
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.community-message.self {
    align-items: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.community-message-row {
    display: flex !important;
    align-items: flex-end !important;
    align-self: flex-start !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
    box-sizing: border-box !important;
}

.community-message.self .community-message-row {
    align-self: flex-end !important;
    flex-direction: row-reverse !important;
}

.community-bubble {
    display: block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: min(620px, 70vw) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 1px 5px !important;
    border: 2px solid #222 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10) !important;
}

.community-message.self .community-bubble {
    background: #ffdf9a !important;
}

.community-name.admin,
.comment-author.admin {
    color: #1976d2 !important;
}

.community-name.membership,
.comment-author.membership {
    color: #d9a300 !important;
}

@media (max-width: 700px) {
    .community-message {
        width: max-content !important;
        max-width: 100% !important;
    }

    .community-message-row {
        width: max-content !important;
        max-width: 100% !important;
        gap: 3px !important;
    }

    .community-bubble {
        max-width: calc(100vw - 90px) !important;
        padding: 1px 5px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        border-radius: 11px !important;
    }
}

@media (max-width: 420px) {
    .community-bubble {
        max-width: calc(100vw - 80px) !important;
    }
}

/* ==========================================================
   커뮤니티 말풍선 최종 폰트 확대
   글자 크기 약 2.5배 / 말풍선은 글자 크기에 밀착
========================================================== */
.community-message {
    display: flex !important;
    flex-direction: column !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.community-message-row {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: flex-end !important;
    gap: 8px !important;
}

.community-bubble {
    display: inline-block !important;
    width: fit-content !important;
    max-width: min(760px, 72vw) !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    box-sizing: border-box !important;

    padding: 5px 10px !important;
    margin: 0 !important;
    border: 2px solid #222 !important;
    border-radius: 14px !important;

    font-size: 40px !important;
    line-height: 1.12 !important;
    font-weight: 500 !important;

    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.community-name {
    font-size: 15px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
}

.community-time {
    font-size: 11px !important;
    line-height: 1 !important;
}

@media (max-width: 700px) {
    .community-message {
        max-width: 100% !important;
    }

    .community-message-row {
        gap: 6px !important;
    }

    .community-bubble {
        max-width: calc(100vw - 95px) !important;
        padding: 4px 9px !important;
        border-radius: 12px !important;
        font-size: 40px !important;
        line-height: 1.12 !important;
    }

    .community-name {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .community-time {
        font-size: 9px !important;
    }
}

@media (max-width: 420px) {
    .community-bubble {
        max-width: calc(100vw - 82px) !important;
    }
}


/* FORCE FINAL COMMUNITY BUBBLE SIZE */
.community-messages .community-bubble {
    font-size: 40px !important;
    line-height: 1.12 !important;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: min(760px, 72vw) !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
}

@media (max-width: 700px) {
    .community-messages .community-bubble {
        font-size: 40px !important;
        max-width: calc(100vw - 95px) !important;
        padding: 4px 9px !important;
    }
}


/* ==========================================================
   후원 랭킹
========================================================== */
.donation-layout {
    width: min(1180px, 100%);
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 22px;
    align-items: start;
}

.donation-layout .donation-box {
    width: 100%;
    margin: 0;
    min-height: 100%;
}

.donation-ranking-box {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #111;
    border-radius: 18px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.donation-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.donation-ranking-title {
    font-size: 25px;
    font-weight: 900;
}

.donation-ranking-description {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

.donation-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.donation-ranking-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 12px 8px 8px;
    box-sizing: border-box;
    border: 2px solid #111;
    border-radius: 13px;
    background: #fff;
}

.donation-ranking-rank {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #111;
    box-sizing: border-box;
    font-size: 19px;
    font-weight: 900;
}

.donation-ranking-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 800;
}

.donation-ranking-amount {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
}

.rank-1 .donation-ranking-rank,
.donation-ranking-edit-rank.rank-1 {
    background: #ffd700;
    color: #7a4d00;
}

.rank-2 .donation-ranking-rank,
.donation-ranking-edit-rank.rank-2 {
    background: #d9dce1;
    color: #3f4650;
}

.rank-3 .donation-ranking-rank,
.donation-ranking-edit-rank.rank-3 {
    background: #cd7f32;
    color: #fff;
}

.rank-4 .donation-ranking-rank,
.donation-ranking-edit-rank.rank-4 {
    background: #68a8ff;
    color: #083b73;
}

.rank-5 .donation-ranking-rank,
.donation-ranking-edit-rank.rank-5 {
    background: #b18cff;
    color: #35106d;
}

.donation-ranking-loading,
.donation-ranking-error {
    padding: 26px 10px;
    text-align: center;
    line-height: 1.6;
    color: #777;
}

.donation-ranking-error {
    color: #c00;
}

.donation-ranking-admin {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px dashed #bbb;
}

.donation-ranking-admin-title {
    margin-bottom: 11px;
    font-size: 17px;
    font-weight: 900;
}

.donation-ranking-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donation-ranking-edit-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 120px 54px;
    gap: 7px;
    align-items: center;
}

.donation-ranking-edit-rank {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111;
    border-radius: 9px;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 900;
}

.donation-ranking-nickname-input,
.donation-ranking-amount-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 9px;
    box-sizing: border-box;
    border: 2px solid #bbb;
    border-radius: 9px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.donation-ranking-nickname-input:focus,
.donation-ranking-amount-input:focus {
    border-color: #111;
}

.donation-ranking-amount-wrap {
    min-width: 0;
    position: relative;
}

.donation-ranking-amount-wrap span {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 11px;
    color: #777;
}

.donation-ranking-amount-input {
    padding-right: 23px;
}

.donation-ranking-save-button {
    height: 40px;
    border: 2px solid #111;
    border-radius: 9px;
    background: #ff9400;
    color: #111;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.donation-ranking-save-button:hover {
    filter: brightness(1.05);
}

.donation-ranking-save-button:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 850px) {
    .donation-layout {
        grid-template-columns: 1fr;
    }

    .donation-layout .donation-box {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .donation-ranking-box {
        padding: 15px 12px;
        border-radius: 14px;
    }

    .donation-ranking-title {
        font-size: 21px;
    }

    .donation-ranking-description {
        font-size: 11px;
    }

    .donation-ranking-row {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        min-height: 56px;
        gap: 8px;
        padding: 6px 8px 6px 6px;
    }

    .donation-ranking-rank {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .donation-ranking-name {
        font-size: 15px;
    }

    .donation-ranking-amount {
        font-size: 12px;
    }

    .donation-ranking-edit-row {
        grid-template-columns: 42px minmax(0, 1fr) 100px;
    }

    .donation-ranking-save-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ==========================================================
   후원 페이지 모바일 스크롤 최종 수정
   랭킹이 화면 아래까지 전부 내려가도록
========================================================== */
@media (max-width: 700px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
    }

    .site-layout {
        display: block !important;
        width: 100% !important;
        height: calc(100vh - 74px) !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .main-content {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        padding-bottom: 40px !important;
    }

    #screen-donation.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-donation .donation-layout {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        margin-bottom: 24px !important;
    }

    #screen-donation .donation-box,
    #screen-donation .donation-ranking-box {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-donation .donation-ranking-list,
    #screen-donation .donation-ranking-admin,
    #screen-donation .donation-ranking-editor {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-donation .donation-ranking-box {
        margin-bottom: 24px !important;
    }
}

/* ==========================================================
   모바일 홈 + 후원 전체 스크롤 최종 수정
   콘텐츠가 화면 높이에 잘리지 않고 실제 끝까지 내려가도록 처리
========================================================== */
@media (max-width: 700px) {
    html,
    body {
        height: 100% !important;
        min-height: 100% !important;
        overflow: hidden !important;
    }

    .site-layout {
        width: 100% !important;
        height: calc(100vh - 74px) !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .main-content {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-bottom: 64px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
    }

    .screen.visible {
        width: 100% !important;
        height: auto !important;
        min-height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* 홈 */
    #screen-home.visible,
    #screen-home.home-screen {
        width: 100% !important;
        height: auto !important;
        min-height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-dashboard {
        width: 100% !important;
        height: auto !important;
        min-height: max-content !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #screen-home .home-hero,
    #screen-home .home-section-grid,
    #screen-home .home-panel,
    #screen-home .home-quick-panel,
    #screen-home .home-quick-grid,
    #screen-home .home-quick-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-quick-grid {
        grid-template-columns: 1fr !important;
    }

    /* 후원 */
    #screen-donation.visible,
    #screen-donation {
        width: 100% !important;
        height: auto !important;
        min-height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-donation .donation-layout,
    #screen-donation .donation-box,
    #screen-donation .donation-ranking-box,
    #screen-donation .donation-ranking-list,
    #screen-donation .donation-ranking-admin,
    #screen-donation .donation-ranking-editor {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-donation .donation-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: start !important;
        margin-bottom: 40px !important;
    }
}

/* ==========================================================
   멤버십 인증 화면
========================================================== */
#screen-membership.membership-screen {
    width: 100%;
    min-width: 0;
    padding-bottom: 40px;
}

.membership-box,
.membership-admin-panel {
    width: min(900px, 100%);
    margin: 24px auto 0;
    box-sizing: border-box;
    border: 3px solid #000;
    background: #fff;
}

.membership-box {
    padding: 30px;
}

.membership-box-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
    color: #111;
}

.membership-box-description {
    margin: 0 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 1.65;
}

.membership-current-status {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 2px solid #222;
    background: #f7f7f7;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.membership-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.membership-form label {
    display: block;
    margin: 0 0 7px;
    color: #111;
    font-size: 15px;
    font-weight: 800;
}

.membership-form input[type="text"],
.membership-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 12px 13px;
    border: 2px solid #222;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 15px;
    outline: none;
}

.membership-form input[type="text"]:focus,
.membership-form input[type="file"]:focus {
    border-color: #ff9400;
}

.membership-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.membership-help {
    margin: -7px 0 14px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.membership-screenshot-preview {
    width: 100%;
    min-height: 0;
    margin: 0 0 18px;
    box-sizing: border-box;
}

.membership-screenshot-preview img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: top center;
    border: 2px solid #222;
    background: #f3f3f3;
}

.membership-form .orange-button {
    width: 100%;
    margin-top: 2px;
}

.membership-admin-panel {
    padding: 24px;
}

.membership-admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.membership-admin-kicker {
    display: block;
    margin-bottom: 4px;
    color: #ff9400;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.membership-admin-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
}

.membership-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-admin-item {
    padding: 18px;
    border: 2px solid #222;
    background: #fff;
}

.membership-admin-loading,
.membership-admin-empty {
    padding: 30px 10px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

@media (max-width: 700px) {
    #screen-membership.membership-screen {
        padding-bottom: 24px;
    }

    .membership-box,
    .membership-admin-panel {
        width: 100%;
        margin-top: 14px;
        border-width: 2px;
    }

    .membership-box {
        padding: 18px 14px;
    }

    .membership-box-title {
        font-size: 23px;
    }

    .membership-box-description {
        margin-bottom: 16px;
        font-size: 13px;
        line-height: 1.55;
    }

    .membership-current-status {
        margin-bottom: 16px;
        padding: 11px 12px;
        border-width: 1.5px;
        font-size: 12px;
    }

    .membership-form label {
        margin-bottom: 5px;
        font-size: 13px;
    }

    .membership-form input[type="text"],
    .membership-form input[type="file"] {
        margin-bottom: 14px;
        padding: 10px 11px;
        border-width: 1.5px;
        font-size: 13px;
    }

    .membership-help {
        margin-top: -5px;
        margin-bottom: 11px;
        font-size: 11px;
    }

    .membership-screenshot-preview {
        margin-bottom: 14px;
    }

    .membership-screenshot-preview img {
        max-height: none;
        border-width: 1.5px;
    }

    .membership-admin-panel {
        padding: 15px 12px;
    }

    .membership-admin-heading {
        align-items: flex-start;
        margin-bottom: 13px;
    }

    .membership-admin-heading h2 {
        font-size: 18px;
    }

    .membership-admin-kicker {
        font-size: 9px;
    }
}

.membership-current-status.pending {
    border-color: #c88a00;
    background: #fff8df;
    color: #8a5d00;
}

.membership-current-status.approved {
    border-color: #238636;
    background: #effaf1;
    color: #176b2c;
}

.membership-current-status.rejected {
    border-color: #c62828;
    background: #fff1f1;
    color: #a01818;
}

.membership-admin-card {
    padding: 18px;
    border: 2px solid #111;
    background: #fff;
}

.membership-admin-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.membership-admin-card-top > div:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.membership-admin-card-top strong {
    font-size: 17px;
    color: #111;
    overflow-wrap: anywhere;
}

.membership-admin-card-top span:not(.membership-status-badge) {
    color: #666;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.membership-status-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #f3f3f3;
    color: #111;
    font-size: 12px;
    font-weight: 900;
}

.membership-status-pending .membership-status-badge {
    background: #fff0b8;
    color: #7a5200;
}

.membership-status-approved .membership-status-badge {
    background: #c9f2d1;
    color: #176b2c;
}

.membership-status-rejected .membership-status-badge {
    background: #ffd1d1;
    color: #a01818;
}

.membership-admin-date {
    margin-top: 9px;
    color: #888;
    font-size: 12px;
}

.membership-admin-content {
    margin-top: 14px;
}

.membership-screenshot-link {
    display: block;
}

.membership-admin-content img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    object-position: top center;
    border: 2px solid #222;
    background: #f5f5f5;
}

.membership-screenshot-missing {
    padding: 20px;
    border: 2px dashed #aaa;
    color: #888;
    text-align: center;
}

.membership-admin-note {
    margin-top: 12px;
    padding: 11px 12px;
    border-left: 4px solid #ff9400;
    background: #fff7e8;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.membership-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.membership-admin-actions button {
    flex: 1 1 140px;
}

@media (max-width: 700px) {
    .membership-admin-card {
        padding: 13px 11px;
        border-width: 1.5px;
    }

    .membership-admin-card-top {
        gap: 8px;
    }

    .membership-admin-card-top strong {
        font-size: 14px;
    }

    .membership-admin-card-top span:not(.membership-status-badge) {
        font-size: 11px;
    }

    .membership-status-badge {
        padding: 4px 7px;
        border-width: 1.5px;
        font-size: 10px;
    }

    .membership-admin-date {
        font-size: 10px;
    }

    .membership-admin-content img {
        border-width: 1.5px;
        max-height: none;
    }

    .membership-admin-note {
        font-size: 11px;
    }
}

/* ==========================================================
   모바일: 홈 / 멤버십 인증 화면 전체 스크롤 보장
   중첩 스크롤을 만들지 않고 .main-content가 끝까지 스크롤하도록 처리
========================================================== */
@media (max-width: 700px) {
    .main-content {
        height: calc(100vh - 74px) !important;
        max-height: calc(100vh - 74px) !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: auto !important;
        touch-action: pan-y !important;
        padding-bottom: 80px !important;
    }

    /* 홈: 내용 전체가 부모 스크롤 영역의 높이를 정확히 차지 */
    #screen-home.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-dashboard {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #screen-home .home-hero,
    #screen-home .home-section-grid,
    #screen-home .home-panel,
    #screen-home .home-quick-panel,
    #screen-home .home-quick-grid,
    #screen-home .home-quick-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-section-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    #screen-home .home-quick-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* 멤버십: 신청 폼 + 관리자 영역이 전부 부모 스크롤에 포함 */
    #screen-membership.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 80px !important;
    }

    #screen-membership:not(.visible) {
        display: none !important;
    }

    #screen-membership .membership-box,
    #screen-membership .membership-admin-panel,
    #screen-membership .membership-form,
    #screen-membership .membership-admin-list,
    #screen-membership .membership-admin-card,
    #screen-membership .membership-screenshot-preview,
    #screen-membership .membership-admin-content {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-membership .membership-box,
    #screen-membership .membership-admin-panel {
        position: relative !important;
        flex: none !important;
    }

    #screen-membership .membership-screenshot-preview img,
    #screen-membership .membership-admin-content img {
        height: auto !important;
        max-height: none !important;
    }
}


/* ==========================================================
   모바일 화면 분리 최종
   visible 화면 하나만 표시
========================================================== */
@media (max-width: 700px) {
    .main-content > .screen:not(.visible) {
        display: none !important;
    }

    .main-content > .screen.visible {
        display: block !important;
    }
}

/* ==========================================================
   PC / 노트북 UI 통일 - 최종
   701px 이상에서는 왼쪽 사이드바형 데스크톱 UI 사용
   모바일(700px 이하)만 햄버거 메뉴 사용
========================================================== */
@media (min-width: 701px) {
    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .menu-toggle {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .site-layout {
        display: flex !important;
        width: 100% !important;
        height: calc(100vh - 11.111111vh - 3px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .sidebar {
        position: static !important;
        inset: auto !important;
        width: 265px !important;
        min-width: 265px !important;
        height: 100% !important;
        flex: 0 0 265px !important;
        transform: none !important;
        transition: none !important;
        z-index: auto !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar.open {
        transform: none !important;
    }

    .main-content {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 45px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .main-content > .screen:not(.visible) {
        display: none !important;
    }

    .main-content > .screen.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-dashboard {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }
}

/* ==========================================================
   홈 히어로 주황색 그라데이션 - 최종
========================================================== */
#screen-home .home-hero {
    background:
        linear-gradient(
            118deg,
            #ff9d00 0%,
            #f57f00 24%,
            #cf5700 48%,
            #5b2608 74%,
            #111111 100%
        ) !important;
}

#screen-home .home-hero::before {
    background:
        radial-gradient(
            circle at 18% 42%,
            rgba(255, 196, 82, 0.38) 0%,
            rgba(255, 148, 0, 0.24) 25%,
            transparent 55%
        ),
        linear-gradient(
            118deg,
            rgba(255, 170, 30, 0.18) 0%,
            rgba(255, 94, 0, 0.12) 42%,
            rgba(0, 0, 0, 0.08) 72%,
            rgba(0, 0, 0, 0.20) 100%
        ) !important;
}

@media (max-width: 700px) {
    /* 모바일은 기존 햄버거 UI를 유지 */
    .menu-toggle {
        display: block !important;
    }

    .sidebar {
        position: fixed !important;
        transform: translateX(-105%) !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }
}

/* FINAL OVERRIDE: PC / NOTEBOOK UI + HOME ORANGE HERO */
@media screen and (min-width: 701px) {
  html, body { width:100% !important; min-width:0 !important; overflow:hidden !important; }
  .menu-toggle { display:none !important; }
  .sidebar-overlay { display:none !important; }
  .site-layout { display:flex !important; flex-direction:row !important; width:100% !important; height:calc(100vh - 11.111111vh - 3px) !important; min-height:0 !important; overflow:hidden !important; }
  .sidebar { position:static !important; width:265px !important; min-width:265px !important; max-width:265px !important; height:100% !important; flex:0 0 265px !important; transform:none !important; display:flex !important; }
  .main-content { display:block !important; flex:1 1 auto !important; width:calc(100% - 265px) !important; min-width:0 !important; height:100% !important; max-height:none !important; padding:45px !important; overflow-x:hidden !important; overflow-y:auto !important; }
  .main-content > .screen { width:100% !important; min-width:0 !important; }
  .main-content > .screen:not(.visible) { display:none !important; }
  .main-content > .screen.visible { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
  #screen-home .home-dashboard { width:100% !important; height:auto !important; min-height:0 !important; }
  #screen-home .home-hero { width:100% !important; box-sizing:border-box !important; }
}

#screen-home .home-hero {
  background: linear-gradient(298deg, #f18c0a 0%, #dd7008 24%, #b84f07 48%, #4b2209 74%, #111111 100%) !important;
}
#screen-home .home-hero::before {
  background:
    radial-gradient(circle at 18% 42%, rgba(255,196,82,.20) 0%, rgba(255,148,0,.12) 25%, transparent 55%),
    linear-gradient(298deg, rgba(255,170,30,.10) 0%, rgba(255,94,0,.07) 42%, rgba(0,0,0,.07) 72%, rgba(0,0,0,.16) 100%) !important;
}


/* FINAL HOME HERO OVERRIDE: 180-degree reversed, softer orange */
#screen-home .home-hero {
  background: linear-gradient(298deg, #f18c0a 0%, #dd7008 24%, #b84f07 48%, #4b2209 74%, #111111 100%) !important;
}

#screen-home .home-hero::before {
  background:
    radial-gradient(circle at 18% 42%, rgba(255,196,82,.20) 0%, rgba(255,148,0,.12) 25%, transparent 55%),
    linear-gradient(298deg, rgba(255,170,30,.10) 0%, rgba(255,94,0,.07) 42%, rgba(0,0,0,.07) 72%, rgba(0,0,0,.16) 100%) !important;
}

/* FINAL FIX: category intro recent news must be visible on desktop */
@media screen and (min-width: 701px) {
  .category-intro-screen.visible {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .category-intro-screen.visible .intro-recent-panel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 300px !important;
    max-height: none !important;
    flex: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .category-intro-screen.visible .intro-recent-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 220px !important;
    flex: none !important;
    overflow: visible !important;
  }

  .category-intro-screen.visible .intro-recent-card {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 220px !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
\n\n/* FINAL NAVIGATION STATE */\n.menu-item.active {\n    background: #FF9400 !important;\n    color: #ffffff !important;\n}\n\n.menu-item.active.locked {\n    background: #FF9400 !important;\n    color: #ffffff !important;\n}\n

/* ==========================================================
   FINAL RESPONSIVE / NAVIGATION SAFE OVERRIDES
   2026-10-03 v96
========================================================== */
html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

button, input, textarea, select {
    font: inherit;
}

.menu-item {
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.menu-item.active {
    background: #ff9400 !important;
    color: #fff !important;
}

.screen {
    display: none !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.screen.visible {
    display: block !important;
}

.main-content {
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.intro-recent-panel {
    box-sizing: border-box;
    width: 100%;
}

.intro-recent-grid {
    width: 100%;
    box-sizing: border-box;
}

.intro-recent-card {
    cursor: pointer;
}

@media (min-width: 1201px) {
    .main-content { padding: 42px 52px !important; }
    .category-intro-screen { max-width: 1500px; margin: 0 auto; }
}

@media (min-width: 701px) and (max-width: 1200px) {
    .sidebar { width: 230px !important; flex-basis: 230px !important; }
    .menu-item { height: 70px !important; min-height: 70px !important; font-size: 22px !important; padding: 0 16px !important; }
    .main-content { padding: 30px !important; }
    .page-heading { font-size: clamp(32px, 4vw, 42px) !important; }
    .intro-box { padding: 30px !important; }
    .intro-box h2 { font-size: clamp(25px, 3vw, 32px) !important; }
    .intro-box p { font-size: clamp(16px, 2vw, 20px) !important; }
    .intro-recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 700px) {
    .site-layout { min-height: calc(100vh - 74px) !important; height: calc(100vh - 74px) !important; }
    .main-content { width: 100% !important; padding: 16px 12px 28px !important; box-sizing: border-box !important; }
    .screen.visible { min-height: 0 !important; height: auto !important; overflow: visible !important; }
    .category-intro-screen .intro-recent-panel { overflow: visible !important; min-height: 0 !important; }
    .category-intro-screen .intro-recent-grid { overflow: visible !important; height: auto !important; min-height: 0 !important; }
    .category-intro-screen .intro-recent-card { height: auto !important; min-height: 92px !important; }
}

@media (max-width: 480px) {
    .main-content { padding: 12px 9px 24px !important; }
    .page-heading { font-size: 25px !important; }
    .intro-box { padding: 13px !important; border-width: 2px !important; }
    .intro-recent-grid { grid-template-columns: 1fr !important; gap: 7px !important; }
    .intro-recent-card { min-height: 70px !important; }
    .intro-recent-card-title { font-size: 13px !important; }
}

@media (orientation: landscape) and (max-width: 900px) {
    .main-content { padding-top: 12px !important; padding-bottom: 20px !important; }
    .intro-recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* 홈 히어로: 주황색은 약하게, 방향은 180도 반전(118deg -> 298deg) */
#screen-home .home-hero {
    background: linear-gradient(298deg, #ffb04a 0%, #ed861f 25%, #a84d0d 52%, #351708 78%, #111111 100%) !important;
}
#screen-home .home-hero::before {
    background: radial-gradient(circle at 18% 42%, rgba(255,190,70,.22) 0%, rgba(255,148,0,.12) 24%, transparent 52%), linear-gradient(298deg, rgba(255,148,0,.14) 0%, rgba(255,94,0,.07) 38%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.18) 100%) !important;
}


/* ==========================================================
   FINAL MOBILE / RESPONSIVE FIX v97
   1) 로그인/닉네임을 상단 배너 밖 별도 줄로 이동
   2) 소식/스포츠/고급소식 최근 글 카드가 화면 밖으로
      튀어나가지 않도록 폭/그리드/높이를 자연스럽게 처리
   3) 카테고리 소개 화면과 홈의 모바일 스크롤을
      .main-content 하나로 통일
========================================================== */

.account-bar {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 5px 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-bottom: 2px solid #000000 !important;
    position: relative !important;
    z-index: 1000 !important;
}

.account-bar .header-actions {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    max-width: 100% !important;
}

.account-bar .admin-button {
    max-width: min(280px, 70vw) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 배너 안에서 로그인 버튼이 절대 떠다니지 않게 */
.top-bar .header-actions {
    display: none !important;
}

/* PC */
@media screen and (min-width: 701px) {
    .site-layout {
        height: calc(100dvh - 11.111111vh - 3px - 46px) !important;
        min-height: 0 !important;
    }

    .main-content {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    .account-bar {
        height: 46px !important;
        min-height: 46px !important;
    }

    /* 소개 화면은 내용 높이만큼 늘어나고 부모가 스크롤 */
    .category-intro-screen.visible {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .category-intro-screen.visible .intro-recent-panel {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .category-intro-screen.visible .intro-recent-grid {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
    }

    .category-intro-screen.visible .intro-recent-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 165px !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* 모바일/태블릿: 세로 화면에서는 카드가 절대로 옆으로 넘치지 않게 */
@media screen and (max-width: 700px) {
    html,
    body {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        overflow: hidden !important;
    }

    .account-bar {
        height: 42px !important;
        min-height: 42px !important;
        padding: 4px 10px !important;
        border-bottom: 1px solid #000 !important;
    }

    .account-bar .admin-button {
        max-width: 190px !important;
        min-width: 0 !important;
        padding: 6px 10px !important;
        border-width: 2px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .top-bar {
        height: 72px !important;
        min-height: 72px !important;
    }

    .header-line {
        height: 2px !important;
        min-height: 2px !important;
    }

    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        display: block !important;
    }

    .sidebar {
        top: calc(72px + 2px + 42px + 42px) !important;
        bottom: 0 !important;
        height: auto !important;
    }

    .site-layout {
        width: 100% !important;
        height: calc(100dvh - 72px - 2px - 42px - 42px) !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
    }

    .main-content {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 16px 12px 56px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
    }

    .main-content > .screen:not(.visible) {
        display: none !important;
    }

    .main-content > .screen.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* 소식 / 스포츠 / 고급소식 소개 화면 */
    .category-intro-screen.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .category-intro-screen .category-intro-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
    }

    .category-intro-screen .intro-recent-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        margin-top: 10px !important;
    }

    .category-intro-screen .intro-recent-grid {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
    }

    .category-intro-screen .intro-recent-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 84px !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 9px !important;
        gap: 7px !important;
    }

    .category-intro-screen .intro-recent-card-main {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .category-intro-screen .intro-recent-card-title {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .category-intro-screen .intro-recent-card-meta,
    .category-intro-screen .intro-recent-card-author {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 8px !important;
    }

    .category-intro-screen .intro-recent-number {
        flex: 0 0 auto !important;
        font-size: 13px !important;
    }

    .category-intro-screen .intro-recent-arrow {
        flex: 0 0 auto !important;
        font-size: 13px !important;
    }

    /* 홈/멤버십도 내부 고정 높이 때문에 스크롤이 끊기지 않게 */
    #screen-home.visible,
    #screen-membership.visible,
    #screen-donation.visible,
    #screen-news-intro.visible,
    #screen-news-list.visible,
    #screen-news-detail.visible,
    #screen-news-write.visible,
    #screen-auth.visible,
    #screen-admin-community.visible,
    #screen-advanced-news.visible,
    #screen-video-preview.visible {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-dashboard,
    #screen-home .home-section-grid,
    #screen-home .home-panel,
    #screen-home .home-quick-panel,
    #screen-home .home-quick-grid,
    #screen-membership .membership-box,
    #screen-membership .membership-admin-panel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* 아주 좁은 화면에서는 카드/버튼의 내부도 폭을 넘지 않게 */
@media screen and (max-width: 420px) {
    .main-content {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .account-bar {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .account-bar .admin-button {
        max-width: 165px !important;
    }
}

/* 가로로 긴 태블릿/휴대폰은 카드 2~3열을 사용하되 절대 넘치지 않게 */
@media screen and (orientation: landscape) and (min-width: 701px) and (max-width: 1100px) {
    .category-intro-screen .intro-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* ==========================================================
   v99 - 기존 주황/검정 디자인 복구 + 모바일/스크롤 최종 수정
   - 최근 소식 01/02/03을 패널 내부에 완전히 포함
   - 카테고리 소개 화면은 내용 높이에 맞게 자연스럽게 늘어남
   - .main-content 하나만 세로 스크롤
   - 상단 로그인/닉네임은 배너 아래 별도 영역 유지
   - 파란색 UI 테마 제거, 기존 주황색 강조색 복구
========================================================== */

:root {
    --ui-orange: #FF9400;
    --ui-orange-dark: #e98900;
    --ui-black: #000000;
    --ui-gray-bg: #f7f7f7;
    --ui-gray-border: #222222;
    --ui-muted: #777777;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    color: #222222 !important;
}

body {
    overflow: hidden !important;
}

/* 상단 배너 - 기존 주황색/이미지 디자인 복구 */
.top-bar {
    width: 100% !important;
    height: 11.111111vh !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    background-color: #FF9400 !important;
    background-image: url("./airplane1.png") !important;
    background-repeat: no-repeat !important;
    background-position: left top !important;
    background-size: cover !important;
    padding: 0 30px !important;
    overflow: hidden !important;
}

.top-bar .header-actions {
    display: none !important;
}

.header-line {
    width: 100% !important;
    height: 3px !important;
    min-height: 3px !important;
    background: #000000 !important;
}

/* 배너 아래 로그인/닉네임 영역 */
.account-bar {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 5px 20px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #000000 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1000 !important;
}

.account-bar .header-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    max-width: 100% !important;
}

.account-bar .admin-button,
.admin-button,
.info-button {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    color: #111111 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.account-bar .admin-button {
    max-width: min(300px, 72vw) !important;
    padding: 7px 13px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.account-bar .admin-button:hover,
.admin-button:hover,
.info-button:hover {
    background: #eeeeee !important;
}

.account-bar .admin-button.logged-in,
.admin-button.logged-in {
    background: #000000 !important;
    color: #ffffff !important;
}

/* 햄버거 - 기존 흑백 스타일 */
.menu-toggle {
    position: relative !important;
    z-index: 1004 !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #000000 !important;
    border-bottom: 1px solid #000000 !important;
    background: #ffffff !important;
    display: block !important;
    cursor: pointer !important;
}

.menu-toggle::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 24px !important;
    height: 18px !important;
    transform: translate(-50%, -50%) !important;
    background: linear-gradient(
        to bottom,
        #111111 0, #111111 2px,
        transparent 2px, transparent 8px,
        #111111 8px, #111111 10px,
        transparent 10px, transparent 16px,
        #111111 16px, #111111 18px
    ) !important;
    pointer-events: none !important;
}

.menu-toggle-bar {
    display: none !important;
}

/* 오버레이/사이드바 */
.sidebar-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1001 !important;
    background: rgba(0,0,0,.52) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .22s ease, visibility .22s ease !important;
}

.sidebar-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.sidebar {
    position: fixed !important;
    top: calc(11.111111vh + 3px + 46px + 48px) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 265px !important;
    height: auto !important;
    flex: none !important;
    z-index: 1002 !important;
    transform: translateX(-105%) !important;
    transition: transform .22s ease !important;
    background: #ffffff !important;
    border-right: 2px solid #000000 !important;
    box-shadow: 8px 0 24px rgba(0,0,0,.16) !important;
    overflow-y: auto !important;
}

.sidebar.open {
    transform: translateX(0) !important;
}

.menu-item {
    width: 100% !important;
    height: 82px !important;
    min-height: 82px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 20px !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1.5px solid #000000 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-align: left !important;
    box-shadow: none !important;
    transition: none !important;
}

.menu-item:hover:not(:disabled) {
    background: #eeeeee !important;
    color: #111111 !important;
}

.menu-item.active,
.menu-item.active.locked {
    background: #FF9400 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.menu-item.locked {
    background: #f5f5f5 !important;
    color: #555555 !important;
}

.menu-membership-divider {
    background: #ffffff !important;
    color: #777777 !important;
    border-color: #000000 !important;
}

/* 본문: 이 영역만 스크롤 */
.site-layout {
    width: 100% !important;
    height: calc(100dvh - 11.111111vh - 3px - 46px - 48px) !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
}

.main-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 45px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
}

/* 화면 전환 - 보이지 않는 화면은 완전히 숨김 */
.screen {
    display: none !important;
    width: 100% !important;
}

.screen.visible {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* 기본 텍스트/버튼을 예전 디자인으로 */
.page-heading {
    color: #222222 !important;
    letter-spacing: normal !important;
}

.page-subtitle {
    color: #666666 !important;
}

.intro-box,
.detail-box,
.write-box,
.auth-box,
.membership-box,
.membership-admin-panel,
.video-preview-upload-box,
.video-preview-card,
.empty-box,
.donation-box,
.donation-ranking-box,
.intro-recent-panel {
    background: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.intro-box,
.detail-box,
.write-box {
    border-color: #000000 !important;
}

.orange-button,
.orange-small-button,
.login-button,
.donation-button,
.donation-ranking-save-button,
.edit-news-button {
    background: #FF9400 !important;
    border-color: #000000 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.orange-button:hover,
.orange-small-button:hover,
.login-button:hover,
.donation-button:hover,
.donation-ranking-save-button:hover,
.edit-news-button:hover {
    background: #e98900 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    transform: none !important;
}

.white-button,
.video-delete-button,
.delete-button {
    background: #ffffff !important;
    border-color: #000000 !important;
    border-radius: 0 !important;
    color: #111111 !important;
}

.white-button:hover,
.video-delete-button:hover,
.delete-button:hover {
    background: #eeeeee !important;
    border-color: #000000 !important;
}

/* 소개 화면 */
.category-intro-screen.visible {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.category-intro-screen .category-intro-box {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 24px !important;
    box-sizing: border-box !important;
}

.category-intro-screen .intro-recent-panel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 18px 0 30px !important;
    padding: 18px 20px 20px !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 3px solid #000000 !important;
    background: #f7f7f7 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.category-intro-screen .intro-recent-heading {
    width: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 12px !important;
    box-sizing: border-box !important;
}

.category-intro-screen .intro-recent-grid {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.category-intro-screen .intro-recent-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 118px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    border: 2px solid #222222 !important;
    background: #ffffff !important;
    color: #111111 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.category-intro-screen .intro-recent-card:hover {
    background: #fff8ef !important;
    border-color: #222222 !important;
    box-shadow: none !important;
    transform: none !important;
}

.category-intro-screen .intro-recent-number {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    color: #FF9400 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.category-intro-screen .intro-recent-card-main {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow: hidden !important;
}

.category-intro-screen .intro-recent-card-meta,
.category-intro-screen .intro-recent-card-author {
    max-width: 100% !important;
    color: #777777 !important;
    font-size: 11px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.category-intro-screen .intro-recent-card-title {
    min-width: 0 !important;
    max-width: 100% !important;
    color: #111111 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.category-intro-screen .intro-recent-arrow {
    flex: 0 0 auto !important;
    color: #111111 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.category-intro-screen .intro-recent-loading,
.category-intro-screen .intro-recent-empty {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 74px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #777777 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* 목록도 원래 검정 테두리 + 흰색 카드 */
.news-row {
    background: #ffffff !important;
    border-color: #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.news-row:hover {
    background: #fff4df !important;
    border-color: #000000 !important;
}

.news-author,
.news-date {
    color: #666666 !important;
}

.news-title {
    color: #111111 !important;
}

/* 홈 배너도 이전 주황색 톤으로 */
#screen-home .home-hero {
    background: linear-gradient(298deg, #ffb04a 0%, #ed861f 25%, #a84d0d 52%, #351708 78%, #111111 100%) !important;
    border: 4px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#screen-home .home-hero::before {
    background:
        radial-gradient(circle at 18% 42%, rgba(255,190,70,.22) 0%, rgba(255,148,0,.12) 24%, transparent 52%),
        linear-gradient(298deg, rgba(255,148,0,.14) 0%, rgba(255,94,0,.07) 38%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.18) 100%) !important;
}

#screen-home .home-eyebrow {
    color: #ff9400 !important;
}

#screen-home .home-primary-button {
    background: #FF9400 !important;
    border-color: #000000 !important;
    border-radius: 0 !important;
}

#screen-home .home-primary-button:hover {
    background: #e98900 !important;
    border-color: #000000 !important;
}

/* 입력창 포커스도 파란색 대신 기존 검정 */
.write-box input:focus,
.write-box textarea:focus,
.auth-box input:focus,
.membership-form input[type="text"]:focus,
.membership-form input[type="file"]:focus,
.video-preview-upload-box input[type="text"]:focus,
.video-preview-upload-box textarea:focus,
.donation-ranking-nickname-input:focus,
.donation-ranking-amount-input:focus,
.community-composer textarea:focus {
    border-color: #000000 !important;
    box-shadow: none !important;
}

.video-upload-progress-bar {
    background: #FF9400 !important;
}

/* 커뮤니티도 예전 흰색/주황 포인트 */
.community-bubble {
    border-color: #222222 !important;
    color: #111111 !important;
    background: #ffffff !important;
}

.community-message.self .community-bubble {
    background: #ffdf9a !important;
    border-color: #222222 !important;
}

/* -------------------------
   모바일: 최근 소식 01/02/03을 패널 안에 1열로
------------------------- */
@media screen and (max-width: 700px) {
    .top-bar {
        height: 72px !important;
        min-height: 72px !important;
        padding: 0 10px 0 12px !important;
        background-image: url("./airplane.png") !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .header-line {
        height: 2px !important;
        min-height: 2px !important;
    }

    .account-bar {
        height: 42px !important;
        min-height: 42px !important;
        padding: 4px 10px !important;
        border-bottom-width: 1px !important;
    }

    .account-bar .admin-button {
        max-width: 190px !important;
        padding: 6px 10px !important;
        border-width: 2px !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    .menu-toggle::before {
        width: 22px !important;
        height: 16px !important;
        background: linear-gradient(
            to bottom,
            #111111 0, #111111 2px,
            transparent 2px, transparent 7px,
            #111111 7px, #111111 9px,
            transparent 9px, transparent 14px,
            #111111 14px, #111111 16px
        ) !important;
    }

    .sidebar {
        top: calc(72px + 2px + 42px + 42px) !important;
        width: min(270px, 82vw) !important;
    }

    .site-layout {
        height: calc(100dvh - 72px - 2px - 42px - 42px) !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
    }

    .main-content {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 16px 12px 56px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y !important;
    }

    .category-intro-screen.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .category-intro-screen .category-intro-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px !important;
        padding: 12px 14px !important;
        border-width: 2px !important;
        border-radius: 0 !important;
    }

    .category-intro-screen .category-intro-box h2 {
        margin-bottom: 6px !important;
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .category-intro-screen .category-intro-box p {
        margin-bottom: 9px !important;
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    .category-intro-screen .category-intro-box .orange-button {
        width: 100% !important;
        padding: 8px 10px !important;
        border-width: 2px !important;
        font-size: 12px !important;
    }

    .category-intro-screen .intro-recent-panel {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 8px 0 28px !important;
        padding: 8px !important;
        border-width: 2px !important;
        display: block !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .category-intro-screen .intro-recent-heading {
        width: 100% !important;
        margin-bottom: 7px !important;
        gap: 8px !important;
        align-items: flex-end !important;
    }

    .category-intro-screen .intro-recent-kicker {
        font-size: 8px !important;
    }

    .category-intro-screen .intro-recent-heading h2 {
        font-size: 17px !important;
    }

    .category-intro-screen .intro-recent-description {
        font-size: 8px !important;
    }

    .category-intro-screen .intro-recent-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    .category-intro-screen .intro-recent-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 72px !important;
        height: auto !important;
        padding: 8px !important;
        gap: 7px !important;
        border-width: 2px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .category-intro-screen .intro-recent-number {
        flex: 0 0 auto !important;
        font-size: 13px !important;
    }

    .category-intro-screen .intro-recent-card-main {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .category-intro-screen .intro-recent-card-title {
        max-width: 100% !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .category-intro-screen .intro-recent-card-meta,
    .category-intro-screen .intro-recent-card-author {
        max-width: 100% !important;
        font-size: 7.5px !important;
    }

    .category-intro-screen .intro-recent-arrow {
        flex: 0 0 auto !important;
        font-size: 13px !important;
    }

    /* 모든 visible screen이 부모 스크롤을 사용 */
    .main-content > .screen.visible,
    #screen-home.visible,
    #screen-membership.visible,
    #screen-donation.visible,
    #screen-news-intro.visible,
    #screen-news-list.visible,
    #screen-news-detail.visible,
    #screen-news-write.visible,
    #screen-auth.visible,
    #screen-admin-community.visible,
    #screen-advanced-news.visible,
    #screen-video-preview.visible {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #screen-home .home-dashboard,
    #screen-home .home-section-grid,
    #screen-home .home-panel,
    #screen-home .home-quick-panel,
    #screen-home .home-quick-grid,
    #screen-home .home-quick-card,
    #screen-membership .membership-box,
    #screen-membership .membership-admin-panel,
    #screen-donation .donation-layout,
    #screen-donation .donation-box,
    #screen-donation .donation-ranking-box,
    #screen-donation .donation-ranking-list,
    #screen-donation .donation-ranking-admin,
    #screen-donation .donation-ranking-editor {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #screen-home .home-section-grid,
    #screen-home .home-quick-grid {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 420px) {
    .main-content {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .account-bar {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .account-bar .admin-button {
        max-width: 165px !important;
    }

    .category-intro-screen .intro-recent-panel {
        padding: 7px !important;
    }

    .category-intro-screen .intro-recent-grid {
        gap: 6px !important;
    }

    .category-intro-screen .intro-recent-card {
        min-height: 68px !important;
        padding: 7px !important;
        gap: 6px !important;
    }

    .category-intro-screen .intro-recent-number {
        font-size: 12px !important;
    }

    .category-intro-screen .intro-recent-card-title {
        font-size: 10px !important;
    }

    .category-intro-screen .intro-recent-card-meta,
    .category-intro-screen .intro-recent-card-author {
        font-size: 7px !important;
    }

    .category-intro-screen .intro-recent-arrow {
        font-size: 12px !important;
    }
}

@media screen and (orientation: landscape) and (max-width: 700px) {
    /* 가로 모바일도 3개 카드를 억지로 한 줄에 넣지 않고 2열로 */
    .category-intro-screen .intro-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (min-width: 701px) {
    .site-layout {
        height: calc(100dvh - 11.111111vh - 3px - 46px - 48px) !important;
    }

    .main-content {
        height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .category-intro-screen .intro-recent-card {
        min-height: 132px !important;
    }
}


/* ==========================================================
   MODERN ORANGE REFRESH v100
   - 모바일 햄버거 사이드바를 짧고 компакт하게
   - 내부 스크롤 없이 메뉴 전체가 한 화면에 보이도록
   - 기존 주황색/흰색/검정 계열은 유지하면서 더 모던하게
========================================================== */

/* 기본적으로 새 디자인의 강한 색은 주황색 하나만 사용 */
:root {
    --accent: #ff9400;
    --accent-dark: #df7f00;
    --ink: #1f1f1f;
    --muted: #737373;
    --line: #dedede;
    --surface: #ffffff;
    --surface-soft: #f7f7f7;
}

body {
    background: #f4f4f4 !important;
    color: var(--ink) !important;
}

.header-line {
    height: 2px !important;
    background: #161616 !important;
}

.account-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e3e3e3 !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.03) !important;
}

.account-bar .admin-button,
.admin-button,
.info-button {
    border: 1.5px solid #202020 !important;
    border-radius: 7px !important;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

.account-bar .admin-button:hover,
.admin-button:hover,
.info-button:hover {
    background: #f6f6f6 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.08) !important;
}

.account-bar .admin-button.logged-in,
.admin-button.logged-in {
    background: #202020 !important;
    color: #ffffff !important;
}

.menu-toggle {
    width: 44px !important;
    height: 44px !important;
    border-right: 1px solid #d8d8d8 !important;
    border-bottom: 1px solid #d8d8d8 !important;
    background: #ffffff !important;
    transition: background .15s ease !important;
}

.menu-toggle:hover {
    background: #fafafa !important;
}

.menu-toggle::before {
    width: 23px !important;
    height: 17px !important;
}

.main-content {
    background: #f4f4f4 !important;
}

.page-heading {
    letter-spacing: -0.02em !important;
}

.page-subtitle {
    color: #777777 !important;
    letter-spacing: -0.01em !important;
}

.intro-box,
.detail-box,
.write-box,
.auth-box,
.membership-box,
.membership-admin-panel,
.video-preview-upload-box,
.video-preview-card,
.empty-box,
.donation-box,
.donation-ranking-box,
.intro-recent-panel {
    border-color: #d8d8d8 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.05) !important;
}

.intro-box {
    padding: 32px !important;
    background: #ffffff !important;
}

.intro-box h2 {
    letter-spacing: -0.03em !important;
}

.orange-button,
.orange-small-button,
.login-button,
.donation-button,
.donation-ranking-save-button,
.edit-news-button {
    background: var(--accent) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 0 rgba(0,0,0,.12) !important;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

.orange-button:hover,
.orange-small-button:hover,
.login-button:hover,
.donation-button:hover,
.donation-ranking-save-button:hover,
.edit-news-button:hover {
    background: var(--accent-dark) !important;
    box-shadow: 0 4px 11px rgba(0,0,0,.12) !important;
    transform: translateY(-1px) !important;
}

.orange-button:active,
.orange-small-button:active,
.login-button:active,
.donation-button:active,
.donation-ranking-save-button:active,
.edit-news-button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.12) !important;
}

.white-button,
.video-delete-button,
.delete-button {
    border: 1px solid #d3d3d3 !important;
    border-radius: 8px !important;
    transition: background .16s ease, border-color .16s ease !important;
}

.white-button:hover,
.video-delete-button:hover,
.delete-button:hover {
    background: #f7f7f7 !important;
    border-color: #bcbcbc !important;
}

.category-intro-screen .intro-recent-panel {
    border: 1px solid #d8d8d8 !important;
    border-top: 3px solid var(--accent) !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.05) !important;
}

.category-intro-screen .intro-recent-card {
    border: 1px solid #dddddd !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease !important;
}

.category-intro-screen .intro-recent-card:hover {
    background: #fffaf3 !important;
    border-color: #f0b15a !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.07) !important;
    transform: translateY(-1px) !important;
}

.category-intro-screen .intro-recent-number {
    color: var(--accent) !important;
}

.category-intro-screen .intro-recent-arrow {
    color: #555555 !important;
}

.news-row {
    border: 1px solid #dedede !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.04) !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.news-row:hover {
    background: #fffaf3 !important;
    border-color: #f0b15a !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.06) !important;
    transform: translateY(-1px) !important;
}

/* 홈 패널도 기존 구조를 유지하면서 선과 여백을 가볍게 */
#screen-home .home-panel,
#screen-home .home-quick-panel {
    border-radius: 12px !important;
    border-color: #d8d8d8 !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.05) !important;
    background: #ffffff !important;
}

#screen-home .home-quick-card {
    border-radius: 9px !important;
    border-color: #dddddd !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

#screen-home .home-quick-card:hover {
    border-color: #f0b15a !important;
    box-shadow: 0 5px 14px rgba(0,0,0,.06) !important;
    transform: translateY(-1px) !important;
}

/* 홈 배너: 기존 주황/검정 느낌 유지 + 과한 그라데이션만 완화 */
#screen-home .home-hero {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 26px rgba(0,0,0,.12) !important;
    background: linear-gradient(115deg, #ff9d00 0%, #e87808 48%, #252525 100%) !important;
}

#screen-home .home-hero::before {
    opacity: .72 !important;
}

/* ===== 모바일 햄버거 사이드바 ===== */
@media screen and (max-width: 700px) {
    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
    }

    .account-bar {
        height: 40px !important;
        min-height: 40px !important;
        padding: 4px 10px !important;
    }

    .account-bar .admin-button {
        max-width: 190px !important;
        padding: 6px 10px !important;
        border-radius: 7px !important;
        font-size: 10px !important;
    }

    /* 햄버거 아래에 뜨는 메뉴는 한 화면에 전부 표시 */
    .sidebar {
        top: calc(72px + 2px + 40px + 42px) !important;
        bottom: auto !important;
        width: min(250px, 78vw) !important;
        max-width: 250px !important;
        height: auto !important;
        max-height: calc(100dvh - (72px + 2px + 40px + 42px) - 10px) !important;
        overflow: hidden !important;
        border-right: 1px solid #d9d9d9 !important;
        border-bottom: 1px solid #d9d9d9 !important;
        border-radius: 0 12px 12px 0 !important;
        box-shadow: 8px 10px 24px rgba(0,0,0,.12) !important;
        background: rgba(255,255,255,.98) !important;
    }

    .menu-item {
        width: 100% !important;
        height: 49px !important;
        min-height: 49px !important;
        padding: 0 16px !important;
        gap: 8px !important;
        border-bottom: 1px solid #ececec !important;
        font-size: 18px !important;
        line-height: 1 !important;
        letter-spacing: -0.02em !important;
        font-weight: 700 !important;
        color: #222222 !important;
        background: #ffffff !important;
    }

    .menu-item:hover:not(:disabled) {
        background: #fafafa !important;
    }

    .menu-item.active,
    .menu-item.active.locked {
        background: var(--accent) !important;
        color: #ffffff !important;
        border-bottom-color: var(--accent) !important;
    }

    .menu-item.locked {
        background: #f7f7f7 !important;
        color: #777777 !important;
    }

    .menu-membership-divider {
        height: 25px !important;
        min-height: 25px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 16px !important;
        background: #fafafa !important;
        color: #999999 !important;
        border-top: 1px solid #ececec !important;
        border-bottom: 1px solid #ececec !important;
        font-size: 10px !important;
        letter-spacing: .08em !important;
    }

    /* 세로 모바일에서는 메뉴 전체가 들어가므로 사이드바 스크롤 제거 */
    .sidebar.open {
        overflow: hidden !important;
    }

    .main-content {
        padding: 14px 10px 30px !important;
    }

    .page-heading {
        font-size: 27px !important;
        font-weight: 800 !important;
    }

    .page-subtitle {
        font-size: 12px !important;
    }

    .intro-box {
        margin-top: 12px !important;
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .category-intro-screen .intro-recent-panel {
        margin: 10px 0 24px !important;
        padding: 10px !important;
        border-radius: 10px !important;
        border-top-width: 3px !important;
    }

    .category-intro-screen .intro-recent-card {
        min-height: 70px !important;
        padding: 9px !important;
        border-radius: 8px !important;
    }

    /* 01/02/03은 항상 최근 소식 박스 안에서 1열 */
    .category-intro-screen .intro-recent-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
    }
}

@media screen and (max-width: 380px) {
    .sidebar {
        width: 238px !important;
    }

    .menu-item {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 14px !important;
        font-size: 16px !important;
    }

    .menu-membership-divider {
        height: 23px !important;
        min-height: 23px !important;
        padding: 0 14px !important;
    }
}

/* ==========================================================
   v101 - 흰 배경 대비용 강한 윤곽선
   - 전체 카드/패널의 경계를 선명하게
   - 주황 포인트는 유지, 파란색은 사용하지 않음
========================================================== */

:root {
    --strong-line: #2b2b2b;
    --medium-line: #555555;
    --soft-line: #8a8a8a;
}

/* 흰 배경 위 주요 영역 */
.intro-box,
.detail-box,
.write-box,
.auth-box,
.membership-box,
.membership-admin-panel,
.video-preview-upload-box,
.video-preview-card,
.empty-box,
.donation-box,
.donation-ranking-box,
.intro-recent-panel,
.home-panel,
.home-quick-panel,
.admin-community-panel,
.community-panel,
.news-card,
.news-list-item,
.news-item,
.video-preview-item {
    border: 2px solid var(--strong-line) !important;
    background: #ffffff !important;
}

/* 최근 소식 바깥 박스는 주황 상단선 + 진한 외곽선 */
.category-intro-screen .intro-recent-panel {
    border: 2px solid var(--strong-line) !important;
    border-top: 4px solid var(--accent) !important;
    box-shadow: none !important;
}

/* 최근 소식 01/02/03 카드 */
.category-intro-screen .intro-recent-card,
.intro-recent-card {
    border: 2px solid var(--strong-line) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.category-intro-screen .intro-recent-card:hover,
.intro-recent-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 3px 0 rgba(0,0,0,.08) !important;
}

/* 홈의 개별 빠른메뉴 카드도 구분되게 */
#screen-home .home-quick-card {
    border: 2px solid var(--strong-line) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

#screen-home .home-quick-card:hover {
    border-color: var(--accent) !important;
}

/* 섹션 헤더/리스트가 흰색 바탕에서 묻히지 않도록 */
.list-header,
.home-panel-heading,
.intro-recent-heading,
.section-heading,
.page-section-heading {
    border-color: var(--strong-line) !important;
}

/* 입력창은 더 확실하게 */
input,
textarea,
select,
.auth-box input,
.membership-form input[type="text"],
.membership-form input[type="file"],
.video-preview-upload-box input[type="text"],
.video-preview-upload-box textarea,
.donation-ranking-nickname-input,
.donation-ranking-amount-input,
.community-composer textarea,
#comment-input {
    border: 2px solid var(--medium-line) !important;
    background: #ffffff !important;
}

input:focus,
textarea:focus,
select:focus,
.auth-box input:focus,
.membership-form input[type="text"]:focus,
.membership-form input[type="file"]:focus,
.video-preview-upload-box input[type="text"]:focus,
.video-preview-upload-box textarea:focus,
.donation-ranking-nickname-input:focus,
.donation-ranking-amount-input:focus,
.community-composer textarea:focus,
#comment-input:focus {
    border-color: var(--accent) !important;
    outline: 2px solid rgba(255,148,0,.18) !important;
    outline-offset: 0 !important;
}

/* 흰색 보조 버튼도 테두리를 확실하게 */
.white-button,
.video-delete-button,
.delete-button,
.info-button,
.home-text-button {
    border: 2px solid var(--strong-line) !important;
    background: #ffffff !important;
    color: #222222 !important;
}

.white-button:hover,
.video-delete-button:hover,
.delete-button:hover,
.info-button:hover,
.home-text-button:hover {
    border-color: var(--accent) !important;
}

/* 주황 버튼은 내부 테두리 없이 깔끔하게 유지 */
.orange-button,
.orange-small-button,
.login-button,
.donation-button,
.donation-ranking-save-button,
.edit-news-button {
    border: 2px solid #a85f00 !important;
}

/* 홈 배너 자체도 윤곽을 분명하게 */
#screen-home .home-hero {
    border: 2px solid #1c1c1c !important;
}

/* 모바일에서 선이 너무 답답해 보이지 않도록 카드만 1.5px */
@media screen and (max-width: 700px) {
    .intro-box,
    .detail-box,
    .write-box,
    .auth-box,
    .membership-box,
    .membership-admin-panel,
    .video-preview-upload-box,
    .video-preview-card,
    .empty-box,
    .donation-box,
    .donation-ranking-box,
    .intro-recent-panel,
    .home-panel,
    .home-quick-panel {
        border-width: 2px !important;
    }

    .category-intro-screen .intro-recent-card,
    .intro-recent-card,
    #screen-home .home-quick-card {
        border-width: 1.5px !important;
    }
}

/* ==========================================================
   FINAL HEADER / LIGHT THEME RESTORE v103
   PC: 로그인/닉네임을 기존처럼 상단 주황 배너 오른쪽에 표시
   Mobile: 로그인/닉네임은 배너 아래 별도 줄 유지
   다크모드 스타일 제거
========================================================== */

@media screen and (min-width: 701px) {
    .account-bar {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: auto !important;
        height: 11.111111vh !important;
        min-height: 0 !important;
        padding: 0 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        background: transparent !important;
        border: 0 !important;
        z-index: 2000 !important;
        pointer-events: none !important;
    }

    .account-bar .header-actions {
        pointer-events: auto !important;
    }

    .account-bar .admin-button {
        max-width: 320px !important;
    }

    .site-layout {
        height: calc(100dvh - 11.111111vh - 3px) !important;
    }

    .top-bar {
        position: relative !important;
        z-index: 1000 !important;
    }
}

@media screen and (max-width: 700px) {
    /* 모바일은 기존처럼 배너 아래 로그인 영역 */
    .account-bar {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 4px 10px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #000000 !important;
        pointer-events: auto !important;
        z-index: 1000 !important;
    }

    .account-bar .header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        pointer-events: auto !important;
    }
}



/* ==========================================================
   PREMIUM ORANGE / LIGHT UI REFINE v104
   기존 주황색 디자인을 유지하면서 브랜드 사이트처럼 정돈
========================================================== */
:root {
    --accent: #ff9400;
    --accent-hover: #e98100;
    --ink: #171717;
    --text: #242424;
    --muted: #6b6b6b;
    --line: #d4d4d4;
    --strong-line: #242424;
    --surface: #ffffff;
    --surface-soft: #f7f7f7;
    --accent-soft: #fff5e8;
}

html,
body {
    background: #f4f4f4 !important;
    color: var(--text) !important;
}

body {
    overflow: hidden !important;
}

/* ---------- 상단 브랜드 배너 ---------- */
.top-bar {
    position: relative !important;
    isolation: isolate;
    background-color: var(--accent) !important;
    background-image: url("./airplane1.png") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: cover !important;
    border: 0 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
}

.top-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,0) 58%, rgba(0,0,0,.08));
    pointer-events: none;
    z-index: -1;
}

.header-line {
    height: 2px !important;
    background: #161616 !important;
}

/* PC에서는 계정 버튼이 배너 오른쪽 안에서 안정적으로 자리잡음 */
@media (min-width: 701px) {
    .account-bar {
        top: 0 !important;
        height: 11.111111vh !important;
        padding-right: clamp(22px, 2.4vw, 42px) !important;
    }

    .account-bar .admin-button {
        border: 2px solid rgba(0,0,0,.82) !important;
        border-radius: 999px !important;
        padding: 12px 18px !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 6px 18px rgba(0,0,0,.12) !important;
    }

    .account-bar .admin-button:hover {
        background: #fffaf3 !important;
        transform: translateY(-1px);
    }
}

/* ---------- 전체 레이아웃 ---------- */
.site-layout {
    background: #f4f4f4 !important;
}

.sidebar {
    background: #ffffff !important;
    border-right: 1px solid #c8c8c8 !important;
    box-shadow: 4px 0 16px rgba(0,0,0,.04) !important;
}

.menu-item {
    position: relative;
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 22px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 25px !important;
    letter-spacing: -.02em;
    transition: background-color .16s ease, color .16s ease, padding-left .16s ease;
}

.menu-item:not(.active):hover {
    background: #fafafa !important;
    padding-left: 26px !important;
}

.menu-item.active {
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: inset 4px 0 0 #171717 !important;
}

.menu-item.locked {
    background: #f8f8f8 !important;
    color: #767676 !important;
}

.menu-item.locked.active {
    background: var(--accent) !important;
    color: #ffffff !important;
}

.menu-membership-divider {
    padding: 13px 22px 9px !important;
    color: #8a8a8a !important;
    background: #fbfbfb !important;
    border-bottom: 1px solid #e7e7e7 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
}

.main-content {
    background: #f4f4f4 !important;
    padding: clamp(26px, 3vw, 48px) !important;
}

/* ---------- 공통 타이포 ---------- */
.page-heading {
    margin: 0 !important;
    color: #151515 !important;
    font-size: clamp(30px, 3vw, 46px) !important;
    font-weight: 800 !important;
    letter-spacing: -.05em !important;
}

.page-subtitle {
    color: #6d6d6d !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* ---------- 공통 카드/패널 ---------- */
.intro-box,
.detail-box,
.write-box,
.auth-box,
.membership-box,
.membership-admin-panel,
.video-preview-upload-box,
.video-preview-card,
.empty-box,
.donation-box,
.donation-ranking-box,
.intro-recent-panel,
.home-panel,
.home-quick-panel {
    background: var(--surface) !important;
    border: 1px solid #cfcfcf !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 26px rgba(0,0,0,.055) !important;
}

.intro-box,
.detail-box,
.write-box,
.auth-box,
.membership-box,
.donation-box {
    overflow: hidden;
}

.intro-box h2,
.home-panel-heading h2,
.intro-recent-heading h2,
.section-heading h2,
.membership-box-title,
.donation-box-title {
    color: #161616 !important;
    letter-spacing: -.035em;
}

/* 박스 상단에 작은 브랜드 포인트 */
.intro-box::before,
.membership-box::before,
.donation-box::before,
.video-preview-upload-box::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: -1px 0 22px;
    border-radius: 999px;
    background: var(--accent);
}

/* ---------- 버튼 ---------- */
.orange-button,
.orange-small-button,
.login-button,
.donation-button,
.donation-ranking-save-button,
.edit-news-button,
.home-primary-button {
    background: var(--accent) !important;
    border: 1px solid #b96800 !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255,148,0,.16) !important;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.orange-button:hover,
.orange-small-button:hover,
.login-button:hover,
.donation-button:hover,
.donation-ranking-save-button:hover,
.edit-news-button:hover,
.home-primary-button:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(255,148,0,.20) !important;
}

.white-button,
.info-button,
.home-text-button,
.video-delete-button,
.delete-button {
    background: #ffffff !important;
    border: 1px solid #bcbcbc !important;
    border-radius: 9px !important;
    color: #292929 !important;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.white-button:hover,
.info-button:hover,
.home-text-button:hover,
.video-delete-button:hover,
.delete-button:hover {
    background: #fafafa !important;
    border-color: #8f8f8f !important;
    transform: translateY(-1px);
}

/* ---------- 최근 소식 ---------- */
.intro-recent-panel,
.home-panel,
.home-quick-panel {
    padding: 24px !important;
}

.intro-recent-heading,
.home-panel-heading {
    margin-bottom: 18px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #e2e2e2 !important;
}

.intro-recent-kicker,
.home-panel-kicker,
.membership-admin-kicker,
.home-eyebrow {
    color: var(--accent) !important;
}

.intro-recent-description {
    color: #8a8a8a !important;
    font-size: 12px !important;
}

.intro-recent-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.intro-recent-card {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #d5d5d5 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    text-align: left !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.intro-recent-card:hover {
    border-color: #b87517 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.07) !important;
    transform: translateY(-2px);
}

.intro-recent-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 25px !important;
    margin-bottom: 12px !important;
    border: 1px solid #c9c9c9 !important;
    border-radius: 7px !important;
    background: #fafafa !important;
    color: #353535 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
}

.intro-recent-card-main {
    min-width: 0 !important;
}

.intro-recent-card-meta {
    display: block !important;
    margin-bottom: 6px !important;
    color: #8b8b8b !important;
    font-size: 11px !important;
}

.intro-recent-card-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #171717 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    letter-spacing: -.025em;
}

.intro-recent-card-author {
    display: block !important;
    margin-top: 10px !important;
    color: #777 !important;
    font-size: 12px !important;
}

.intro-recent-arrow {
    display: block !important;
    margin-top: 12px !important;
    color: var(--accent) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* ---------- 홈 배너 ---------- */
#screen-home .home-dashboard {
    gap: 20px !important;
}

#screen-home .home-hero {
    min-height: 300px !important;
    padding: clamp(34px, 4vw, 52px) !important;
    border: 1px solid #171717 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.12) !important;
    background: linear-gradient(110deg, #171717 0%, #26201a 42%, #9a4f04 100%) !important;
}

#screen-home .home-hero::before {
    background:
        radial-gradient(circle at 78% 28%, rgba(255,148,0,.28), transparent 34%),
        linear-gradient(110deg, rgba(255,255,255,.02), rgba(255,255,255,.07)) !important;
}

#screen-home .home-hero h1 {
    letter-spacing: -.055em !important;
}

#screen-home .home-hero p {
    color: #e5e5e5 !important;
}

#screen-home .home-hero-mark {
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
}

#screen-home .home-section-grid {
    gap: 18px !important;
}

#screen-home .home-quick-card {
    background: #ffffff !important;
    border: 1px solid #d2d2d2 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.045) !important;
}

#screen-home .home-quick-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.07) !important;
}

#screen-home .home-quick-number {
    color: var(--accent) !important;
}

/* ---------- 입력 요소 ---------- */
input,
textarea,
select,
.auth-box input,
.membership-form input[type="text"],
.membership-form input[type="file"],
.video-preview-upload-box input[type="text"],
.video-preview-upload-box textarea,
.donation-ranking-nickname-input,
.donation-ranking-amount-input,
.community-composer textarea,
#comment-input {
    background: #ffffff !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 9px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.025) !important;
}

input:focus,
textarea:focus,
select:focus,
.auth-box input:focus,
.membership-form input[type="text"]:focus,
.membership-form input[type="file"]:focus,
.video-preview-upload-box input[type="text"]:focus,
.video-preview-upload-box textarea:focus,
.donation-ranking-nickname-input:focus,
.donation-ranking-amount-input:focus,
.community-composer textarea:focus,
#comment-input:focus {
    border-color: var(--accent) !important;
    outline: 3px solid rgba(255,148,0,.13) !important;
    box-shadow: 0 0 0 1px rgba(255,148,0,.18) !important;
}

/* ---------- 리스트 ---------- */
.list-header {
    padding-bottom: 18px !important;
    border-bottom: 1px solid #d8d8d8 !important;
}

.news-row,
.news-item,
.news-card {
    border-color: #d7d7d7 !important;
}

.news-row:hover,
.news-item:hover,
.news-card:hover {
    background: #fffaf3 !important;
}

/* ---------- 댓글 / 커뮤니티 ---------- */
.reaction-bar {
    border-bottom: 1px solid #dedede !important;
}

.like-button {
    border: 1px solid #bdbdbd !important;
    border-radius: 9px !important;
    background: #ffffff !important;
}

.community-message-row .community-bubble {
    border: 1px solid #c7c7c7 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.04) !important;
}

.community-message.self .community-bubble {
    background: #fff2d9 !important;
    border-color: #e5ad59 !important;
}

/* ---------- 햄버거 / 모바일 ---------- */
.menu-toggle {
    background: #ffffff !important;
    border-right: 1px solid #c8c8c8 !important;
    border-bottom: 1px solid #c8c8c8 !important;
}

@media (max-width: 700px) {
    .top-bar {
        height: 66px !important;
        background-position: center center !important;
    }

    .account-bar {
        height: 38px !important;
        min-height: 38px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d0d0d0 !important;
    }

    .account-bar .admin-button {
        border: 1px solid #bcbcbc !important;
        border-radius: 999px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        box-shadow: none !important;
    }

    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
        box-shadow: 0 3px 10px rgba(0,0,0,.05) !important;
    }

    .sidebar {
        top: calc(66px + 38px + 42px + 2px) !important;
        width: min(272px, 84vw) !important;
        border-right: 1px solid #c8c8c8 !important;
        border-radius: 0 12px 12px 0 !important;
        box-shadow: 10px 12px 32px rgba(0,0,0,.14) !important;
    }

    .menu-item {
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 16px !important;
        justify-content: flex-start !important;
        font-size: 16px !important;
        border-bottom: 1px solid #e4e4e4 !important;
    }

    .menu-item.active {
        box-shadow: inset 4px 0 0 #171717 !important;
    }

    .menu-item:not(.active):hover {
        padding-left: 16px !important;
    }

    .menu-membership-divider {
        padding: 10px 16px 7px !important;
        font-size: 10px !important;
    }

    .main-content {
        padding: 18px 14px !important;
    }

    .intro-box,
    .detail-box,
    .write-box,
    .auth-box,
    .membership-box,
    .membership-admin-panel,
    .video-preview-upload-box,
    .video-preview-card,
    .empty-box,
    .donation-box,
    .donation-ranking-box,
    .intro-recent-panel,
    .home-panel,
    .home-quick-panel {
        border-radius: 12px !important;
        box-shadow: 0 6px 18px rgba(0,0,0,.05) !important;
    }

    .intro-recent-grid {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .intro-recent-card {
        display: grid !important;
        grid-template-columns: 36px minmax(0,1fr) auto !important;
        column-gap: 10px !important;
        align-items: center !important;
        padding: 12px !important;
    }

    .intro-recent-number {
        margin: 0 !important;
        width: 34px !important;
        height: 28px !important;
    }

    .intro-recent-card-author,
    .intro-recent-arrow {
        margin-top: 6px !important;
    }

    #screen-home .home-hero {
        min-height: 265px !important;
        padding: 28px 22px !important;
        border-radius: 14px !important;
    }
}

/* ==========================================================
   FINAL BANNER SEPARATION FIX v105
   PC banner  : airplane1.png
   Mobile     : airplane.png
   두 배너를 하나로 합치지 않고 화면 크기에 따라 각각 사용
========================================================== */

/* 공통: 상단 배너 자체 */
.top-bar {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1000 !important;
    background-color: #ff9400 !important;
    background-repeat: no-repeat !important;
}

/* PC / 컴퓨터 전용 상단 배너 */
@media screen and (min-width: 701px) {
    .top-bar {
        height: 11.111111vh !important;
        min-height: 72px !important;
        max-height: 120px !important;
        background-image: url("./airplane1.png") !important;
        background-position: center center !important;
        background-size: cover !important;
        border-radius: 0 !important;
    }

    /* PC에서는 로그인/닉네임을 배너 오른쪽에 표시 */
    .account-bar {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: auto !important;
        height: 11.111111vh !important;
        min-height: 72px !important;
        max-height: 120px !important;
        padding: 0 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        z-index: 2000 !important;
    }

    .account-bar .header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .account-bar .admin-button {
        border: 1px solid rgba(0,0,0,.22) !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,.94) !important;
        color: #171717 !important;
        box-shadow: 0 5px 16px rgba(0,0,0,.12) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
}

/* 모바일 전용 상단 배너 */
@media screen and (max-width: 700px) {
    .top-bar {
        height: 66px !important;
        min-height: 66px !important;
        max-height: 66px !important;
        background-image: url("./airplane.png") !important;
        background-position: center center !important;
        background-size: cover !important;
        border-radius: 0 !important;
    }

    /* 모바일은 로그인 영역을 배너 아래 별도 줄로 유지 */
    .account-bar {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 4px 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d0d0d0 !important;
        box-shadow: none !important;
        z-index: 1000 !important;
    }

    .account-bar .header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .account-bar .admin-button {
        border: 1px solid #cfcfcf !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #222222 !important;
        padding: 6px 11px !important;
        font-size: 11px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
    }
}

/* ==========================================================
   PREMIUM BRAND UI v106
   - Microsoft처럼 깔끔하고 정돈된 기업형 UI
   - 기존 주황색/항공기 배너/레이아웃은 그대로 유지
   - PC/모바일 배너는 절대 합치지 않음
========================================================== */

:root {
    --brand-orange: #ff9400;
    --brand-orange-dark: #df7d00;
    --brand-orange-soft: #fff6e9;
    --brand-ink: #1a1a1a;
    --brand-text: #2b2b2b;
    --brand-muted: #6b6b6b;
    --brand-border: #e1e1e1;
    --brand-border-strong: #c9c9c9;
    --brand-surface: #ffffff;
    --brand-page: #f7f7f7;
}

html,
body {
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif !important;
    color: var(--brand-text) !important;
    background: var(--brand-page) !important;
}

/* 배너 이미지는 기존 것을 그대로 사용 */
.top-bar {
    background-color: var(--brand-orange) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.10) !important;
}

.header-line {
    height: 1px !important;
    min-height: 1px !important;
    background: rgba(0,0,0,.20) !important;
}

/* PC 계정 영역: 배너 오른쪽 */
@media screen and (min-width: 701px) {
    .account-bar .admin-button {
        border: 1px solid rgba(0,0,0,.16) !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,.96) !important;
        color: #222 !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;
        transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
    }

    .account-bar .admin-button:hover {
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,.14) !important;
        transform: translateY(-1px) !important;
    }
}

/* 모바일 배너는 기존 모바일 전용 이미지 유지 */
@media screen and (max-width: 700px) {
    .top-bar {
        background-image: url("./airplane.png") !important;
    }

    .account-bar {
        border-bottom: 1px solid var(--brand-border) !important;
        background: #fff !important;
    }

    .account-bar .admin-button {
        border: 1px solid var(--brand-border-strong) !important;
        border-radius: 7px !important;
        background: #fff !important;
        color: #222 !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.05) !important;
    }
}

/* 전체 페이지 여백 */
.site-layout {
    background: var(--brand-page) !important;
}

.main-content {
    background: var(--brand-page) !important;
}

/* 사이드바: Microsoft식으로 단순하고 명확하게 */
.sidebar {
    background: #fff !important;
    border-right: 1px solid var(--brand-border) !important;
    box-shadow: 2px 0 10px rgba(0,0,0,.035) !important;
}

.menu-item {
    position: relative !important;
    border-bottom: 1px solid #ededed !important;
    color: #292929 !important;
    font-weight: 600 !important;
    transition: background-color .14s ease, color .14s ease, padding-left .14s ease !important;
}

.menu-item:not(.active):not(:disabled):hover {
    background: #f5f5f5 !important;
    color: #111 !important;
}

.menu-item.active,
.menu-item.active.locked {
    background: var(--brand-orange) !important;
    color: #fff !important;
    box-shadow: inset 4px 0 0 #222 !important;
}

.menu-item.locked {
    color: #777 !important;
    background: #fafafa !important;
}

/* 제목 */
.page-heading {
    color: var(--brand-ink) !important;
    font-weight: 700 !important;
    letter-spacing: -.035em !important;
}

.page-subtitle {
    color: var(--brand-muted) !important;
}

/* 카드/패널: 과한 테두리 대신 얇은 선 + 은은한 그림자 */
.intro-box,
.detail-box,
.write-box,
.auth-box,
.membership-box,
.membership-admin-panel,
.video-preview-upload-box,
.video-preview-card,
.empty-box,
.donation-box,
.donation-ranking-box,
.intro-recent-panel,
.home-panel,
.home-quick-panel {
    background: var(--brand-surface) !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.045) !important;
}

/* 주황색 포인트는 필요한 곳에만 */
.intro-box::before,
.membership-box::before,
.donation-box::before,
.video-preview-upload-box::before {
    background: var(--brand-orange) !important;
    height: 3px !important;
    border-radius: 999px !important;
}

/* 버튼: 주황색 브랜드 버튼 */
.orange-button,
.orange-small-button,
.login-button,
.donation-button,
.donation-ranking-save-button,
.edit-news-button,
.home-primary-button {
    background: var(--brand-orange) !important;
    border: 1px solid var(--brand-orange-dark) !important;
    border-radius: 7px !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

.orange-button:hover,
.orange-small-button:hover,
.login-button:hover,
.donation-button:hover,
.donation-ranking-save-button:hover,
.edit-news-button:hover,
.home-primary-button:hover {
    background: var(--brand-orange-dark) !important;
    box-shadow: 0 3px 9px rgba(0,0,0,.10) !important;
    transform: translateY(-1px) !important;
}

/* 일반 흰색 버튼 */
.white-button,
.login-cancel-button,
.info-button {
    background: #fff !important;
    border: 1px solid var(--brand-border-strong) !important;
    border-radius: 7px !important;
    color: #333 !important;
    font-weight: 600 !important;
    transition: background-color .15s ease, border-color .15s ease !important;
}

.white-button:hover,
.login-cancel-button:hover,
.info-button:hover {
    background: #f7f7f7 !important;
    border-color: #aaa !important;
}

/* 입력창 */
input,
textarea,
select {
    border-color: #d5d5d5 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #222 !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 2px rgba(255,148,0,.16) !important;
    outline: none !important;
}

/* 최근 소식 카드 */
.intro-recent-card,
.home-quick-card {
    background: #fff !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.035) !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}

.intro-recent-card:hover,
.home-quick-card:hover {
    border-color: #c8c8c8 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.07) !important;
    transform: translateY(-2px) !important;
}

/* 링크/강조 텍스트 */
a {
    color: #b86400;
}

a:hover {
    color: #8f4e00;
}

/* 모바일에서는 카드가 화면을 넘지 않도록 유지 */
@media screen and (max-width: 700px) {
    .main-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .intro-recent-card,
    .home-quick-card,
    .intro-box,
    .detail-box,
    .write-box,
    .auth-box,
    .membership-box,
    .donation-box,
    .video-preview-card {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .page-heading {
        font-size: clamp(27px, 8vw, 34px) !important;
    }
}

/* ==========================================================
   관리자 커뮤니티 글씨 크기 최종 조정
   - PC: 기존보다 약 1.5배 작게
   - 모바일: 카카오톡 채팅과 비슷한 크기
========================================================== */
#screen-admin-community .community-messages .community-bubble {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

#screen-admin-community .community-name {
    font-size: 14px !important;
    line-height: 1.25 !important;
}

#screen-admin-community .community-time {
    font-size: 10px !important;
}

@media (max-width: 700px) {
    /* 관리자 커뮤니티 모바일: 아주 작고 컴팩트하게 */
    #screen-admin-community .community-messages .community-bubble {
        font-size: 23px !important;
        line-height: 1.3 !important;
        padding: 4px 7px !important;
    }

    #screen-admin-community .community-name {
        font-size: 18px !important;
        line-height: 1.15 !important;
        margin-bottom: 2px !important;
    }

    #screen-admin-community .community-time {
        font-size: 15px !important;
    }
}

/* ==========================================================
   관리자 커뮤니티 글씨 크기 강제 적용 - 최종
   PC: 기존 19px
   모바일: 14px
   모바일 단어 단위 줄바꿈 적용
========================================================== */
#screen-admin-community #community-messages .community-bubble,
#screen-admin-community .community-bubble {
    font-size: 19px !important;
    line-height: 1.4 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
}

#screen-admin-community #community-messages .community-name,
#screen-admin-community .community-name {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

#screen-admin-community #community-messages .community-time,
#screen-admin-community .community-time {
    font-size: 12px !important;
}

@media screen and (max-width: 700px) {
    #screen-admin-community #community-messages .community-bubble,
    #screen-admin-community .community-bubble {
        font-size: 14px !important;
        line-height: 2 !important;
        padding: 7px 12px !important;
        border-radius: 19px !important;

        /* 단어 전체가 같이 줄바꿈되게 */
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    #screen-admin-community #community-messages .community-name,
    #screen-admin-community .community-name {
        font-size: 14px !important;
        line-height: 3 !important;
        margin: 0 10px 3px !important;

        word-break: keep-all !important;
        overflow-wrap: break-word !important;
    }

    #screen-admin-community #community-messages .community-time,
    #screen-admin-community .community-time {
        font-size: 12px !important;
    }
}
