/* ============================================================
   파크골프 매칭 게시판 스타일시트
   list_skin.php + write_skin.php 전용
   반응형 + 다크모드
   ※ 뷰 페이지 스타일 제거됨
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   1. 목록 — 필터 바
══════════════════════════════════════════════════════════ */
.matching-filter-bar {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.filter-chip {
    padding: .35rem .85rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.filter-search-form { display: flex; gap: 0; align-items: center; }
.filter-search-form input[type="text"] {
    height: 36px; padding: 0 .75rem;
    border: 1px solid var(--border);
	border-right: none;
    border-radius: var(--radius);
    font-size: .85rem;
    background: var(--bg-white); color: var(--text);
    width: 180px; transition: border-color .2s;
}
.filter-search-form input[type="text"]:focus {
    outline: none; border-color: var(--color-primary);
}
.filter-search-form button {
    height: 36px; padding: 0 .9rem;
    background: var(--color-primary); color: #fff;
    border: 1px solid var(--color-primary); border-radius: 0 var(--radius); var(--radius) 0;
    font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.filter-search-form button:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

/* ══════════════════════════════════════════════════════════
   2. 목록 — 액션 바 & 등록 버튼
══════════════════════════════════════════════════════════ */
.matching-action-bar {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 1.25rem;
    flex-wrap: wrap; gap: .75rem;
}
.matching-total { font-size: .9rem; color: var(--text-muted); }
.matching-total strong { color: var(--color-primary); font-weight: 600; }

.btn-write-match {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.4rem;
    background: var(--color-primary); color: #fff !important;
    border: none; border-radius: var(--radius);
    font-size: .88rem; font-weight: 600;
    cursor: pointer; text-decoration: none !important;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(27,94,32,.28);
}
.btn-write-match:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27,94,32,.38);
}

/* ══════════════════════════════════════════════════════════
   3. 목록 — 카드 그리드
══════════════════════════════════════════════════════════ */
.matching-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem; margin-bottom: 2rem;
}
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden; cursor: pointer;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.match-card-thumb {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    overflow: hidden;
}
.match-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.match-card:hover .match-card-thumb img { transform: scale(1.06); }
.match-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 3rem; opacity: .4; color: #fff;
}
.match-thumb-badges {
    position: absolute; top: .5rem; left: .5rem;
    display: flex; gap: .3rem; z-index: 2;
}
.match-badge {
    border-radius: 50px; font-size: .65rem; font-weight: 600;
    padding: .15rem .5rem;
    display: inline-flex; align-items: center; gap: .2rem; line-height: 1.4;
}
.badge-open   { background: #dcfce7; color: #15803d; }
.badge-full   { background: #fee2e2; color: #b91c1c; }
.badge-type   { background: var(--color-primary-light); color: var(--color-primary); }
.badge-new    { background: #ef4444; color: #fff; font-size: .6rem; }
[data-theme="dark"] .badge-open { background: rgba(21,128,61,.3);  color: #4ade80; }
[data-theme="dark"] .badge-full { background: rgba(185,28,28,.3);  color: #f87171; }
[data-theme="dark"] .badge-type { background: rgba(45,106,79,.3);  color: #86efac; }
.match-thumb-date {
    position: absolute; bottom: .5rem; right: .5rem;
    background: rgba(0,0,0,.6); color: #fff;
    font-size: .75rem; font-weight: 500;
    padding: .2rem .6rem; border-radius: 20px;
    backdrop-filter: blur(4px);
}
.match-card-body { padding: .75rem 1rem; }
.match-card-title {
    font-size: .9rem; font-weight: 500; color: var(--text);
    line-height: 1.4; margin-bottom: .5rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.match-meta-item {
    display: flex; align-items: center; gap: .3rem;
    font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem;
}
.match-meta-item i { color: var(--color-primary); font-size: .85rem; width: 14px; }
.match-progress-wrap { margin-top: .5rem; }
.match-progress-label {
    display: flex; justify-content: space-between;
    font-size: .82rem; color: var(--text-muted); margin-bottom: .25rem;
}
.match-progress-label strong { color: var(--text); font-weight: 600; }
.match-progress-bar {
    height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.match-progress-fill {
    height: 100%; background: var(--color-primary);
    border-radius: 3px; transition: width .4s ease;
}
.match-progress-fill.full { background: #ef4444; }
.match-card-footer {
    padding: .5rem 1rem; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-muted); font-size: .82rem; color: var(--text-muted);
}
.match-author { display: flex; align-items: center; gap: .3rem; }
.matching-empty {
    text-align: center; padding: 4rem 2rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.matching-empty .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: .4; }
.matching-empty h3 { font-size: 1.1rem; font-weight: 500; color: var(--text); margin-bottom: .5rem; }
.matching-empty p  { color: var(--text-muted); font-size: .9rem; }
.match-bottom-bar {
    display: flex; justify-content: flex-end;
    align-items: center; gap: .6rem; margin-top: .75rem;
}
.match-loading {
    display: flex; align-items: center; justify-content: center;
    gap: .75rem; padding: 2.5rem; color: var(--text-muted);
}
.match-spinner {
    width: 22px; height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: ms-spin .7s linear infinite;
}
@keyframes ms-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   4. 상세 슬라이드 모달
══════════════════════════════════════════════════════════ */
.md-img-wrap { margin: -1.5rem -1.5rem 1rem; background: #000; line-height: 0; }
#mdMainImg   { width: 100%; max-height: 260px; object-fit: cover; }
.md-thumbs   { display: flex; gap: 4px; padding: 6px 8px; background: rgba(0,0,0,.6); overflow-x: auto; }
.md-thumb {
    width: 50px; height: 50px; object-fit: cover; border-radius: 4px;
    cursor: pointer; flex-shrink: 0; border: 2px solid transparent; opacity: .6;
    transition: opacity .15s, border-color .15s;
}
.md-thumb.active, .md-thumb:hover { border-color: var(--color-primary-mid); opacity: 1; }
.md-title-row {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.md-title { font-size: 1rem; font-weight: 800; color: var(--text); margin: 0; flex: 1; }
.md-title-badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.md-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.md-info-item {
    display: flex; align-items: flex-start; gap: .5rem;
    background: var(--bg-muted); border-radius: var(--radius); padding: .55rem .75rem;
}
.md-info-icon  { font-size: .9rem; flex-shrink: 0; line-height: 1.6; }
.md-info-label { font-size: .65rem; color: var(--text-muted); margin-bottom: .1rem; }
.md-info-val   { font-size: .85rem; font-weight: 500; color: var(--text); }
.match-detail-section { margin-bottom: 1rem; }
.match-detail-section h4 {
    font-size: .78rem; font-weight: 600; color: var(--text-muted);
    margin-bottom: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border);
}
.match-detail-content {
    background: var(--bg-muted); border-radius: var(--radius);
    padding: .75rem; font-size: .85rem; line-height: 1.65; color: var(--text);
}
.match-player-list { display: flex; flex-direction: column; gap: .4rem; }
.match-player-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .65rem; background: var(--bg-muted);
    border-radius: var(--radius); font-size: .8rem;
}
.match-player-item.is-me {
    border: 1px solid var(--color-primary); background: var(--color-primary-light);
}
.match-player-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-primary-light); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 600; flex-shrink: 0;
}
.match-player-info { flex: 1; min-width: 0; }
.match-player-name { font-weight: 600; color: var(--text); font-size: .82rem; }
.match-player-sub  { font-size: .68rem; color: var(--text-muted); margin-top: .1rem; }
.ap-handicap { font-size: .68rem; color: var(--text-muted); }
.ap-persons  { font-size: .62rem; background: var(--color-primary); color: #fff; padding: .05rem .35rem; border-radius: 10px; margin-left: .2rem; }
.ap-me-tag   { font-size: .62rem; background: var(--color-primary-light); color: var(--color-primary); padding: .05rem .35rem; border-radius: 10px; margin-left: .3rem; font-weight: 600; }
.match-player-meta { flex-shrink: 0; }
.match-player-date { font-size: .65rem; color: var(--text-muted); white-space: nowrap; }
.ap-empty    { color: var(--text-muted); font-size: .85rem; padding: .5rem 0; }
.ap-optional { font-size: .72rem; font-weight: 400; color: var(--text-muted); }
.md-apply-done {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem; background: var(--color-primary-light);
    border-radius: var(--radius); font-size: .85rem; font-weight: 600;
    color: #15803d; margin-bottom: .5rem;
}
[data-theme="dark"] .md-apply-done { color: #4ade80; }
.md-cancel-btn {
    padding: .28rem .9rem; border-radius: 20px;
    border: 1.5px solid #ef4444; color: #ef4444;
    background: transparent; cursor: pointer;
    font-size: .82rem; font-weight: 600; transition: all .18s;
}
.md-cancel-btn:hover { background: #ef4444; color: #fff; }
.md-apply-full {
    text-align: center; padding: .75rem; background: #fee2e2;
    border-radius: var(--radius); color: #b91c1c; font-weight: 600;
    font-size: .85rem; margin-bottom: .4rem;
}
[data-theme="dark"] .md-apply-full { background: rgba(185,28,28,.2); color: #f87171; }
.md-apply-guest {
    text-align: center; padding: .75rem; background: var(--bg-muted);
    border-radius: var(--radius); color: var(--text-muted); font-size: .85rem; font-weight: 600;
}
.md-member-info {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem .75rem; background: var(--bg-muted);
    border-radius: var(--radius); font-size: .82rem; margin-bottom: .75rem;
}
.md-phone-disp { color: var(--text-muted); font-size: .8rem; }
.match-apply-form .form-group { margin-bottom: .7rem; }
.match-apply-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .25rem; }
.match-apply-form input[type="text"] {
    width: 100%; height: 38px; padding: 0 .75rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-white); color: var(--text); font-size: .85rem;
    box-sizing: border-box; transition: border-color .2s;
}
.match-apply-form input[type="text"]:focus { outline: none; border-color: var(--color-primary); }
.form-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .7rem; }

/* 스테퍼 — 신청 폼용 */
.stepper-wrap {
    display: flex; align-items: stretch;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; height: 38px;
}
.stepper-btn {
    width: 36px; flex-shrink: 0; border: none;
    background: var(--bg-muted); color: var(--text);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.stepper-btn:hover { background: var(--color-primary); color: #fff; }
.stepper-input {
    flex: 1; min-width: 0; text-align: center;
    border: none !important;
    border-left: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
    border-radius: 0 !important; height: 100% !important;
    padding: 0 !important; background: var(--bg-white) !important;
    color: var(--text) !important;
    font-size: .9rem; font-weight: 700; -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; }
[data-theme="dark"] .stepper-btn { background: rgba(255,255,255,.08); }
[data-theme="dark"] .stepper-btn:hover { background: var(--color-primary); color: #fff; }

.btn-apply {
    width: 100%; padding: .65rem; background: var(--color-primary); color: #fff;
    border: none; border-radius: var(--radius); font-size: .88rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; transition: background .2s, transform .15s; text-decoration: none;
}
.btn-apply:hover  { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-apply:disabled { background: #94a3b8; cursor: not-allowed; transform: none; }
.btn-apply-manage {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .35rem; width: 100%; margin-top: .5rem; padding: .55rem;
    background: var(--color-primary-light); color: var(--color-primary-hover);
    border: none; border-radius: var(--radius);
    font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-apply-manage:hover { background: var(--color-primary); color: #fff; }
.md-mgmt-bar { display: flex; gap: 6px; margin-top: 10px; }
.md-mgmt-bar .btn-apply { flex: 1; height: 40px; width: auto; padding: 0; border-radius: var(--radius); }
.btn-del {
    flex: 1; height: 40px;
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    background: transparent; border: 1.5px solid #ef4444; color: #ef4444;
    border-radius: var(--radius); font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: background .18s, color .18s;
}
.btn-del:hover { background: #ef4444; color: #fff; }
.slide-modal-title {
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; max-width: calc(100% - 2.5rem);
}

/* ══════════════════════════════════════════════════════════
   5. 등록/수정 폼 (write_skin)
══════════════════════════════════════════════════════════ */
.mw-page-wrap  { max-width: 680px; margin: 0 auto; padding: 1rem 0 3rem; }
.mw-card-wrap  { display: flex; flex-direction: column; gap: 1rem; }

.mw-page-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem;
}
.mw-page-title {
    font-size: 1.2rem; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: .5rem; margin: 0;
}
.mw-page-title i { color: var(--color-primary); }
.mw-back-link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .85rem; color: var(--text-muted); text-decoration: none;
    padding: .4rem .8rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-muted); transition: all .18s;
}
.mw-back-link:hover { color: var(--text); border-color: var(--color-primary); }

/* 카드 */
.mw-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.4rem;
}
.mw-card-title {
    font-size: .8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
    margin: 0 0 1rem; padding-bottom: .55rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: .4rem;
}
.mw-card-title i { color: var(--color-primary); }

/* 그리드 */
.mw-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mw-mb  { margin-bottom: .9rem; }

/* 필드 */
.mw-field { display: flex; flex-direction: column; gap: .3rem; position: relative; }
.mw-field label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.mw-req      { color: #ef4444; margin-left: 2px; }
.mw-optional { font-weight: 400; font-size: .75rem; color: var(--text-muted); }
.mw-hint     { font-size: .72rem; color: var(--text-muted); }

/* 인풋 */
.mw-input {
    height: 42px; padding: 0 .85rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-white); color: var(--text);
    font-size: .88rem; font-family: inherit;
    width: 100%; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.mw-input:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27,94,32,.12);
}
.mw-textarea {
    width: 100%; min-height: 110px; padding: .65rem .85rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-white); color: var(--text);
    font-size: .88rem; font-family: inherit;
    resize: vertical; box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.mw-textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27,94,32,.12);
}
.mw-field-icon-wrap { position: relative; }
.mw-field-icon-wrap .mw-input { padding-left: 2.2rem !important; }
.mw-field-icon {
    position: absolute; left: .75rem; top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary); font-size: .8rem;
    pointer-events: none; z-index: 1;
}

/* 스테퍼 — 등록 폼용 (직접 입력 가능) */
.mw-stepper {
    display: flex; align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; height: 42px;
}
.mw-step-btn {
    width: 42px; flex-shrink: 0; border: none;
    background: var(--bg-muted); color: var(--text);
    font-size: 1.15rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.mw-step-btn:hover { background: var(--color-primary); color: #fff; }
.mw-step-val {
    flex: 1; min-width: 0; text-align: center;
    border: none !important;
    border-left: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
    border-radius: 0 !important; height: 100% !important;
    padding: 0 .25rem !important;
    background: var(--bg-white) !important; color: var(--text) !important;
    font-size: 1rem; font-weight: 700; -moz-appearance: textfield;
}
.mw-step-val::-webkit-outer-spin-button,
.mw-step-val::-webkit-inner-spin-button { -webkit-appearance: none; }
[data-theme="dark"] .mw-step-btn { background: rgba(255,255,255,.08); }
[data-theme="dark"] .mw-step-btn:hover { background: var(--color-primary); color: #fff; }

/* 매칭 대상 — small 버튼 칩 */
.mw-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.mw-chip {
    padding: .28rem .75rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg-muted); color: var(--text-muted);
    font-size: .78rem; font-weight: 600; cursor: pointer;
    transition: all .18s; line-height: 1.4;
}
.mw-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.mw-chip.selected {
    border-color: var(--color-primary);
    background: var(--color-primary); color: #fff;
}

/* 이미지 업로드 */
.mw-upload {
    position: relative; border: 2px dashed var(--border);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    min-height: 120px; display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, background .2s;
}
.mw-upload:hover,
.mw-upload.drag-over { border-color: var(--color-primary); background: var(--color-primary-light); }
.mw-upload.has-img   { border-style: solid; border-color: var(--color-primary); }
.mw-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.mw-upload-guide {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .4rem; padding: 1.5rem 1rem; text-align: center;
    pointer-events: none;
}
.mw-upload-guide i  { font-size: 1.8rem; color: var(--color-primary); opacity: .65; }
.mw-upload-guide p  { font-size: .88rem; font-weight: 600; color: var(--text-muted); margin: 0; }
.mw-upload-guide span { font-size: .75rem; color: var(--text-muted); }
.mw-upload-preview  { position: relative; width: 100%; line-height: 0; }
.mw-upload-preview img { width: 100%; max-height: 200px; object-fit: contain; background: var(--bg-muted); display: block; }
.mw-upload-remove {
    position: absolute; top: .5rem; right: .5rem;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,.65); color: #fff;
    border: none; cursor: pointer; font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; z-index: 3;
}
.mw-upload-remove:hover { background: #ef4444; }
.mw-upload-existing { padding: .75rem; width: 100%; z-index: 3; }
.mw-upload-existing img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: .5rem; display: block; }
.mw-upload-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-muted); margin-bottom: .4rem; }
.mw-upload-size { font-size: .72rem; }
.mw-upload-del-label { position: relative; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; cursor: pointer; color: #ef4444; font-weight: 600; z-index: 4; }
.mw-upload-existing.del-marked { opacity: .4; }

/* 액션 버튼 */
.mw-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: .75rem; padding-top: .25rem;
}
.mw-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; padding: .7rem 1.75rem;
    border-radius: var(--radius); font-size: .9rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all .18s; border: none; font-family: inherit; box-sizing: border-box;
}
.mw-btn-cancel {
    background: var(--bg-muted);
    border: 1px solid var(--border) !important;
    color: var(--text-muted);
}
.mw-btn-cancel:hover { background: var(--border); color: var(--text); }
.mw-btn-submit {
    background: var(--color-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(27,94,32,.28); min-width: 130px;
}
.mw-btn-submit:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(27,94,32,.38);
}
.mw-btn-submit:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }

/* ══════════════════════════════════════════════════════════
   6. 반응형
══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) { .matching-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) {
    .matching-grid { grid-template-columns: 1fr; }
    .matching-filter-bar { flex-direction: column; align-items: stretch; }
    .filter-search-form { width: 100%; }
    .filter-search-form input[type="text"] { flex: 1; width: auto; }
    .matching-action-bar { flex-direction: column; align-items: flex-start; }
    .md-info-grid { grid-template-columns: 1fr; }
    .md-mgmt-bar  { flex-direction: column; }
    #mdMainImg    { max-height: 180px; }
    .slide-modal-lg .slide-modal-container {
        width: 100% !important; max-width: 100% !important;
        top: auto !important; left: 0; right: 0; bottom: 0;
        border-radius: 18px 18px 0 0;
        transform: translateY(110%) !important; max-height: 92vh;
    }
    .slide-modal-lg.open .slide-modal-container { transform: translateY(0) !important; }
    .mw-page-wrap { padding: .75rem 0 2rem; }
    .mw-row { grid-template-columns: 1fr; }
    .form-row-double { grid-template-columns: 1fr; }
    .mw-actions { flex-direction: column-reverse; }
    .mw-btn { width: 100%; justify-content: center; }
}