/*!
 * ACTS Match — Front CSS v1.1.0 (Phase 4)
 * HC JOYN 디자인 토큰. 모바일 + 데스크탑 반응형.
 */

:root {
    --am-primary: #4541FF;
    --am-primary-dark: #2E29D4;
    --am-primary-light: #6E6BFF;
    --am-primary-soft: #ECEBFF;
    --am-primary-faint: #F5F5FF;
    --am-bg: #F7F7FB;
    --am-card: #FFFFFF;
    --am-line: #ECEBFF;
    --am-border: #E5E5F0;
    --am-text: #0F1024;
    --am-text-sub: #4A4D63;
    --am-muted: #8A8FA5;
    --am-live: #FF3B5C;
    --am-success: #16A34A;
    --am-warning: #F59E0B;
    --am-gold: #D4A437;
    --am-shadow-sm: 0 4px 12px rgba(34,28,140,.06);
    --am-shadow-md: 0 10px 24px rgba(34,28,140,.08);
    --am-shadow-primary: 0 14px 30px rgba(69,65,255,.28);
    --am-ease: cubic-bezier(.32,.72,0,1);
    --am-dur-fast: .15s;
    --am-dur: .25s;
    --am-offer-bg: #ECEBFF;
    --am-offer-fg: #4541FF;
    --am-seeking-bg: #FFE8D9;
    --am-seeking-fg: #C25E1F;
}

