/* 수정: 모바일 작성 선택 모달과 같은 카드 스타일을 데스크톱 중앙 모달에도 적용한다. */
.mmz-mobile-posting-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 16px;
}

.mmz-mobile-posting-modal[hidden] {
    display: none;
}

.mmz-mobile-posting-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .62);
    padding: 0;
    cursor: pointer;
}

.mmz-mobile-posting-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    overflow: hidden;
    border: 1px solid var(--theme-panel-border);
    border-radius: 16px;
    background: var(--theme-panel-background);
    color: var(--theme-normal-text);
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.mmz-mobile-posting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 4px 4px 8px;
}

.mmz-mobile-posting-header h2 {
    margin: 0;
    color: var(--theme-title-text);
    font-size: 20px;
    line-height: 1.3;
}

.mmz-mobile-posting-header button {
    min-width: 52px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--theme-normal-text);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.mmz-mobile-posting-header button:hover,
.mmz-mobile-posting-header button:focus-visible {
    background: var(--theme-thumbnail-background);
    color: var(--theme-title-text);
}

.mmz-mobile-posting-actions {
    display: grid;
    gap: 6px;
}

.mmz-mobile-posting-actions > a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 68px;
    border-radius: 10px;
    color: var(--theme-normal-text);
    padding: 8px;
    text-decoration: none;
}

.mmz-mobile-posting-actions > a:hover,
.mmz-mobile-posting-actions > a:focus-visible {
    background: var(--theme-thumbnail-background);
    color: var(--theme-title-text);
}

.mmz-mobile-posting-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #c60000;
}

.mmz-mobile-posting-icon img {
    display: block;
    width: 26px;
    height: 26px;
}

/* 수정: 검정색으로 제작된 갤러리 아이콘만 작성 모달의 다른 흰색 아이콘과 통일한다. */
.mmz-mobile-posting-gallery-icon {
    filter: invert(1);
}

.mmz-mobile-posting-today-icon {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.mmz-mobile-posting-actions strong,
.mmz-mobile-posting-actions small {
    display: block;
    color: inherit;
    font-size: 16px;
    line-height: 1.35;
}

.mmz-mobile-posting-actions strong {
    color: var(--theme-title-text);
    font-weight: 700;
}

.mmz-mobile-posting-actions small {
    margin-top: 2px;
}


/* 수정: 데스크톱 메뉴 버튼은 기존 메뉴 크기를 따르고 모달은 화면 중앙에 표시한다. */
.mmz-desktop-posting-toggle { border: 0; background-color: transparent; font-size: 16px; }
.mmz-desktop-posting-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#mmzMobilePostingMenu { align-items: center; z-index: 10000; }
#mmzMobilePostingMenu .mmz-mobile-posting-panel { max-height: calc(100dvh - 32px); overflow-y: auto; }
body.mmz-posting-menu-open { overflow: hidden; }