.am-wrap {
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    letter-spacing: -0.2px;
    color: var(--am-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.am-wrap *, .am-wrap *::before, .am-wrap *::after { box-sizing: border-box; }

/* HCJM 헤더 아래 본문 — 모바일 safe-area (hc-joyn-mainpage 헤더와 동일 계열) */
body.hcjoyn-hcjm-header-only:has(.acts-match-hcjm-header) .site-content,
body.hcjoyn-hcjm-header-only:has(.acts-match-hcjm-header) #content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}
body.hcjoyn-hcjm-header-only:has(.acts-match-hcjm-header) .acts-match-hcjm-header + .ast-container,
body.hcjoyn-hcjm-header-only:has(.acts-match-hcjm-header) .acts-match-hcjm-header ~ .ast-container {
	padding-top: 0;
}

.am-page-hero { background: #fff; border-bottom: 1px solid var(--am-line); }
.am-page-hero-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 28px 20px 24px;
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.am-page-title-block { flex: 1; min-width: 240px; }
.am-page-title {
    font-size: 24px; font-weight: 900;
    color: var(--am-text); letter-spacing: -0.8px;
    line-height: 1.2; margin: 0 0 8px;
}
.am-page-subtitle {
    font-size: 13.5px; color: var(--am-text-sub);
    font-weight: 600; line-height: 1.5;
    max-width: 600px; margin: 0;
}
.am-page-stats {
    display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap;
}
.am-page-stat { display: flex; align-items: baseline; gap: 5px; }
.am-page-stat .num {
    font-size: 19px; font-weight: 900;
    color: var(--am-primary); letter-spacing: -0.4px;
}
.am-page-stat .lbl { font-size: 11.5px; color: var(--am-muted); font-weight: 700; }
.am-page-cta { display: flex; gap: 8px; flex-shrink: 0; }

.am-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding: 0 18px;
    border-radius: 11px; border: 0;
    font-family: inherit; font-size: 13.5px; font-weight: 800;
    text-decoration: none; cursor: pointer;
    letter-spacing: -0.3px; transition: all var(--am-dur-fast);
}
.am-btn.primary {
    background: var(--am-primary); color: #fff;
    box-shadow: var(--am-shadow-primary);
}
.am-btn.primary:hover { background: var(--am-primary-dark); color: #fff; }
.am-btn.secondary { background: var(--am-primary-faint); color: var(--am-text); }
.am-btn.secondary:hover { background: var(--am-primary-soft); }

.am-btn-mini {
    display: inline-flex; align-items: center;
    padding: 6px 11px;
    background: var(--am-primary-faint);
    color: var(--am-text); border: 0;
    border-radius: 7px; font-family: inherit;
    font-size: 11.5px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    letter-spacing: -0.2px;
}
.am-btn-mini:hover { background: var(--am-primary-soft); }
.am-btn-mini.primary { background: var(--am-primary); color: #fff; }

.am-board-main {
    max-width: 1280px; margin: 0 auto;
    padding: 20px 20px 60px;
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 20px; align-items: flex-start;
}
.am-sidebar, .am-aside {
    display: flex; flex-direction: column;
    gap: 12px; position: sticky; top: 20px;
}
.am-board { min-width: 0; }

.am-notice {
    padding: 12px 14px; border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px; font-weight: 600;
}
.am-notice.error { background: rgba(255,59,92,.1); color: var(--am-live); }
.am-notice.success { background: rgba(22,163,74,.1); color: var(--am-success); }
.am-notice.info { background: var(--am-primary-faint); color: var(--am-primary); }
.am-notice a { color: inherit; font-weight: 800; }
/* ─── 필터 카드 ─── */
.am-filter-card {
    background: #fff; border-radius: 12px;
    padding: 16px; box-shadow: var(--am-shadow-sm);
}
.am-filter-title {
    font-size: 13px; font-weight: 800;
    color: var(--am-text); margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.am-filter-title small { color: var(--am-muted); margin-left: 4px; font-weight: 700; }

.am-filter-radio-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 8px;
    color: var(--am-text-sub); font-size: 12.5px;
    font-weight: 700; text-decoration: none;
    cursor: pointer; letter-spacing: -0.2px;
}
.am-filter-radio-link:hover { background: var(--am-primary-faint); color: var(--am-text); }
.am-filter-radio-link.active { background: var(--am-text); color: #fff; }
.am-filter-radio-link.active.offer { background: var(--am-offer-fg); }
.am-filter-radio-link.active.seeking { background: var(--am-seeking-fg); }
.am-filter-radio-link .count {
    margin-left: auto; font-size: 11px;
    color: var(--am-muted); font-weight: 700;
}
.am-filter-radio-link.active .count { color: rgba(255,255,255,.7); }

.am-cat-form { display: flex; flex-direction: column; gap: 8px; }
.am-cat-scroll { max-height: 240px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.am-cat-scroll::-webkit-scrollbar { width: 4px; }
.am-cat-scroll::-webkit-scrollbar-thumb { background: var(--am-border); border-radius: 99px; }

.am-cat-check {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 0; cursor: pointer; user-select: none;
    font-size: 12.5px; font-weight: 600; color: var(--am-text);
}
.am-cat-check input { display: none; }
.am-cat-check .box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--am-border);
    border-radius: 4px; flex-shrink: 0;
    position: relative;
}
.am-cat-check input:checked + .box {
    background: var(--am-primary); border-color: var(--am-primary);
}
.am-cat-check input:checked + .box::after {
    content: '✓'; color: #fff; font-size: 12px; font-weight: 800;
    position: absolute; top: -3px; left: 3px;
}
.am-cat-check .lbl { flex: 1; }
.am-cat-check .count { font-size: 11px; color: var(--am-muted); }

.am-filter-radio { display: flex; flex-wrap: wrap; gap: 4px; }
.am-filter-radio .radio-btn {
    flex: 1; min-width: 36px; text-align: center;
    padding: 7px 0;
    background: var(--am-bg); border: 1px solid var(--am-border);
    border-radius: 7px; color: var(--am-text-sub);
    font-size: 11px; font-weight: 700; text-decoration: none;
}
.am-filter-radio .radio-btn.active {
    background: var(--am-primary); color: #fff; border-color: var(--am-primary);
}

/* ─── 글타입 토글 ─── */
.am-type-toggle-bar {
    background: #fff; border-radius: 14px;
    padding: 6px; box-shadow: var(--am-shadow-sm);
    display: none; gap: 4px; margin-bottom: 12px;
}
.am-type-tab {
    flex: 1; text-align: center; padding: 9px 4px;
    background: transparent; border-radius: 10px;
    color: var(--am-text-sub); font-size: 12.5px;
    font-weight: 700; text-decoration: none;
    cursor: pointer; letter-spacing: -0.3px;
    display: flex; align-items: center;
    justify-content: center; gap: 4px;
}
.am-type-tab.active { background: var(--am-text); color: #fff; }
.am-type-tab.active.tab-offer { background: var(--am-offer-fg); }
.am-type-tab.active.tab-seeking { background: var(--am-seeking-fg); }
.am-type-tab .dot { width: 6px; height: 6px; border-radius: 50%; }
.am-type-tab .cnt { font-size: 11px; color: var(--am-muted); }
.am-type-tab.active .cnt { color: rgba(255,255,255,.7); }

/* ─── 검색 ─── */
.am-search-row { display: flex; gap: 6px; margin-bottom: 12px; }
.am-search-input-wrap { flex: 1; position: relative; }
.am-search-input {
    width: 100%; height: 40px;
    padding: 0 14px 0 38px;
    background: #fff; border: 1px solid var(--am-border);
    border-radius: 10px; font-family: inherit;
    font-size: 13px; color: var(--am-text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A8FA5' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath stroke-linecap='round' d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 12px center;
}
.am-search-input:focus {
    outline: none; border-color: var(--am-primary);
    box-shadow: 0 0 0 3px rgba(69,65,255,.1);
}
.am-search-row .search-btn {
    padding: 0 18px; height: 40px;
    background: var(--am-primary); color: #fff;
    border: 0; border-radius: 10px;
    font-weight: 800; cursor: pointer;
}

.am-list-meta {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 12px;
    padding: 0 4px; gap: 10px;
}
.am-list-count { font-size: 12.5px; color: var(--am-text-sub); font-weight: 600; }
.am-list-count strong { color: var(--am-primary); font-weight: 800; margin: 0 2px; }
.am-sort-select {
    background: #fff; border: 1px solid var(--am-border);
    padding: 7px 28px 7px 12px; border-radius: 8px;
    font-family: inherit; font-size: 12px;
    font-weight: 700; color: var(--am-text); cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%238A8FA5' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* ─── 카드 ─── */
.am-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-card {
    background: #fff; border-radius: 13px;
    box-shadow: var(--am-shadow-sm);
    overflow: hidden; cursor: pointer;
    transition: all var(--am-dur-fast);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.am-card:hover { box-shadow: var(--am-shadow-md); transform: translateY(-2px); }
.am-card-head {
    padding: 14px 16px 10px;
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.am-card-type {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 800;
    letter-spacing: -0.2px; flex-shrink: 0;
}
.am-card-type.offer { background: var(--am-offer-bg); color: var(--am-offer-fg); }
.am-card-type.seeking { background: var(--am-seeking-bg); color: var(--am-seeking-fg); }
.am-card-type::before {
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor;
}
.am-card-status {
    padding: 2px 8px; border-radius: 5px;
    font-size: 10.5px; font-weight: 800; letter-spacing: -0.2px;
}
.am-card-status.urgent { background: rgba(255,59,92,.1); color: var(--am-live); }
.am-card-status.matched { background: rgba(22,163,74,.1); color: var(--am-success); }
.am-card-status.highlight { background: rgba(212,164,55,.15); color: var(--am-gold); }
.am-card-time {
    margin-left: auto; font-size: 10.5px;
    color: var(--am-muted); font-weight: 600;
}

.am-card-body { padding: 0 16px 12px; flex: 1; }
.am-card-title {
    font-size: 15px; font-weight: 800;
    color: var(--am-text); letter-spacing: -0.4px;
    line-height: 1.4; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    min-height: 42px;
}
.am-card-excerpt {
    font-size: 12.5px; color: var(--am-text-sub);
    line-height: 1.55; margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.am-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.am-card-tag {
    padding: 3px 8px; background: var(--am-primary-faint);
    color: var(--am-text-sub); border-radius: 5px;
    font-size: 10.5px; font-weight: 700;
}
.am-card-tag.region { background: var(--am-primary-soft); color: var(--am-primary); }

.am-card-foot {
    padding: 10px 16px; border-top: 1px solid var(--am-line);
    display: flex; align-items: center; gap: 9px;
}
.am-card-author { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.am-card-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    flex-shrink: 0; display: flex;
    align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.am-card-avatar.tone-1 { background: var(--am-primary-soft); color: var(--am-primary); }
.am-card-avatar.tone-2 { background: #FFE8C8; color: #C57A1A; }
.am-card-avatar.tone-3 { background: #DCEDD2; color: #2F7D1F; }
.am-card-avatar.tone-4 { background: #FCE0E5; color: #C3344C; }
.am-card-avatar.tone-5 { background: #E5DFFB; color: #6843C9; }
.am-card-author-info { flex: 1; min-width: 0; }
.am-card-author-name {
    font-size: 12px; font-weight: 800; color: var(--am-text);
    display: flex; align-items: center; gap: 4px;
    letter-spacing: -0.3px; margin-bottom: 2px;
}
.am-card-author-name .verified { color: var(--am-gold); font-size: 11px; }
.am-card-author-region {
    font-size: 10.5px; color: var(--am-muted);
    font-weight: 600; display: flex;
    align-items: center; gap: 4px;
}

.am-trust { display: inline-flex; align-items: center; gap: 2px; }
.am-trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--am-border); }
.am-trust-dot.filled { background: var(--am-primary); }
.am-trust-dot.gold { background: var(--am-gold); }

.am-card-stats {
    display: flex; gap: 9px;
    font-size: 10.5px; color: var(--am-muted);
    font-weight: 700; flex-shrink: 0;
}
.am-card-stat { display: inline-flex; align-items: center; gap: 3px; }

.am-pagination {
    display: flex; justify-content: center;
    align-items: center; gap: 4px; margin-top: 24px;
}
.am-page-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    background: #fff; border: 1px solid var(--am-border);
    border-radius: 8px; color: var(--am-text-sub);
    font-family: inherit; font-size: 12.5px;
    font-weight: 700; cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
}
.am-page-btn:hover { background: var(--am-primary-faint); color: var(--am-text); }
.am-page-btn.active { background: var(--am-primary); color: #fff; border-color: var(--am-primary); }
/* ─── 우측 사이드 ─── */
.am-aside-card {
    background: #fff; border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow: var(--am-shadow-sm);
}
.am-aside-title {
    font-size: 13px; font-weight: 800; color: var(--am-text);
    margin-bottom: 10px; letter-spacing: -0.3px;
}
.am-aside-link {
    display: block; margin-top: 10px; padding: 9px;
    background: var(--am-primary-faint); text-align: center;
    border-radius: 8px; color: var(--am-primary);
    font-size: 12px; font-weight: 800; text-decoration: none;
}
.am-aside-link:hover { background: var(--am-primary-soft); }

.am-my-trust-banner {
    background: linear-gradient(135deg, var(--am-primary-soft), var(--am-primary-faint));
    border-radius: 10px; padding: 10px 12px;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}
.am-my-trust-icon, .am-my-trust-banner > :first-child { font-size: 18px; flex-shrink: 0; }
.am-my-trust-text { font-size: 11.5px; color: var(--am-text); font-weight: 700; line-height: 1.4; }
.am-my-trust-text b { color: var(--am-primary); font-weight: 800; }

.am-pop-list { display: flex; flex-direction: column; gap: 9px; }
.am-pop-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 4px 0; text-decoration: none; color: inherit;
}
.am-pop-item:hover .am-pop-title { color: var(--am-primary); }
.am-pop-rank {
    font-size: 13px; font-weight: 900;
    color: var(--am-primary); letter-spacing: -0.3px;
    flex-shrink: 0; width: 16px;
}
.am-pop-rank.cold { color: var(--am-muted); }
.am-pop-content { flex: 1; min-width: 0; }
.am-pop-type {
    display: inline-flex; align-items: center;
    padding: 2px 6px; border-radius: 4px;
    font-size: 9.5px; font-weight: 800;
    letter-spacing: -0.2px; margin-bottom: 3px;
}
.am-pop-type.offer { background: var(--am-offer-bg); color: var(--am-offer-fg); }
.am-pop-type.seeking { background: var(--am-seeking-bg); color: var(--am-seeking-fg); }
.am-pop-title {
    font-size: 12px; font-weight: 700; color: var(--am-text);
    letter-spacing: -0.3px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--am-dur-fast);
}
.am-pop-meta { font-size: 10.5px; color: var(--am-muted); font-weight: 600; margin-top: 3px; }

.am-ad-banner {
    background: linear-gradient(135deg, var(--am-text) 0%, var(--am-primary-dark) 60%, var(--am-primary) 100%);
    color: #fff; border-radius: 12px;
    padding: 18px 16px; overflow: hidden; position: relative;
}
.am-ad-title { font-size: 14.5px; font-weight: 800; margin-bottom: 5px; letter-spacing: -0.4px; }
.am-ad-desc { font-size: 11.5px; color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: 12px; font-weight: 600; }
.am-ad-btn {
    display: inline-block; background: #fff;
    color: var(--am-primary); padding: 8px 16px;
    border-radius: 99px; font-size: 11.5px;
    font-weight: 800; text-decoration: none;
}

.am-fab {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--am-primary); color: #fff;
    padding: 12px 18px; border-radius: 99px;
    font-size: 13.5px; font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(69,65,255,.4);
    z-index: 100; display: none;
}

.am-empty {
    background: #fff; border-radius: 14px;
    padding: 40px 20px; text-align: center;
}
.am-empty-icon { font-size: 40px; margin-bottom: 12px; }
.am-empty-text { font-size: 14px; font-weight: 700; color: var(--am-text); margin-bottom: 6px; }
.am-empty-sub { font-size: 12.5px; color: var(--am-muted); font-weight: 600; }
.am-empty-mini { padding: 24px; text-align: center; color: var(--am-muted); font-size: 12.5px; font-weight: 600; }

/* ─── 단일 상세 ─── */
.am-single-main {
    max-width: 1280px; margin: 0 auto;
    padding: 20px 20px 60px;
    display: grid; grid-template-columns: 1fr 320px;
    gap: 20px; align-items: flex-start;
}
.am-single-content-area { min-width: 0; }
.am-single-aside {
    display: flex; flex-direction: column; gap: 12px;
    position: sticky; top: 20px;
}
.am-single-info-mobile { display: none; }

.am-single-hero {
    background: #fff; border-radius: 14px;
    padding: 24px; box-shadow: var(--am-shadow-sm);
    margin-bottom: 14px;
}
.am-meta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.am-single-title {
    font-size: 24px; font-weight: 900; color: var(--am-text);
    letter-spacing: -0.8px; line-height: 1.3; margin: 0 0 16px;
}
.am-single-author-row {
    display: flex; align-items: center; gap: 12px;
    padding-top: 14px; border-top: 1px solid var(--am-line);
    flex-wrap: wrap;
}
.am-single-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    flex-shrink: 0; display: flex;
    align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
}
.am-single-avatar.tone-1 { background: var(--am-primary-soft); color: var(--am-primary); }
.am-single-avatar.tone-2 { background: #FFE8C8; color: #C57A1A; }
.am-single-avatar.tone-3 { background: #DCEDD2; color: #2F7D1F; }
.am-single-avatar.tone-4 { background: #FCE0E5; color: #C3344C; }
.am-single-avatar.tone-5 { background: #E5DFFB; color: #6843C9; }
.am-single-author-info { flex: 1; min-width: 0; }
.am-single-author-name {
    font-size: 16px; font-weight: 800; color: var(--am-text);
    margin-bottom: 4px; letter-spacing: -0.4px;
}
.am-single-author-name .verified { color: var(--am-gold); font-size: 13px; }
.am-single-author-stats {
    font-size: 11.5px; color: var(--am-muted);
    font-weight: 600; display: flex;
    align-items: center; gap: 6px; flex-wrap: wrap;
}
.am-single-follow-btn {
    background: var(--am-primary-faint); color: var(--am-primary);
    border: 0; padding: 8px 14px; border-radius: 8px;
    font-family: inherit; font-size: 12px;
    font-weight: 800; cursor: pointer; text-decoration: none;
}

.am-single-content {
    background: #fff; border-radius: 14px;
    padding: 24px; box-shadow: var(--am-shadow-sm);
    font-size: 14.5px; line-height: 1.75;
    color: var(--am-text); margin-bottom: 14px;
}
.am-single-content h2, .am-single-content h3 {
    font-weight: 800; margin: 22px 0 12px;
    letter-spacing: -0.4px;
}
.am-single-content h3 { font-size: 16.5px; }
.am-single-content p { margin: 0 0 14px; }
.am-single-content ul, .am-single-content ol { margin: 0 0 14px; padding-left: 22px; }
.am-single-content li { margin-bottom: 4px; }

.am-single-attach {
    background: #fff; border-radius: 14px;
    padding: 18px 22px; box-shadow: var(--am-shadow-sm);
    margin-bottom: 14px;
}
.am-section-title {
    font-size: 14px; font-weight: 800; color: var(--am-text);
    margin-bottom: 12px; display: flex;
    align-items: center; gap: 6px;
}
.am-section-title .cnt { color: var(--am-muted); font-weight: 700; font-size: 12.5px; }
.am-attach-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px; margin-bottom: 12px;
}
.am-attach-img {
    aspect-ratio: 4/3; border-radius: 10px;
    background: var(--am-primary-soft);
    overflow: hidden; display: block;
}
.am-attach-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.am-attach-file {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; background: var(--am-bg);
    border-radius: 10px; margin-bottom: 6px;
}
.am-attach-file-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: #fff; display: flex;
    align-items: center; justify-content: center;
    color: var(--am-primary); font-size: 16px; flex-shrink: 0;
}
.am-attach-file-info { flex: 1; min-width: 0; }
.am-attach-file-name {
    font-size: 13px; font-weight: 800; color: var(--am-text);
    margin-bottom: 2px; letter-spacing: -0.3px; word-break: break-all;
}
.am-attach-file-meta { font-size: 11px; color: var(--am-muted); font-weight: 600; }
.am-attach-file-dl {
    width: 36px; height: 36px; background: var(--am-primary);
    color: #fff; border: 0; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; text-decoration: none; font-size: 16px; flex-shrink: 0;
}

.am-single-actions {
    background: #fff; border-radius: 14px;
    padding: 12px; box-shadow: var(--am-shadow-sm);
    display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.am-action-btn {
    height: 42px; padding: 0 14px;
    background: var(--am-primary-faint); color: var(--am-text);
    border: 0; border-radius: 10px;
    font-family: inherit; font-size: 12px; font-weight: 800;
    cursor: pointer; display: inline-flex;
    align-items: center; gap: 5px;
    transition: all var(--am-dur-fast); letter-spacing: -0.3px;
}
.am-action-btn:hover { background: var(--am-primary-soft); }
.am-action-btn.liked { background: rgba(255,59,92,.1); color: var(--am-live); }
.am-action-btn.primary {
    flex: 1; background: var(--am-primary); color: #fff; font-size: 13px;
}
.am-action-btn.primary:hover { background: var(--am-primary-dark); }
.am-action-btn.warn:hover { background: rgba(255,59,92,.1); color: var(--am-live); }

/* 정보 박스 */
.am-single-info-card {
    background: linear-gradient(135deg, var(--am-primary-faint), #fff);
    border: 1px solid var(--am-line);
    border-radius: 12px; padding: 16px;
}
.am-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-info-grid.full {
    grid-template-columns: 1fr;
    padding-top: 12px; margin-top: 12px;
    border-top: 1px solid var(--am-line);
}
.am-info-lbl {
    font-size: 11px; color: var(--am-muted);
    font-weight: 700; margin-bottom: 3px; letter-spacing: -0.2px;
}
.am-info-val {
    font-size: 13px; color: var(--am-text);
    font-weight: 800; letter-spacing: -0.3px;
}
.am-info-val.dday { color: var(--am-live); }
.am-info-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.am-info-tag {
    background: #fff; color: var(--am-text-sub);
    padding: 3px 8px; border-radius: 5px;
    font-size: 11px; font-weight: 700;
}
.am-info-tag.primary { background: var(--am-primary); color: #fff; }
/* ─── 댓글 ─── */
.am-comments {
    background: #fff; border-radius: 14px;
    padding: 20px 22px 22px;
    box-shadow: var(--am-shadow-sm);
}
.am-comment-tabs {
    display: flex; gap: 0; margin-bottom: 16px;
    border-bottom: 1px solid var(--am-line);
}
.am-comment-tab {
    padding: 10px 0; margin-right: 20px;
    background: transparent; border: 0;
    border-bottom: 2px solid transparent;
    font-family: inherit; font-size: 13.5px;
    font-weight: 700; color: var(--am-muted);
    cursor: pointer; letter-spacing: -0.3px;
}
.am-comment-tab.active {
    color: var(--am-text);
    border-bottom-color: var(--am-primary);
    font-weight: 800;
}
.am-comment-tab .cnt { color: var(--am-primary); margin-left: 4px; font-weight: 800; }

.am-comment-input-area {
    background: var(--am-bg); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 18px;
}
.am-comment-input {
    width: 100%; min-height: 64px;
    background: transparent; border: 0;
    font-family: inherit; font-size: 13.5px;
    color: var(--am-text); resize: vertical; line-height: 1.5;
}
.am-comment-input:focus { outline: none; }
.am-comment-input::placeholder { color: var(--am-muted); }
.am-comment-input-foot {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--am-line);
}
.am-comment-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--am-text-sub);
    font-weight: 700; cursor: pointer;
}
.am-comment-toggle input { display: none; }
.am-comment-toggle .toggle-pill {
    width: 28px; height: 16px; background: var(--am-border);
    border-radius: 99px; position: relative;
    transition: background var(--am-dur-fast);
}
.am-comment-toggle .toggle-pill::after {
    content: ''; width: 12px; height: 12px;
    background: #fff; border-radius: 50%;
    position: absolute; top: 2px; left: 2px;
    transition: left var(--am-dur-fast);
}
.am-comment-toggle input:checked + .toggle-pill { background: var(--am-primary); }
.am-comment-toggle input:checked + .toggle-pill::after { left: 14px; }
.am-comment-submit {
    background: var(--am-primary); color: #fff; border: 0;
    padding: 8px 16px; border-radius: 8px;
    font-family: inherit; font-size: 12.5px;
    font-weight: 800; cursor: pointer;
}

.am-comment {
    padding: 14px 0; border-bottom: 1px solid var(--am-line);
    display: flex; gap: 11px;
}
.am-comment:last-child { border-bottom: 0; }
.am-comment-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--am-primary-soft); color: var(--am-primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 14px; font-weight: 800;
}
.am-comment-avatar.tone-warm { background: #FFE8C8; color: #C57A1A; }
.am-comment-avatar.tone-green { background: #DCEDD2; color: #2F7D1F; }
.am-comment-avatar.tone-rose { background: #FCE0E5; color: #C3344C; }
.am-comment-body { flex: 1; min-width: 0; }
.am-comment-meta {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 4px; flex-wrap: wrap;
}
.am-comment-author { font-size: 13px; font-weight: 800; color: var(--am-text); letter-spacing: -0.3px; }
.am-comment-author-tag {
    background: var(--am-primary); color: #fff;
    padding: 2px 6px; border-radius: 4px;
    font-size: 9.5px; font-weight: 800;
}
.am-comment-time { margin-left: auto; font-size: 11px; color: var(--am-muted); font-weight: 600; }
.am-comment-text {
    font-size: 13.5px; color: var(--am-text);
    line-height: 1.6; margin: 0 0 6px;
}
.am-comment-text p { margin: 0 0 6px; }
.am-comment-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.am-comment-action {
    background: transparent; border: 0; padding: 0;
    font-family: inherit; font-size: 11px;
    color: var(--am-muted); font-weight: 700;
    cursor: pointer; display: inline-flex;
    align-items: center; gap: 3px;
}
.am-comment-action.dm { color: var(--am-primary); }
.am-comment-reply { margin-left: 47px; padding-top: 14px; }
.am-comment-private {
    background: rgba(212,164,55,.08); border-radius: 10px;
    padding: 12px; border-bottom: 0 !important;
}

/* ─── 작성 화면 ─── */
.am-board-write { max-width: 1280px; margin: 0 auto; padding: 20px; }
.am-write-main {
    display: grid; grid-template-columns: 1fr 320px;
    gap: 20px; align-items: flex-start;
}
.am-write-form-area { min-width: 0; }
.am-write-aside {
    display: flex; flex-direction: column; gap: 12px;
    position: sticky; top: 20px;
}
.am-write-card {
    background: #fff; border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--am-shadow-sm);
    margin-bottom: 14px;
}
.am-write-label {
    font-size: 13px; font-weight: 800;
    color: var(--am-text); margin-bottom: 10px;
    display: flex; align-items: center; gap: 5px;
    letter-spacing: -0.3px;
}
.am-write-label .required { color: var(--am-live); }
.am-write-label .hint {
    color: var(--am-muted); font-weight: 600;
    font-size: 11.5px; margin-left: auto;
}

.am-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-type-card {
    padding: 16px; background: var(--am-bg);
    border: 2px solid transparent; border-radius: 12px;
    cursor: pointer; transition: all var(--am-dur-fast);
    display: flex; gap: 12px; align-items: center; text-align: left;
}
.am-type-card input { display: none; }
.am-type-card:hover { background: var(--am-primary-faint); }
.am-type-card.selected { background: #fff; }
.am-type-card.selected.offer { border-color: var(--am-offer-fg); }
.am-type-card.selected.seeking { border-color: var(--am-seeking-fg); }
.am-type-card .type-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 20px;
}
.am-type-card.offer .type-icon { background: var(--am-offer-bg); }
.am-type-card.seeking .type-icon { background: var(--am-seeking-bg); }
.am-type-card .type-name {
    font-size: 14px; font-weight: 800; color: var(--am-text);
    margin-bottom: 2px; letter-spacing: -0.4px;
}
.am-type-card .type-desc { font-size: 11.5px; color: var(--am-muted); font-weight: 600; line-height: 1.4; }
.am-type-card.selected.offer .type-name { color: var(--am-offer-fg); }
.am-type-card.selected.seeking .type-name { color: var(--am-seeking-fg); }

.am-write-input, .am-write-textarea, .am-write-select {
    width: 100%; background: var(--am-bg);
    border: 1px solid transparent; border-radius: 10px;
    padding: 11px 13px; font-family: inherit;
    font-size: 13.5px; color: var(--am-text);
    transition: all var(--am-dur-fast);
}
.am-write-input:focus, .am-write-textarea:focus, .am-write-select:focus {
    outline: none; background: #fff;
    border-color: var(--am-primary);
    box-shadow: 0 0 0 3px rgba(69,65,255,.1);
}
.am-write-input::placeholder, .am-write-textarea::placeholder { color: var(--am-muted); }
.am-write-textarea { min-height: 160px; resize: vertical; line-height: 1.65; }
.am-write-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238A8FA5' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
}
.am-write-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-mini-label { font-size: 11.5px; color: var(--am-muted); font-weight: 700; margin-bottom: 4px; }

.am-write-option {
    display: flex; justify-content: space-between;
    align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--am-line);
}
.am-write-option:last-child { border-bottom: 0; }
.am-write-option-name {
    font-size: 13.5px; font-weight: 700;
    color: var(--am-text); letter-spacing: -0.3px;
    margin-bottom: 2px;
}
.am-write-option-desc { font-size: 11.5px; color: var(--am-muted); font-weight: 600; }
.am-toggle { position: relative; display: inline-block; cursor: pointer; }
.am-toggle input { display: none; }
.am-toggle-track {
    width: 40px; height: 22px;
    background: var(--am-border); border-radius: 99px;
    display: block; position: relative;
    transition: background var(--am-dur-fast);
}
.am-toggle-track::after {
    content: ''; width: 16px; height: 16px;
    background: #fff; border-radius: 50%;
    position: absolute; top: 3px; left: 3px;
    transition: left var(--am-dur-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.am-toggle input:checked + .am-toggle-track { background: var(--am-primary); }
.am-toggle input:checked + .am-toggle-track::after { left: 21px; }

/* 카테고리 picker */
.am-picker { background: var(--am-bg); border-radius: 12px; padding: 12px; }
.am-picker-search { position: relative; margin-bottom: 12px; }
.am-picker-search-input {
    width: 100%; height: 38px;
    padding: 0 14px 0 38px;
    background: #fff; border: 1px solid var(--am-border);
    border-radius: 9px; font-family: inherit; font-size: 13px;
}
.am-picker-search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--am-muted); pointer-events: none;
}
.am-picker-selected {
    background: #fff; border-radius: 10px;
    padding: 10px; margin-bottom: 12px;
    border: 1px dashed var(--am-border);
}
.am-picker-selected-head {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 8px;
}
.am-picker-selected-title { font-size: 12px; color: var(--am-text); font-weight: 800; }
.am-picker-selected-title .cnt { color: var(--am-primary); margin-left: 4px; }
.am-picker-hint { font-size: 10.5px; color: var(--am-muted); font-weight: 600; }
.am-picker-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.am-picker-empty { font-size: 11.5px; color: var(--am-muted); padding: 8px 0; text-align: center; width: 100%; }
.am-picker-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--am-primary-faint); color: var(--am-primary);
    padding: 5px 5px 5px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 700;
}
.am-picker-chip.primary { background: var(--am-primary); color: #fff; }
.am-picker-chip .star {
    width: 16px; height: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--am-gold); cursor: pointer; font-size: 12px;
}
.am-picker-chip:not(.primary) .star { color: var(--am-border); }
.am-picker-chip .remove {
    width: 16px; height: 16px;
    background: rgba(69,65,255,.15); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 11px;
}
.am-picker-chip.primary .remove { background: rgba(255,255,255,.4); }

.am-picker-groups { max-height: 340px; overflow-y: auto; }
.am-picker-groups::-webkit-scrollbar { width: 5px; }
.am-picker-groups::-webkit-scrollbar-thumb { background: var(--am-border); border-radius: 99px; }

.am-picker-group { background: #fff; border-radius: 10px; margin-bottom: 4px; overflow: hidden; }
.am-picker-group-head {
    display: flex; align-items: center;
    justify-content: space-between; padding: 11px 14px;
    cursor: pointer; user-select: none; gap: 9px;
}
.am-picker-group-head:hover { background: var(--am-primary-faint); }
.am-picker-group-head-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.am-picker-group-icon {
    width: 28px; height: 28px; border-radius: 7px;
    background: var(--am-primary-faint);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.am-picker-group-name { font-size: 13px; font-weight: 700; color: var(--am-text); letter-spacing: -0.3px; }
.am-picker-group-count { font-size: 11px; color: var(--am-muted); font-weight: 700; }
.am-picker-group.has-selection .am-picker-group-icon { background: var(--am-primary); color: #fff; }
.am-picker-group.has-selection .am-picker-group-count { color: var(--am-primary); font-weight: 800; }
.am-picker-group-arrow {
    color: var(--am-muted); font-size: 11px;
    transition: transform var(--am-dur-fast);
}
.am-picker-group.open .am-picker-group-arrow { transform: rotate(180deg); }
.am-picker-group-subs { display: none; padding: 0 14px 12px; flex-wrap: wrap; gap: 5px; }
.am-picker-group.open .am-picker-group-subs { display: flex; }
.am-picker-sub {
    padding: 5px 12px; background: var(--am-bg);
    border: 1px solid var(--am-border); color: var(--am-text-sub);
    border-radius: 99px; font-family: inherit;
    font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.am-picker-sub.selected {
    background: var(--am-primary); color: #fff;
    border-color: var(--am-primary); font-weight: 700;
}

/* 업로더 */
.am-uploader {
    border: 2px dashed var(--am-border); border-radius: 12px;
    background: var(--am-bg); padding: 28px 16px;
    text-align: center; cursor: pointer;
    transition: all var(--am-dur-fast);
    position: relative;
}
.am-uploader:hover, .am-uploader.dragover {
    border-color: var(--am-primary); background: var(--am-primary-faint);
}
.am-uploader-icon {
    width: 50px; height: 50px; margin: 0 auto 10px;
    background: var(--am-primary-faint); color: var(--am-primary);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 22px;
}
.am-uploader-text { font-size: 13.5px; font-weight: 800; color: var(--am-text); margin-bottom: 5px; }
.am-uploader-hint { font-size: 11.5px; color: var(--am-muted); font-weight: 600; line-height: 1.5; }

.am-upload-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.am-upload-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--am-bg);
    border-radius: 10px;
}
.am-upload-item-icon {
    width: 34px; height: 34px; border-radius: 7px;
    background: #fff; color: var(--am-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.am-upload-item-info { flex: 1; min-width: 0; }
.am-upload-item-name {
    font-size: 12.5px; font-weight: 800; color: var(--am-text);
    letter-spacing: -0.3px; margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.am-upload-item-size { font-size: 10.5px; color: var(--am-muted); font-weight: 600; }
.am-upload-item-progress {
    width: 80px; height: 4px;
    background: var(--am-border); border-radius: 99px;
    overflow: hidden; margin-top: 4px;
}
.am-upload-item-progress-fill { height: 100%; background: var(--am-primary); transition: width .2s; }
.am-upload-item-toggle {
    font-size: 10.5px; color: var(--am-text-sub);
    background: #fff; border: 1px solid var(--am-border);
    border-radius: 6px; padding: 4px 9px;
    cursor: pointer; font-weight: 700; flex-shrink: 0;
}
.am-upload-item-toggle.public { background: var(--am-success); color: #fff; border-color: var(--am-success); }
.am-upload-item-remove {
    background: transparent; border: 0; color: var(--am-muted);
    cursor: pointer; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 16px;
}
.am-upload-item-remove:hover { background: rgba(255,59,92,.1); color: var(--am-live); }

/* 작성 사이드 */
.am-write-aside-card {
    background: #fff; border-radius: 12px;
    padding: 16px; box-shadow: var(--am-shadow-sm);
}
.am-write-aside-title {
    font-size: 13px; font-weight: 800;
    color: var(--am-text); margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.am-write-submit-row { display: flex; gap: 7px; }
.am-submit-btn {
    flex: 1; height: 46px; border-radius: 11px; border: 0;
    font-family: inherit; font-size: 13.5px;
    font-weight: 800; cursor: pointer; letter-spacing: -0.3px;
}
.am-submit-btn.draft { background: var(--am-primary-faint); color: var(--am-text); }
.am-submit-btn.publish { background: var(--am-primary); color: #fff; box-shadow: var(--am-shadow-primary); }
.am-submit-msg {
    margin-top: 10px; font-size: 12px; font-weight: 700;
    text-align: center; min-height: 14px;
}
.am-submit-msg.error { color: var(--am-live); }
.am-submit-msg.success { color: var(--am-success); }

.am-write-trust-banner {
    background: linear-gradient(135deg, var(--am-primary-soft), var(--am-primary-faint));
    border-radius: 10px; padding: 11px 12px;
    display: flex; align-items: center; gap: 10px;
    font-size: 18px;
}
.am-write-trust-banner > div { font-size: 11.5px; color: var(--am-text); font-weight: 700; line-height: 1.4; }
.am-write-tip-list {
    font-size: 12px; color: var(--am-text-sub);
    font-weight: 600; line-height: 1.65;
    padding-left: 18px; margin: 0;
}
.am-write-tip-list li { margin-bottom: 5px; }
.am-write-r2-info {
    background: var(--am-bg); border-radius: 8px; padding: 10px;
    font-size: 11px; color: var(--am-muted);
    font-weight: 600; line-height: 1.5;
}
.am-write-r2-info code {
    background: #fff; padding: 1px 6px;
    border-radius: 4px; font-size: 10.5px;
    color: var(--am-primary); font-weight: 700;
}
/* ─── 마이페이지 ─── */
.am-mypage { max-width: 1280px; margin: 0 auto; padding: 0 20px 60px; }
.am-mypage-hero { padding-top: 28px; }
.am-mypage-hero-inner {
    display: flex; justify-content: space-between;
    align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.am-mypage-profile { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; }
.am-mypage-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
}
.am-mypage-avatar.tone-1 { background: var(--am-primary-soft); color: var(--am-primary); }
.am-mypage-avatar.tone-2 { background: #FFE8C8; color: #C57A1A; }
.am-mypage-avatar.tone-3 { background: #DCEDD2; color: #2F7D1F; }
.am-mypage-avatar.tone-4 { background: #FCE0E5; color: #C3344C; }
.am-mypage-avatar.tone-5 { background: #E5DFFB; color: #6843C9; }

.am-mypage-name { font-size: 20px; font-weight: 900; color: var(--am-text); letter-spacing: -0.6px; margin: 0; }
.am-mypage-stats-line {
    font-size: 12px; color: var(--am-text-sub);
    font-weight: 600; margin-top: 6px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.am-mypage-cta { flex-shrink: 0; }

.am-mypage-tabs {
    display: flex; gap: 4px;
    background: #fff; border-radius: 12px;
    padding: 4px; box-shadow: var(--am-shadow-sm);
    margin-bottom: 20px; overflow-x: auto;
}
.am-mypage-tab {
    flex: 1; min-width: 120px;
    padding: 10px 14px; background: transparent;
    border-radius: 9px; color: var(--am-text-sub);
    font-family: inherit; font-size: 13px;
    font-weight: 700; text-decoration: none;
    text-align: center; letter-spacing: -0.3px;
    white-space: nowrap;
}
.am-mypage-tab:hover { background: var(--am-primary-faint); color: var(--am-text); }
.am-mypage-tab.active { background: var(--am-primary); color: #fff; font-weight: 800; }

.am-mypage-content { min-height: 300px; }
.am-mypage-list { display: flex; flex-direction: column; gap: 10px; }
.am-mypage-item {
    background: #fff; border-radius: 12px;
    padding: 16px 18px; box-shadow: var(--am-shadow-sm);
}
.am-mypage-item-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px; flex-wrap: wrap;
}
.am-mypage-status {
    padding: 3px 9px; border-radius: 5px;
    font-size: 10.5px; font-weight: 800;
    letter-spacing: -0.2px;
    background: var(--am-primary-faint); color: var(--am-text-sub);
}
.am-mypage-status.status-published { background: rgba(22,163,74,.1); color: var(--am-success); }
.am-mypage-status.status-draft { background: rgba(15,16,36,.07); color: var(--am-muted); }
.am-mypage-status.status-paused { background: rgba(245,158,11,.15); color: var(--am-warning); }
.am-mypage-status.status-matched { background: rgba(69,65,255,.12); color: var(--am-primary); }
.am-mypage-status.status-hidden { background: rgba(255,59,92,.1); color: var(--am-live); }
.am-mypage-status.status-accepted { background: rgba(22,163,74,.1); color: var(--am-success); }
.am-mypage-status.status-rejected { background: rgba(255,59,92,.1); color: var(--am-live); }
.am-mypage-status.status-pending { background: rgba(245,158,11,.15); color: var(--am-warning); }
.am-mypage-status.status-reviewed { background: rgba(69,65,255,.1); color: var(--am-primary); }
.am-mypage-item-title {
    display: block;
    font-size: 15.5px; font-weight: 800;
    color: var(--am-text); letter-spacing: -0.4px;
    line-height: 1.4; margin-bottom: 8px;
    text-decoration: none;
}
.am-mypage-item-title:hover { color: var(--am-primary); }
.am-mypage-item-meta {
    display: flex; gap: 12px;
    font-size: 11.5px; color: var(--am-muted);
    font-weight: 700; margin-bottom: 10px; flex-wrap: wrap;
}
.am-mypage-item-msg {
    background: var(--am-bg); border-radius: 8px;
    padding: 9px 11px; margin-bottom: 10px;
    font-size: 12.5px; color: var(--am-text-sub);
    line-height: 1.5;
}
.am-mypage-item-msg small {
    display: block; color: var(--am-muted);
    font-weight: 700; margin-bottom: 3px;
}
.am-mypage-item-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
}

/* ─── 둘러보기 ─── */
.am-browse-body { max-width: 1280px; margin: 0 auto; padding: 20px; }
.am-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.am-browse-item {
    position: relative;
}
.am-match-score {
    position: absolute; top: 8px; right: 8px;
    z-index: 5;
    background: var(--am-primary); color: #fff;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: var(--am-shadow-primary);
}
.am-match-score .score-num {
    font-size: 17px; font-weight: 900; letter-spacing: -0.5px; line-height: 1;
}
.am-match-score .score-lbl {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.5px; margin-top: 2px;
}

/* ─── 반응형 (모바일) ─── */
@media (max-width: 1023px) {
    /* 3-column → 1-column */
    .am-board-main,
    .am-single-main,
    .am-write-main {
        grid-template-columns: 1fr;
        padding: 12px 12px 80px;
        gap: 12px;
    }
    .am-sidebar, .am-aside, .am-single-aside, .am-write-aside { position: static; }
    .am-sidebar { display: none; }
    .am-aside { order: 2; }
    .am-board { order: 1; }
    .am-type-toggle-bar { display: flex; }
    .am-card-grid { grid-template-columns: 1fr; }
    .am-fab { display: inline-block; }

    .am-page-hero-inner { padding: 22px 16px 20px; }
    .am-page-title { font-size: 21px; }
    .am-page-subtitle { font-size: 12.5px; }
    .am-page-stats { gap: 16px; }
    .am-page-stat .num { font-size: 17px; }
    .am-page-cta { width: 100%; }
    .am-page-cta .am-btn { flex: 1; justify-content: center; }

    .am-single-info-mobile { display: block; }
    .am-single-aside { display: none; }
    .am-single-hero { padding: 20px; }
    .am-single-title { font-size: 20px; }
    .am-single-content { padding: 18px; font-size: 13.5px; }
    .am-single-attach { padding: 16px 18px; }
    .am-single-actions { padding: 10px; position: sticky; bottom: 0; z-index: 50; }
    .am-action-btn { height: 38px; padding: 0 10px; font-size: 11.5px; }
    .am-action-btn.primary { font-size: 12.5px; }

    .am-comments { padding: 16px 18px; }
    .am-comment-tab { font-size: 13px; margin-right: 16px; }
    .am-comment-reply { margin-left: 36px; }

    .am-write-card { padding: 16px 18px; }
    .am-type-cards { grid-template-columns: 1fr; }
    .am-type-card { padding: 14px; }
    .am-write-row-2 { grid-template-columns: 1fr; }

    .am-mypage { padding: 0 12px 60px; }
    .am-mypage-tabs { font-size: 12px; }
    .am-mypage-tab { padding: 9px 10px; font-size: 12px; min-width: 100px; }
    .am-mypage-item { padding: 14px; }
    .am-mypage-item-title { font-size: 14.5px; }

    .am-browse-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .am-page-title { font-size: 19px; }
    .am-page-stats { gap: 12px; }
    .am-card-head { padding: 12px 14px 8px; }
    .am-card-body { padding: 0 14px 10px; }
    .am-card-foot { padding: 9px 14px; }
    .am-card-title { font-size: 14px; min-height: 39px; }
    .am-card-excerpt { font-size: 12px; }
    .am-card-tag { font-size: 10px; padding: 2px 7px; }
    .am-card-avatar { width: 28px; height: 28px; font-size: 11px; }
    .am-card-author-name { font-size: 11.5px; }
    .am-single-title { font-size: 18px; }
    .am-comment-input { font-size: 13px; }
    .am-fab { right: 14px; bottom: 14px; padding: 10px 16px; font-size: 12.5px; }
}

/* ─── 애니메이션 ─── */
@keyframes amFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.am-card, .am-single-hero, .am-write-card, .am-mypage-item {
    animation: amFadeUp .35s var(--am-ease) both;
}
.am-card:nth-child(2) { animation-delay: .04s; }
.am-card:nth-child(3) { animation-delay: .08s; }
.am-card:nth-child(4) { animation-delay: .12s; }
.am-card:nth-child(5) { animation-delay: .16s; }
.am-card:nth-child(6) { animation-delay: .2s; }

/* ─── 토스트 알림 ─── */
.am-toast-container {
    position: fixed; top: 20px; right: 20px;
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.am-toast {
    background: #fff; color: var(--am-text);
    padding: 12px 16px; border-radius: 10px;
    box-shadow: var(--am-shadow-md);
    font-size: 13px; font-weight: 700;
    letter-spacing: -0.3px;
    min-width: 200px; max-width: 360px;
    pointer-events: auto;
    animation: amFadeUp .25s var(--am-ease) both;
    border-left: 4px solid var(--am-primary);
}
.am-toast.success { border-left-color: var(--am-success); color: var(--am-success); }
.am-toast.error { border-left-color: var(--am-live); color: var(--am-live); }
.am-toast.info { border-left-color: var(--am-primary); }

@media (max-width: 480px) {
    .am-toast-container { top: 12px; right: 12px; left: 12px; }
    .am-toast { min-width: 0; max-width: 100%; }
}

/* ═════════════════════════════════════════════
 * Phase 5: 매칭 분해, 평점, 하이라이트, 모달
 * ═════════════════════════════════════════════ */

/* ─── 매칭 점수 분해 ─── */
.am-match-breakdown {
    display: flex; gap: 18px; align-items: center;
    padding: 14px; background: var(--am-bg);
    border-radius: 12px;
}
.am-match-breakdown.compact { padding: 10px; gap: 12px; }
.am-match-donut { flex-shrink: 0; }
.am-match-donut svg { display: block; }

.am-match-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.am-match-bar { font-size: 11.5px; }
.am-match-bar-row {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 3px;
}
.am-match-bar-dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0;
}
.am-match-bar-label {
    color: var(--am-text); font-weight: 700;
    letter-spacing: -0.2px; flex: 1;
}
.am-match-bar-weight {
    color: var(--am-muted); font-weight: 700;
    font-size: 10px;
}
.am-match-bar-score {
    color: var(--am-text); font-weight: 900;
    font-size: 12px; min-width: 22px; text-align: right;
}
.am-match-bar-track {
    height: 5px; background: var(--am-border);
    border-radius: 99px; overflow: hidden;
}
.am-match-bar-fill {
    height: 100%; border-radius: 99px;
    transition: width .6s var(--am-ease);
}

/* ─── 둘러보기 상단 카드 ─── */
.am-browse-top { margin-bottom: 24px; }
.am-browse-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}
.am-browse-top-item {
    background: #fff; border-radius: 14px;
    padding: 18px; box-shadow: var(--am-shadow-md);
    position: relative;
    border: 2px solid var(--am-primary-soft);
}
.am-browse-top-rank {
    position: absolute; top: -10px; left: 16px;
    background: var(--am-primary); color: #fff;
    padding: 4px 12px; border-radius: 99px;
    font-size: 12px; font-weight: 900; letter-spacing: -0.3px;
    box-shadow: var(--am-shadow-primary);
}
.am-browse-top-title {
    display: block; text-decoration: none;
    color: inherit; margin-bottom: 14px;
}
.am-browse-top-title h3 {
    font-size: 15.5px; font-weight: 800;
    color: var(--am-text); letter-spacing: -0.4px;
    line-height: 1.4; margin: 6px 0 0;
}
.am-browse-top-title:hover h3 { color: var(--am-primary); }

/* ─── 하이라이트 슬롯 ─── */
.am-highlight-section {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(212,164,55,.08), rgba(69,65,255,.04));
    border: 1px solid rgba(212,164,55,.2);
    border-radius: 14px;
}
.am-highlight-section .am-section-title {
    color: var(--am-gold); font-size: 14px;
}
.am-highlight-grid {
    grid-template-columns: 1fr 1fr !important;
}
.am-highlight-wrap { position: relative; }
.am-highlight-badge {
    position: absolute; top: 8px; right: 8px;
    z-index: 5;
    background: linear-gradient(135deg, #D4A437, #E8B847);
    color: #fff;
    font-size: 10.5px; font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(212,164,55,.4);
    letter-spacing: -0.2px;
}

/* ─── 평점 통계 카드 ─── */
.am-review-stats-card {
    background: linear-gradient(135deg, var(--am-primary-faint), #fff);
    border: 1px solid var(--am-line);
    border-radius: 14px; padding: 22px;
    margin-bottom: 14px;
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 24px; align-items: center;
}
.am-review-stats-main { text-align: center; }
.am-review-stats-avg .big-num {
    font-size: 42px; font-weight: 900;
    color: var(--am-primary); letter-spacing: -1.5px;
    line-height: 1;
}
.am-review-stats-avg .of {
    font-size: 16px; color: var(--am-muted);
    font-weight: 700; margin-left: 4px;
}
.am-review-stats-stars {
    color: var(--am-gold); font-size: 18px;
    letter-spacing: 2px; margin: 6px 0;
}
.am-review-stats-count {
    font-size: 12.5px; color: var(--am-text-sub);
    font-weight: 700;
}
.am-review-stats-bars { display: flex; flex-direction: column; gap: 6px; }
.am-review-dist-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 11.5px;
}
.am-review-dist-label {
    color: var(--am-text-sub); font-weight: 700;
    min-width: 20px;
}
.am-review-dist-track {
    flex: 1; height: 8px;
    background: var(--am-border);
    border-radius: 99px; overflow: hidden;
}
.am-review-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--am-gold), #E8B847);
    border-radius: 99px;
    transition: width .6s var(--am-ease);
}
.am-review-dist-count {
    color: var(--am-muted); font-weight: 700;
    min-width: 22px; text-align: right;
}

.am-review-aspects-card {
    background: #fff; border-radius: 12px;
    padding: 18px; margin-bottom: 14px;
    box-shadow: var(--am-shadow-sm);
}
.am-review-aspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px; margin-top: 10px;
}
.am-review-aspect-stat {
    text-align: center; padding: 10px;
    background: var(--am-bg); border-radius: 10px;
}
.am-review-aspect-stat-label {
    font-size: 11px; color: var(--am-muted);
    font-weight: 700; margin-bottom: 4px;
    letter-spacing: -0.2px;
}
.am-review-aspect-stat-value {
    font-size: 18px; font-weight: 900;
    color: var(--am-primary); letter-spacing: -0.4px;
}

.am-review-stars-display {
    color: var(--am-gold);
    font-size: 13.5px;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.am-review-stars-display .rating-num {
    margin-left: 8px;
    color: var(--am-text);
    font-size: 12px;
    letter-spacing: -0.2px;
}

.am-review-cta-banner {
    position: sticky; bottom: 16px;
    margin: 16px auto 0; max-width: 1280px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark));
    color: #fff; border-radius: 14px;
    box-shadow: var(--am-shadow-primary);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; font-size: 13.5px; font-weight: 700;
    z-index: 30;
}
.am-review-cta-banner .am-btn { background: #fff; color: var(--am-primary); }
.am-review-cta-banner .am-btn:hover { background: var(--am-primary-faint); }

/* ─── 평점 모달 ─── */
.am-review-modal {
    position: fixed; inset: 0;
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.am-review-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15,16,36,.55);
    backdrop-filter: blur(4px);
}
.am-review-modal-content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: 100%; max-width: 540px;
    max-height: 90vh; overflow-y: auto;
    padding: 28px 26px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: amFadeUp .3s var(--am-ease) both;
}
.am-review-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    background: var(--am-bg); border: 0; border-radius: 50%;
    color: var(--am-muted); cursor: pointer;
    font-size: 18px; line-height: 1;
}
.am-review-modal-close:hover { background: var(--am-primary-soft); color: var(--am-primary); }

.am-review-modal-head { margin-bottom: 22px; }
.am-review-modal-title {
    font-size: 19px; font-weight: 900;
    color: var(--am-text); letter-spacing: -0.5px;
    margin: 0 0 4px;
}
.am-review-modal-sub {
    font-size: 13px; color: var(--am-text-sub);
    font-weight: 600; margin: 0;
}

.am-review-section { margin-bottom: 18px; }
.am-review-label {
    font-size: 13px; font-weight: 800;
    color: var(--am-text); margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.am-review-label .required { color: var(--am-live); }
.am-review-label-hint {
    display: block; font-weight: 600;
    color: var(--am-muted); font-size: 11px;
    margin-top: 2px;
}

.am-review-stars {
    display: flex; gap: 4px; align-items: center;
    flex-wrap: wrap;
}
.am-review-star {
    width: 38px; height: 38px;
    background: var(--am-bg); border: 1.5px solid transparent;
    border-radius: 9px;
    color: var(--am-border); font-size: 22px;
    cursor: pointer; transition: all var(--am-dur-fast);
    line-height: 1;
}
.am-review-star.active,
.am-review-star:hover {
    color: var(--am-gold);
    background: #fff;
    border-color: var(--am-gold);
    transform: scale(1.05);
}
.am-review-stars-text {
    margin-left: 10px;
    font-size: 12.5px; font-weight: 700;
    color: var(--am-muted); letter-spacing: -0.2px;
}

.am-review-aspect {
    display: flex; justify-content: space-between;
    align-items: center; padding: 8px 0;
    border-bottom: 1px solid var(--am-line);
}
.am-review-aspect:last-child { border-bottom: 0; }
.am-review-aspect-label {
    font-size: 12.5px; color: var(--am-text);
    font-weight: 700; letter-spacing: -0.2px;
    flex: 1;
}
.am-review-aspect-rating {
    display: flex; gap: 3px;
}
.am-review-aspect-rating input { display: none; }
.am-review-aspect-rating label {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--am-bg); border-radius: 6px;
    color: var(--am-muted); font-size: 11.5px;
    font-weight: 700; cursor: pointer;
    transition: all var(--am-dur-fast);
}
.am-review-aspect-rating label:hover { background: var(--am-primary-faint); color: var(--am-primary); }
.am-review-aspect-rating input:checked + label {
    background: var(--am-primary); color: #fff; font-weight: 800;
}

.am-review-checkbox {
    display: flex; align-items: center; gap: 9px;
    cursor: pointer; user-select: none;
    font-size: 12.5px; color: var(--am-text); font-weight: 700;
}
.am-review-checkbox input { display: none; }
.am-review-checkbox .checkbox-box {
    width: 18px; height: 18px;
    border: 1.5px solid var(--am-border);
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: all var(--am-dur-fast);
}
.am-review-checkbox input:checked + .checkbox-box {
    background: var(--am-primary);
    border-color: var(--am-primary);
}
.am-review-checkbox input:checked + .checkbox-box::after {
    content: '✓'; color: #fff; font-size: 13px; font-weight: 800;
    position: absolute; top: -3px; left: 3px;
}
.am-review-help {
    font-size: 11px; color: var(--am-muted);
    font-weight: 600; margin: 5px 0 0 27px; line-height: 1.5;
}

.am-review-textarea {
    width: 100%; min-height: 90px;
    background: var(--am-bg);
    border: 1px solid transparent;
    border-radius: 10px; padding: 11px 13px;
    font-family: inherit; font-size: 13px;
    color: var(--am-text); resize: vertical;
    line-height: 1.55;
}
.am-review-textarea:focus {
    outline: none; background: #fff;
    border-color: var(--am-primary);
    box-shadow: 0 0 0 3px rgba(69,65,255,.1);
}

.am-review-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 14px;
}
.am-review-msg {
    margin-top: 10px; text-align: center;
    font-size: 12.5px; font-weight: 700; min-height: 14px;
}
.am-review-msg.error { color: var(--am-live); }
.am-review-msg.success { color: var(--am-success); }

@media (max-width: 1023px) {
    .am-match-breakdown { flex-direction: column; align-items: stretch; }
    .am-match-donut { align-self: center; }
    .am-browse-top-grid { grid-template-columns: 1fr; }
    .am-review-stats-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .am-review-stats-avg .big-num { font-size: 36px; }
    .am-highlight-grid { grid-template-columns: 1fr !important; }
    .am-review-aspect { flex-direction: column; align-items: stretch; gap: 6px; }
    .am-review-aspect-rating { justify-content: space-between; }
}
@media (max-width: 480px) {
    .am-review-modal { padding: 12px; }
    .am-review-modal-content { padding: 22px 18px 18px; }
    .am-review-modal-title { font-size: 17px; }
}

/* ═════════════════════════════════════════════
 * Phase 6: 조인지수 + 광고 + 추천 + 프로필 위젯
 * ═════════════════════════════════════════════ */

/* ─── 조인지수 카드 (마이페이지) ─── */
.am-mypage-cta {
    display: flex; gap: 12px;
    align-items: stretch; flex-wrap: wrap;
}
.am-mypage-joyn-card {
    background: #fff;
    border: 1px solid var(--am-line);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 160px;
    text-align: center;
    box-shadow: var(--am-shadow-sm);
}
.am-mypage-joyn-label {
    font-size: 10px;
    color: var(--am-muted);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.am-mypage-joyn-score {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.1;
}
.am-mypage-joyn-score small {
    font-size: 13px;
    font-weight: 700;
    color: var(--am-muted);
    margin-left: 2px;
}
.am-mypage-joyn-tier {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin-top: 2px;
}
.am-mypage-joyn-gauge {
    margin-top: 8px;
    height: 5px;
    background: var(--am-border);
    border-radius: 99px;
    overflow: hidden;
}
.am-mypage-joyn-gauge-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .6s var(--am-ease);
}

/* ─── 카테고리 자동 추천 ─── */
.am-suggest-bar {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 10px;
    flex-wrap: wrap;
}
.am-suggest-hint {
    font-size: 11px;
    color: var(--am-muted);
    font-weight: 600;
}
.am-suggest-results {
    background: linear-gradient(135deg, var(--am-primary-faint), #fff);
    border: 1px solid var(--am-line);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.am-suggest-results-head {
    font-size: 12px;
    font-weight: 800;
    color: var(--am-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.am-suggest-list {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.am-suggest-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--am-primary-soft);
    color: var(--am-text);
    padding: 6px 11px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--am-dur-fast);
}
.am-suggest-item:hover {
    background: var(--am-primary);
    color: #fff;
    border-color: var(--am-primary);
    transform: translateY(-1px);
}
.am-suggest-item.added {
    background: var(--am-success);
    color: #fff;
    border-color: var(--am-success);
    cursor: default;
}
.am-suggest-item-parent {
    color: var(--am-muted);
    font-size: 10.5px;
    font-weight: 600;
}
.am-suggest-item.added .am-suggest-item-parent {
    color: rgba(255,255,255,.85);
}

/* ─── 광고 슬롯 ─── */
.am-ad-slot {
    position: relative;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--am-shadow-sm);
    min-height: 80px;
}
.am-ad-slot-label {
    position: absolute;
    top: 6px; right: 8px;
    font-size: 9px;
    color: var(--am-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    background: rgba(255,255,255,.85);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}
.am-ad-slot-content {
    padding: 14px;
}
.am-ad-slot-content img { max-width: 100%; height: auto; display: block; }

/* ─── 프로필 위젯 ─── */
.am-profile-widget {
    background: #fff;
    border: 1px solid var(--am-line);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--am-shadow-sm);
    font-family: "Pretendard Variable", "Pretendard", sans-serif;
    letter-spacing: -0.2px;
}
.am-profile-widget *, .am-profile-widget *::before, .am-profile-widget *::after {
    box-sizing: border-box;
}
.am-profile-widget.compact { padding: 14px; }

.am-profile-widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.am-profile-widget-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--am-text);
    letter-spacing: -0.3px;
}
.am-profile-widget-blacklist {
    background: rgba(255,59,92,.1);
    color: var(--am-live);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
}

/* 조인지수 메인 */
.am-profile-widget-joyn {
    background: linear-gradient(135deg, var(--am-primary-faint), #fff);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
}
.am-profile-widget-joyn-main { text-align: center; }
.am-profile-widget-joyn-label {
    font-size: 10px;
    color: var(--am-muted);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.am-profile-widget-joyn-score {
    font-size: 34px;
    font-weight: 900;
    color: var(--am-text);
    letter-spacing: -1px;
    line-height: 1;
}
.am-profile-widget-joyn-max {
    font-size: 14px;
    color: var(--am-muted);
    font-weight: 700;
    margin-left: 3px;
}
.am-profile-widget-joyn-tier {
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: -0.2px;
}

.am-profile-widget-joyn-gauge { width: 100%; }
.am-profile-widget-joyn-gauge-track {
    width: 100%; height: 10px;
    background: var(--am-border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}
.am-profile-widget-joyn-gauge-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .8s var(--am-ease);
}
.am-profile-widget-joyn-next {
    font-size: 11px;
    color: var(--am-text-sub);
    font-weight: 700;
    text-align: center;
}
.am-profile-widget-joyn-next strong {
    color: var(--am-primary);
    font-weight: 900;
}

/* 통계 그리드 */
.am-profile-widget-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--am-line);
    border-bottom: 1px solid var(--am-line);
    margin-bottom: 14px;
}
.am-profile-widget-stat {
    text-align: center;
}
.am-profile-widget-stat .num {
    font-size: 18px;
    font-weight: 900;
    color: var(--am-primary);
    letter-spacing: -0.4px;
    line-height: 1.1;
}
.am-profile-widget-stat .lbl {
    font-size: 10.5px;
    color: var(--am-muted);
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: -0.2px;
}

/* 받은 후기 */
.am-profile-widget-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--am-text);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.am-profile-widget-review {
    padding: 9px 0;
    border-bottom: 1px solid var(--am-line);
}
.am-profile-widget-review:last-child { border-bottom: 0; }
.am-profile-widget-review-stars {
    color: var(--am-gold);
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 3px;
}
.am-profile-widget-review-reviewer {
    margin-left: 8px;
    font-size: 11.5px;
    color: var(--am-text-sub);
    font-weight: 700;
    letter-spacing: -0.2px;
}
.am-profile-widget-review-text {
    font-size: 12px;
    color: var(--am-text-sub);
    line-height: 1.55;
    font-weight: 600;
}

.am-profile-widget-actions {
    margin-top: 12px;
    text-align: right;
}

@media (max-width: 480px) {
    .am-profile-widget-joyn { grid-template-columns: 1fr; }
    .am-profile-widget-stats { grid-template-columns: repeat(2, 1fr); }
    .am-mypage-joyn-card { min-width: 100%; }
}

/* ═════════════════════════════════════════════
 * Phase 8: ACTS / MISSION 모듈 브릿지 위젯
 * ═════════════════════════════════════════════ */

.am-bridge-section {
    margin: 24px 0;
    font-family: "Pretendard Variable", "Pretendard", sans-serif;
    letter-spacing: -0.2px;
}
.am-bridge-section *,
.am-bridge-section *::before,
.am-bridge-section *::after {
    box-sizing: border-box;
}

/* ─── MISSION (단체) 위젯 ─── */
.am-mission-widget {
    background: #fff;
    border: 1px solid var(--am-line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--am-shadow-sm);
}

.am-mission-widget-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.am-mission-widget-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--am-text);
    letter-spacing: -0.4px;
    margin: 0;
}
.am-mission-widget-warn {
    background: rgba(255,59,92,.1);
    color: var(--am-live);
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
}

.am-mission-widget-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--am-line);
}
.am-mission-widget-joyn {
    background: linear-gradient(135deg, var(--am-primary-faint), #fff);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.am-mission-widget-joyn-label {
    font-size: 10px;
    color: var(--am-muted);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.am-mission-widget-joyn-score {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}
.am-mission-widget-joyn-score small {
    font-size: 13px;
    color: var(--am-muted);
    font-weight: 700;
    margin-left: 3px;
}
.am-mission-widget-joyn-tier {
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.am-mission-widget-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.am-mission-stat {
    text-align: center;
    padding: 10px;
    background: var(--am-bg);
    border-radius: 10px;
}
.am-mission-stat .num {
    font-size: 20px;
    font-weight: 900;
    color: var(--am-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}
.am-mission-stat .lbl {
    font-size: 11px;
    color: var(--am-muted);
    font-weight: 700;
    margin-top: 5px;
}

/* 모집 글 */
.am-mission-widget-offers,
.am-mission-widget-reviews {
    margin-bottom: 16px;
}
.am-mission-widget-section-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--am-text);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.am-mission-offer-item {
    display: block;
    padding: 11px 13px;
    background: var(--am-bg);
    border-radius: 10px;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
    transition: all var(--am-dur-fast);
}
.am-mission-offer-item:hover {
    background: var(--am-primary-faint);
    transform: translateX(2px);
}
.am-mission-offer-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--am-text);
    letter-spacing: -0.3px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.am-mission-offer-star { color: var(--am-gold); }
.am-mission-offer-meta {
    font-size: 11px;
    color: var(--am-muted);
    font-weight: 600;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.am-mission-offer-more {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 11.5px;
    color: var(--am-primary);
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    background: var(--am-primary-faint);
}

/* 받은 평점 */
.am-mission-review {
    padding: 9px 0;
    border-bottom: 1px solid var(--am-line);
}
.am-mission-review:last-child { border-bottom: 0; }
.am-mission-review-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.am-mission-review-stars {
    color: var(--am-gold);
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.am-mission-review-reviewer {
    font-size: 11.5px;
    color: var(--am-text-sub);
    font-weight: 700;
}
.am-mission-review-text {
    font-size: 12px;
    color: var(--am-text-sub);
    line-height: 1.55;
    font-weight: 600;
}

.am-mission-widget-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── ACTS 모듈 위젯 (이미 profile-widget으로 처리됨, 섹션 래퍼만) ─── */
.am-acts-section { /* am-bridge-section 상속 */ }

/* ─── 사역자/단체 카드 뱃지 ─── */
.am-tier-exemplary {
    background: rgba(212,164,55,.15) !important;
    color: var(--am-gold) !important;
}
.am-tier-active {
    background: rgba(22,163,74,.1) !important;
    color: var(--am-success) !important;
}
.am-tier-regular {
    background: var(--am-primary-faint) !important;
    color: var(--am-primary) !important;
}
.am-tier-observing {
    background: rgba(245,158,11,.15) !important;
    color: var(--am-warning) !important;
}
.am-badge-matched {
    background: rgba(69,65,255,.1) !important;
    color: var(--am-primary) !important;
}
.am-badge-offer {
    background: var(--am-offer-bg) !important;
    color: var(--am-offer-fg) !important;
}

@media (max-width: 768px) {
    .am-mission-widget-grid {
        grid-template-columns: 1fr;
    }
    .am-mission-widget-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .am-mission-widget { padding: 16px; }
    .am-mission-widget-joyn-score { font-size: 28px; }
}

/* ═════════════════════════════════════════════
 * Phase 9: 마이페이지 허브 통합 배너
 * ═════════════════════════════════════════════ */
.am-mypage-hub-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--am-primary-faint), #fff);
    border: 1px solid var(--am-primary-soft);
    border-radius: 12px;
    font-size: 13px;
}
.am-mypage-hub-banner-text {
    color: var(--am-text-sub); font-weight: 600; letter-spacing: -0.2px;
}
.am-mypage-hub-banner-text strong {
    color: var(--am-primary); font-weight: 900;
}
.am-mypage-hub-banner-btn {
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    background: var(--am-primary); color: #fff !important;
    border-radius: 8px;
    font-size: 12px; font-weight: 800; text-decoration: none;
    flex-shrink: 0;
    transition: all var(--am-dur-fast);
}
.am-mypage-hub-banner-btn:hover {
    background: var(--am-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--am-shadow-primary);
}
@media (max-width: 480px) {
    .am-mypage-hub-banner { padding: 10px 14px; font-size: 12px; }
    .am-mypage-hub-banner-text { flex: 1; min-width: 0; }
}
