:root {
    --bg: #f5f6f4;
    --surface: #ffffff;
    --surface-muted: #eef0ec;
    --text: #242522;
    --text-soft: #656861;
    --line: #dfe1dc;
    --line-strong: #c8cbc4;
    --primary: #dc5a49;
    --primary-dark: #b94134;
    --primary-soft: #fff0ec;
    --teal: #316b64;
    --teal-soft: #e8f2ef;
    --gold: #9d7121;
    --gold-soft: #fff5dc;
    --danger: #a9352c;
    --danger-soft: #fff0ed;
    --shadow: 0 8px 28px rgba(29, 32, 27, 0.07);
    --radius: 8px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: clip;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
main { min-width: 0; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow-container { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-160%); padding: 10px 14px; background: var(--text); color: #fff; border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; height: 68px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--container), calc(100% - 40px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 30px; }
.brand { flex: none; display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 154px; height: 48px; background: transparent url('../images/peoplit-logo-transparent.png') center / contain no-repeat; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: 3px; }
.nav-link { position: relative; display: grid; place-items: center; padding: 0 14px; color: var(--text-soft); font-weight: 650; font-size: 14px; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: transparent; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { background: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.header-user { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; }
.site-header .mobile-menu-button { display: none; }
.mobile-nav-actions { display: none; }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: -6px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 9px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 800; }
.suspension-bar { background: #442b28; color: #fff; }
.suspension-bar .container { min-height: 42px; display: flex; align-items: center; gap: 9px; font-size: 13px; }

.button, button.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 0 17px; cursor: pointer; font-weight: 750; font-size: 14px; white-space: nowrap; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled, .button.disabled { pointer-events: none; opacity: .48; transform: none; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: var(--text); color: #fff; }
.button-outline { background: #fff; border-color: var(--line-strong); color: var(--text); }
.button-outline:hover { border-color: var(--text); }
.button-light { background: #fff; border-color: #fff; color: var(--text); }
.button-ghost { background: transparent; color: var(--text-soft); }
.button-danger { background: var(--danger); color: #fff; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 13px; }
.button-full { width: 100%; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
.icon-button:hover { background: var(--surface-muted); }
.text-button { border: 0; padding: 7px 4px; background: transparent; color: var(--text-soft); cursor: pointer; font-size: 13px; font-weight: 700; }
.text-button:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }

.flash-stack { position: fixed; z-index: 150; top: 82px; left: 50%; width: min(540px, calc(100% - 32px)); transform: translateX(-50%); display: grid; gap: 8px; }
.flash { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); font-size: 14px; }
.flash span { flex: 1; }
.flash-success { border-color: #9fc7bb; background: #f1faf7; color: #215f55; }
.flash-warning { border-color: #e1ca8b; background: #fff9e9; color: #725013; }
.flash-danger { border-color: #e1aaa3; background: #fff2ef; color: #8c3027; }

.page-section { padding: 38px 0 72px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header h1, .page-title { margin: 0; font-size: 29px; line-height: 1.28; }
.page-header p { margin: 7px 0 0; color: var(--text-soft); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.section-title { margin: 0 0 16px; font-size: 20px; line-height: 1.35; }
.section-subtitle { margin: -9px 0 18px; color: var(--text-soft); font-size: 14px; }
.content-section + .content-section { margin-top: 38px; }

.intro-band { background: #f2f4f1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-inner { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 40px; align-items: center; padding-block: 24px; }
.intro-copy { padding-left: 16px; border-left: 3px solid #c7a26f; }
.intro-copy .eyebrow { color: var(--primary-dark); }
.intro-copy h1 { max-width: 650px; margin: 5px 0 7px; font-size: 28px; line-height: 1.3; }
.intro-copy p { margin: 0; font-size: 14px; }
.intro-stats { background: #fff; }
.schedule-directory { background: #fff; }
.intro-copy p { margin: 0; max-width: 650px; color: var(--text-soft); font-size: 14px; }
.intro-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.intro-stat { min-width: 0; min-height: 68px; padding: 11px 12px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border-left: 1px solid var(--line); }
.intro-stat:first-child { border-left: 0; }
.intro-stat strong { font-size: 18px; line-height: 1; white-space: nowrap; }
.intro-stat span { color: var(--text-soft); font-size: 11px; white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.portal-hero { position: relative; min-height: 410px; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: #30342f; color: #fff; background-image: var(--portal-hero-image); background-size: cover; background-position: center; }
.portal-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18,21,18,.56); }
.portal-hero-inner { padding-block: 54px; }
.portal-hero .eyebrow { color: #fff; }
.portal-hero h1 { margin: 10px 0 5px; font-size: 50px; line-height: 1.05; }
.portal-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.88); font-size: 17px; }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.portal-hero.has-brand-image { width: min(var(--container), calc(100% - 40px)); min-height: 0; aspect-ratio: 1983 / 793; margin-inline: auto; background-color: #5d4e41; background-position: center; background-repeat: no-repeat; background-size: cover; }
.portal-hero.has-brand-image::before { background: linear-gradient(0deg, rgba(39, 28, 20, .38) 0%, rgba(39, 28, 20, .1) 22%, transparent 48%); }
.portal-hero.has-brand-image .portal-hero-inner { width: 100%; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; margin: 0; padding: 0 0 24px; }
.portal-hero.has-brand-image .portal-hero-actions { margin-top: 0; }
.portal-member-band { border-bottom: 1px solid var(--line); background: #fff; }
.portal-member-summary { min-height: 92px; display: grid; grid-template-columns: 170px 170px minmax(0,1fr); }
.portal-member-summary > a { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 22px; border-left: 1px solid var(--line); }
.portal-member-summary > a:first-child { border-left: 0; }
.portal-member-summary span { color: var(--text-soft); font-size: 11px; }
.portal-member-summary strong { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; }
.portal-member-summary small { color: var(--text-soft); font-size: 11px; }
.portal-content { margin-top: 0; padding: 36px 0 66px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.portal-section-head { align-items: center; }
.portal-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.portal-event-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.portal-event-media { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #e8ebe6; color: var(--text-soft); }
.portal-event-media img { width: 100%; height: 100%; object-fit: cover; }
.portal-event-media > span:first-child svg { width: 34px; height: 34px; }
.portal-event-date { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 4px; background: rgba(25,28,25,.82); color: #fff; font-size: 11px; font-weight: 800; }
.event-media-overlay { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 12px; background: rgba(31,34,31,.48); color: #fff; font-size: 16px; font-weight: 850; text-align: center; letter-spacing: 0; pointer-events: none; }
.event-media-overlay.closed { background: rgba(112,78,29,.52); }
.event-media-overlay.completed { background: rgba(31,34,31,.62); }
.portal-event-body { padding: 17px; }
.portal-event-body h3 { margin: 10px 0 6px; overflow-wrap: anywhere; font-size: 18px; line-height: 1.4; }
.portal-event-body p { margin: 0; color: var(--text-soft); font-size: 12px; }
.portal-seat-row { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 12px; }
.portal-seat-group { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 8px; }
.portal-seat-group > span:first-child { white-space: nowrap; }
.portal-seat-group strong { color: var(--text); }
.portal-seat-icons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; color: #d5d9d3; }
.portal-seat-icons svg { width: 13px; height: 13px; stroke-width: 2.3; }
.portal-seat-group.male .portal-seat-icons .occupied { color: var(--teal); }
.portal-seat-group.female .portal-seat-icons .occupied { color: var(--primary); }
.portal-community-band { padding: 42px 0 54px; border-top: 1px solid var(--line); background: #fff; }
.portal-community-grid { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); gap: 54px; align-items: start; }
.portal-community-grid h2 { margin: 8px 0 6px; font-size: 26px; }
.portal-community-grid > div:first-child p { margin: 0 0 18px; color: var(--text-soft); }
.portal-post-list { border-top: 2px solid var(--text); }
.portal-post-list > a { min-width: 0; min-height: 62px; display: grid; grid-template-columns: 86px minmax(0,1fr) 42px; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.portal-post-list > a > span, .portal-post-list > a > small { color: var(--text-soft); font-size: 11px; }
.portal-post-list > a > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-post-list > a > small { text-align: right; }

.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-tabs { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { flex: none; min-height: 38px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 0 13px; background: #fff; color: var(--text-soft); font-size: 13px; font-weight: 700; }
.filter-tab:hover, .filter-tab.active { border-color: var(--text); color: var(--text); background: var(--surface-muted); }

.schedule-list { display: grid; gap: 12px; }
.schedule-card { display: grid; grid-template-columns: 176px minmax(0,1fr) 250px 150px; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.schedule-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.schedule-media { position: relative; min-height: 154px; display: grid; place-items: center; overflow: hidden; background: #e9ece7; color: var(--text-soft); border-right: 1px solid var(--line); }
.schedule-media img { width: 100%; height: 100%; object-fit: cover; }
.schedule-media-placeholder svg { width: 34px; height: 34px; }
.schedule-date-chip { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 4px; background: rgba(31,34,31,.84); color: #fff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.schedule-date-chip strong { font-size: 15px; line-height: 1; }
.schedule-date { padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #ecefea; border-right: 1px solid var(--line); text-align: center; }
.schedule-date strong { font-size: 30px; line-height: 1; }
.schedule-date span { margin-top: 7px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.schedule-main { min-width: 0; padding: 20px 22px; }
.schedule-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.schedule-main h2 { margin: 0 0 9px; font-size: 19px; line-height: 1.4; }
.schedule-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--text-soft); font-size: 13px; }
.schedule-meta span { display: inline-flex; align-items: center; gap: 5px; }
.schedule-capacity { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 12px; border-left: 1px solid var(--line); }
.capacity-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.capacity-row strong { font-size: 12px; }
.capacity-track { height: 7px; background: var(--surface-muted); border-radius: 4px; overflow: hidden; }
.capacity-fill { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.capacity-row.female .capacity-fill { background: var(--primary); }
.schedule-cta { padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 7px; border-left: 1px solid var(--line); }
.schedule-cta small { text-align: center; color: var(--text-soft); font-size: 11px; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 8px; border-radius: 12px; background: var(--surface-muted); color: var(--text-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-recruiting, .badge-approved, .badge-available, .badge-confirmed { background: var(--teal-soft); color: var(--teal); }
.badge-closed, .badge-warning, .badge-waiting, .badge-pending { background: var(--gold-soft); color: var(--gold); }
.badge-cancelled, .badge-rejected, .badge-suspended, .badge-no_show { background: var(--danger-soft); color: var(--danger); }
.badge-scheduled, .badge-completed, .badge-used { background: #eceeea; color: #555851; }
.badge-in_progress, .badge-reserved { background: var(--primary-soft); color: var(--primary-dark); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 18px; }
.panel-header p { margin: 4px 0 0; color: var(--text-soft); font-size: 13px; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list > li { padding: 14px 0; border-top: 1px solid var(--line); }
.plain-list > li:first-child { border-top: 0; padding-top: 0; }
.plain-list > li:last-child { padding-bottom: 0; }
.empty-state { min-height: 220px; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.55); padding: 30px; }
.empty-state svg { width: 30px; height: 30px; color: var(--text-soft); }
.empty-state h2, .empty-state h3 { margin: 12px 0 5px; font-size: 17px; }
.empty-state p { margin: 0 0 16px; color: var(--text-soft); }

.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; align-items: start; }
.detail-main { display: grid; gap: 16px; }
.detail-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.event-carousel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e7ebe6; }
.event-carousel-track, .event-carousel-slide { position: absolute; inset: 0; margin: 0; }
.event-carousel-slide { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.event-carousel-slide.active { opacity: 1; pointer-events: auto; }
.event-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-button { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(27,30,27,.72); color: #fff; cursor: pointer; }
.carousel-button.previous { left: 14px; }
.carousel-button.next { right: 14px; }
.carousel-dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: flex; gap: 7px; transform: translateX(-50%); }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(20,22,20,.45); cursor: pointer; }
.carousel-dot.active { background: #fff; }
.detail-hero { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.detail-hero-top { min-height: 188px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-top: 3px solid #c7a26f; background: #f8f5ef; border-bottom: 1px solid var(--line); }
.detail-hero h1 { margin: 9px 0 0; max-width: 680px; font-size: 30px; line-height: 1.3; }
.detail-body { padding: 26px 30px; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-info { min-height: 88px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-info dt { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.detail-info dd { margin: 0; font-weight: 700; }
.prose { color: #42443f; white-space: pre-line; }
.prose p:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.sticky-apply .ticket-balance { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ticket-balance strong { font-size: 22px; }
.apply-note { margin: 10px 0 0; color: var(--text-soft); font-size: 12px; }
.ratio-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.ratio-cell { padding: 13px; background: var(--surface-muted); border-radius: 6px; }
.ratio-cell span { display: block; color: var(--text-soft); font-size: 11px; }
.ratio-cell strong { display: block; margin-top: 3px; font-size: 16px; }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 30px; }
.form-section + .form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h2 { margin: 0 0 5px; font-size: 18px; }
.form-section > p { margin: 0 0 18px; color: var(--text-soft); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-field { min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.form-label small { color: var(--text-soft); font-weight: 500; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input, .select { height: 46px; padding: 0 12px; }
.textarea { min-height: 130px; resize: vertical; padding: 12px; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(49,107,100,.12); }
.input[readonly] { background: var(--surface-muted); color: var(--text-soft); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.field-help { margin: 6px 0 0; color: var(--text-soft); font-size: 12px; }
.checkbox-row, .radio-row { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.check-control { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; }
.check-control input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.community-editor { min-height: 320px; }
.event-image-manager { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.event-image-manage-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); }
.event-image-manage-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-image-controls { display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: end; gap: 12px; padding: 12px; }
.delete-photo-control { min-height: 46px; align-items: center; color: var(--danger); }
.event-photo-upload { padding: 16px; border: 1px dashed var(--line-strong); border-radius: 6px; }
.file-input { height: auto; min-height: 46px; padding: 9px 10px; }
.auth-layout { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,560px); }
.auth-aside { padding: 64px max(40px,8vw); display: flex; flex-direction: column; justify-content: center; background: #e9ece7; border-right: 1px solid var(--line); }
.auth-aside h1 { max-width: 560px; margin: 12px 0; font-size: 38px; line-height: 1.28; }
.auth-aside p { max-width: 560px; color: var(--text-soft); font-size: 16px; }
.auth-points { display: grid; gap: 12px; margin-top: 30px; }
.auth-point { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.auth-point span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.auth-main { display: flex; align-items: center; padding: 48px; background: #fff; }
.auth-form { width: 100%; max-width: 430px; margin: auto; }
.auth-form h2 { margin: 0 0 6px; font-size: 27px; }
.auth-form > p { margin: 0 0 26px; color: var(--text-soft); }
.auth-form .form-field + .form-field { margin-top: 16px; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--text-soft); font-size: 13px; }
.auth-footer a { color: var(--primary-dark); font-weight: 750; }
.dev-code { margin-top: 8px; padding: 11px 13px; border: 1px solid #d9bd76; border-radius: 6px; background: var(--gold-soft); color: #704c08; font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.metric { min-height: 122px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric span { color: var(--text-soft); font-size: 12px; }
.metric strong { display: block; margin-top: 12px; font-size: 26px; line-height: 1; }
.metric small { display: block; margin-top: 8px; color: var(--text-soft); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr); gap: 16px; align-items: start; }
.metric-grid + .dashboard-grid { margin-top: 16px; }
.menu-list { display: grid; gap: 8px; }
.menu-link { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.menu-link:hover { border-color: var(--line-strong); }
.menu-link > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-muted); color: var(--teal); }
.menu-link strong { display: block; font-size: 14px; }
.menu-link small { display: block; color: var(--text-soft); font-size: 11px; }
.menu-link > svg { margin-left: auto; color: var(--text-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { padding: 12px 14px; background: var(--surface-muted); border-bottom: 1px solid var(--line); text-align: left; color: var(--text-soft); font-size: 11px; }
.data-table td { padding: 13px 14px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.data-table tr:first-child td { border-top: 0; }
.data-table .actions { display: flex; gap: 6px; justify-content: flex-end; }

.community-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; align-items: start; }
.community-sidebar { position: sticky; top: 92px; }
.community-news { margin-bottom: 34px; padding: 24px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); }
.community-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.community-news-head h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.25; }
.community-news-list { border-top: 1px solid var(--line); }
.community-news-item { min-width: 0; display: grid; grid-template-columns: 94px minmax(0,1fr) 82px 20px; align-items: center; gap: 12px; min-height: 54px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.community-news-item:hover { background: var(--surface-muted); }
.community-news-item > span { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-dark); font-size: 11px; font-weight: 800; }
.community-news-item > span svg { width: 14px; height: 14px; }
.community-news-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.community-news-item time { color: var(--text-soft); font-size: 12px; text-align: right; }
.community-news-item > svg { width: 17px; height: 17px; color: var(--text-soft); }
.community-news-empty { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 9px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 13px; }
.community-news-empty svg { width: 18px; height: 18px; }
.category-nav { display: grid; gap: 4px; }
.category-nav a { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; color: var(--text-soft); font-size: 13px; font-weight: 700; }
.category-nav a:hover, .category-nav a.active { background: var(--surface); color: var(--text); }
.post-list { border-top: 2px solid var(--text); }
.post-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 100px 92px; gap: 16px; align-items: center; min-height: 72px; padding: 12px 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.post-row:hover { background: #fff; }
.post-title { min-width: 0; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-title small { margin-left: 6px; color: var(--primary-dark); }
.post-meta { color: var(--text-soft); font-size: 12px; }
.post-detail { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.post-head { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.post-head h1 { margin: 8px 0 10px; font-size: 26px; }
.post-body { min-height: 260px; padding: 30px 26px; white-space: pre-wrap; line-height: 1.85; }
.comments { margin-top: 18px; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.comment-body { white-space: pre-wrap; }
.post-action-footer { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }
.report-details { display: inline-block; max-width: 100%; }
.report-details[open] { width: min(340px,100%); }
.report-form { width: 100%; margin-top: 8px; }
.report-form .button { margin-top: 8px; }
.comment-actions { min-width: 0; text-align: right; }
.comment-compose { margin-top: 18px; }

.ticket-dashboard { grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); }
.ticket-side { display: grid; align-content: start; gap: 14px; }
.ticket-side .panel + .panel { margin-top: 0; }
.ticket-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ticket-summary-grid > div { min-width: 0; min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 13px 15px; border-left: 1px solid var(--line); }
.ticket-summary-grid > div:first-child { border-left: 0; }
.ticket-summary-grid span { color: var(--text-soft); font-size: 11px; }
.ticket-summary-grid strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 18px; line-height: 1.25; }
.ticket-wallet-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ticket-wallet-row { padding: 16px; border-top: 1px solid var(--line); }
.ticket-wallet-row:first-child { border-top: 0; }
.ticket-wallet-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.ticket-wallet-main > div { min-width: 0; }
.ticket-wallet-main h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; }
.ticket-wallet-main p { margin: 3px 0 0; color: var(--text-soft); font-size: 12px; }
.ticket-refund-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ticket-refund-panel > summary { width: max-content; color: var(--primary-dark); cursor: pointer; font-size: 13px; font-weight: 750; white-space: nowrap; }
.ticket-refund-panel form { margin-top: 12px; }
.refund-form-grid { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; align-items: end; gap: 10px; }
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading-row .section-title { margin-bottom: 12px; }
.ticket-history-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ticket-history-item { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ticket-history-item:first-child { border-top: 0; }
.history-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-muted); color: var(--teal); }
.history-main { min-width: 0; }
.history-main strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.history-main p { margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-size: 12px; }
.history-main time { color: var(--text-soft); font-size: 10px; }
.history-side { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; white-space: nowrap; }
.history-side > strong { font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 18px; }
.pagination-link { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text-soft); font-size: 12px; font-weight: 750; white-space: nowrap; }
.pagination-link.active { border-color: var(--text); background: var(--text); color: #fff; }
.pagination-link.disabled { pointer-events: none; opacity: .4; }
.form-field-spaced { margin-top: 12px; }
.bank-account-box { margin-top: 14px; padding: 14px; border-radius: 6px; background: var(--surface-muted); }
.bank-account-box span, .bank-account-box small { display: block; color: var(--text-soft); font-size: 11px; }
.bank-account-box strong { display: block; margin: 4px 0; overflow-wrap: anywhere; }
.bank-account-box .text-button { margin-top: 3px; }
.compact-empty { min-height: 180px; }

.profile-overview { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 24px; }
.profile-photo { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); color: var(--text-soft); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo svg { width: 34px; height: 34px; }
.profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-field { padding: 13px; border: 1px solid var(--line); border-radius: 6px; }
.profile-field span { display: block; color: var(--text-soft); font-size: 11px; }
.profile-field strong { display: block; margin-top: 3px; font-size: 14px; }
.participant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.participant-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }
.participant-card .profile-photo { width: 100%; }
.participant-card h3 { margin: 13px 0 2px; font-size: 16px; }
.participant-card > p { margin: 0 0 12px; color: var(--text-soft); font-size: 12px; }

.chat-shell { height: min(680px,calc(100vh - 180px)); min-height: 500px; display: grid; grid-template-columns: 230px minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.chat-sidebar { padding: 18px; border-right: 1px solid var(--line); background: var(--surface-muted); overflow-y: auto; }
.chat-sidebar h2 { margin: 0 0 4px; font-size: 16px; }
.chat-sidebar p { margin: 0 0 16px; color: var(--text-soft); font-size: 11px; }
.chat-member { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; }
.avatar { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.chat-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.chat-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head h1 { margin: 0; font-size: 16px; }
.chat-head p { margin: 2px 0 0; color: var(--text-soft); font-size: 11px; }
.chat-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: #fafbf9; }
.chat-message { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; max-width: 75%; margin-bottom: 16px; }
.chat-message.mine { margin-left: auto; grid-template-columns: minmax(0,1fr); }
.message-content { min-width: 0; }
.message-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text-soft); font-size: 10px; }
.message-bubble { display: inline-block; max-width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.mine .message-bubble { background: var(--teal); color: #fff; border-color: var(--teal); }
.message-tools { display: inline-flex; margin-left: 4px; opacity: .5; }
.chat-compose { flex: none; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-compose form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-compose .input { min-width: 0; }
.chat-profile-link { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.chat-profile-link:hover { color: var(--primary-dark); text-decoration-color: currentColor; }

.participant-profile-detail { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.participant-profile-detail .profile-overview { padding: 24px; }
.participant-profile-detail h2 { margin: 9px 0 4px; font-size: 22px; }
.participant-profile-detail .profile-overview p { margin: 0; color: var(--text-soft); }
.participant-profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.participant-profile-fields > div { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.participant-profile-fields dt { margin-bottom: 5px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.participant-profile-fields dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.participant-profile-introduction { padding: 22px 24px 26px; }
.participant-profile-introduction h2 { margin: 0 0 9px; font-size: 16px; }
.participant-profile-introduction p { margin: 0; color: #42443f; line-height: 1.75; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { flex: none; min-height: 42px; padding: 0 12px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; color: var(--text-soft); font-size: 13px; font-weight: 750; }
.tab.active { border-bottom-color: var(--primary); color: var(--text); }
.admin-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #c6d8d3; border-radius: var(--radius); background: var(--teal-soft); }
.admin-callout strong { display: block; font-size: 13px; }
.admin-callout span { color: var(--teal); font-size: 12px; }

.legal { max-width: 820px; }
.legal h1 { margin: 0 0 26px; font-size: 30px; }
.legal h2 { margin: 30px 0 8px; font-size: 18px; }
.legal p, .legal li { color: #4f524c; }
.legal-note { padding: 15px; border: 1px solid #e0c987; border-radius: 6px; background: var(--gold-soft); color: #6d4e12; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 142px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner strong { font-size: 17px; }
.footer-inner p { margin: 4px 0 0; color: var(--text-soft); font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-soft); font-size: 12px; }

@media (max-width: 1040px) {
    .schedule-card { grid-template-columns: 150px minmax(0,1fr) 225px; }
    .schedule-cta { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: flex-end; padding: 12px 18px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
    .schedule-cta .button { min-width: 150px; }
    .header-user { display: none; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .site-header { height: 62px; }
    .header-inner { width: min(100% - 28px,var(--container)); gap: 12px; }
    .site-header .mobile-menu-button { display: inline-grid; order: 3; }
    .main-nav { position: fixed; inset: 62px 0 auto 0; height: auto; display: none; padding: 14px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .nav-link { min-height: 45px; justify-content: start; padding: 0 12px; border-radius: 6px; }
    .nav-link::after { display: none; }
    .nav-link.active { background: var(--surface-muted); }
    .mobile-nav-actions { display: grid; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
    .mobile-nav-actions form { margin: 0; }
    .mobile-nav-actions .nav-link { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
    .header-actions { margin-left: auto; }
    .header-actions > .text-button, .header-actions > .button, .header-actions > .inline-form { display: none; }
    .intro-inner { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding-block: 32px; }
    .intro-stats { width: min(100%,480px); }
    .intro-copy h1 { font-size: 29px; }
    .portal-event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-event-card:last-child { display: none; }
    .portal-community-grid { grid-template-columns: 1fr; gap: 24px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .community-layout { grid-template-columns: 1fr; }
    .community-sidebar { position: static; }
    .category-nav { grid-template-columns: repeat(4,auto); overflow-x: auto; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-aside { min-height: 270px; padding: 36px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
    .auth-aside h1 { font-size: 28px; }
    .auth-points { grid-template-columns: repeat(3,1fr); gap: 8px; }
    .auth-point { align-items: flex-start; flex-direction: column; font-size: 11px; }
    .auth-main { padding: 36px 24px; }
    .participant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-info { min-height: 66px; padding: 10px 12px; }
    .detail-info dt { gap: 5px; margin-bottom: 3px; font-size: 11px; }
    .detail-info dt svg { width: 14px; height: 14px; }
    .detail-info dd { font-size: 13px; line-height: 1.35; }
}

@media (max-width: 680px) {
    .container, .narrow-container { width: min(100% - 28px,var(--container)); }
    .page-section { padding: 26px 0 54px; }
    .portal-content { margin-top: 0; padding: 28px 0 48px; }
    .page-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .page-header h1, .page-title { font-size: 24px; }
    .page-actions { width: 100%; justify-content: flex-start; }
    .filter-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; }
    .filter-tab { justify-content: center; padding-inline: 8px; }
    .category-nav { grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
    .category-nav a { justify-content: center; }
    .community-news { margin-bottom: 26px; padding: 20px 0; }
    .community-news-head { align-items: center; margin-bottom: 12px; }
    .community-news-head h2 { font-size: 21px; }
    .community-news-item { grid-template-columns: 76px minmax(0,1fr) 18px; gap: 8px; min-height: 58px; }
    .community-news-item time { display: none; }
    .community-news-item > span { font-size: 10px; }
    .tabs { flex-wrap: wrap; overflow: visible; }
    .portal-hero { min-height: 390px; }
    .portal-hero.has-brand-image { width: 100%; min-height: 270px; aspect-ratio: auto; background-size: cover; }
    .portal-hero.has-brand-image .portal-hero-inner { padding: 0 16px 18px; }
    .portal-hero-inner { padding-block: 42px; }
    .portal-hero h1 { font-size: 40px; }
    .portal-hero p { font-size: 15px; }
    .portal-member-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-member-summary > a { min-height: 76px; padding: 13px 14px; }
    .portal-member-summary .next-event { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
    .portal-event-grid { grid-template-columns: 1fr; }
    .portal-event-card:last-child { display: block; }
    .portal-community-band { padding: 34px 0 42px; }
    .portal-post-list > a { grid-template-columns: 72px minmax(0,1fr) 36px; gap: 8px; }
    .intro-inner { width: min(100% - 28px,var(--container)); }
    .intro-copy h1 { font-size: 25px; }
    .intro-copy p { font-size: 14px; }
    .intro-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .intro-stat { min-width: 0; padding: 15px 10px; }
    .intro-stat strong { font-size: 18px; }
    .schedule-card { grid-template-columns: 1fr; }
    .schedule-media { grid-column: 1; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .schedule-main { padding: 16px; }
    .schedule-main h2 { font-size: 17px; }
    .schedule-meta { display: grid; gap: 5px; }
    .schedule-capacity { grid-column: 1; padding: 13px 16px; border-left: 0; border-top: 1px solid var(--line); }
    .schedule-cta { grid-column: 1 / -1; padding: 12px; border-left: 0; }
    .schedule-cta .button { flex: 1; min-width: 0; }
    .detail-hero-top { min-height: 150px; padding: 22px; }
    .detail-hero h1 { font-size: 24px; }
    .detail-body { padding: 20px; }
    .detail-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-info { min-height: 62px; padding: 9px 10px; }
    .detail-info dd { font-size: 12px; }
    .panel, .form-card { padding: 19px; }
    .panel + .panel { margin-top: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .form-actions { justify-content: stretch; }
    .form-actions .button { flex: 1; }
    .event-image-manager { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .metric-grid + .dashboard-grid { margin-top: 12px; }
    .dashboard-grid { gap: 12px; }
    .metric { min-height: 105px; padding: 15px; }
    .metric strong { font-size: 22px; }
    .post-row { grid-template-columns: 72px minmax(0,1fr); gap: 10px; }
    .post-row .post-meta:nth-last-child(-n+2) { display: none; }
    .post-head, .post-body { padding: 20px; }
    .post-action-footer { justify-content: stretch; padding: 13px 18px; }
    .post-action-footer .report-details[open] { width: 100%; }
    .comment-head { display: grid; grid-template-columns: 1fr; }
    .comment-actions { width: 100%; }
    .comment-actions .report-details[open] { display: block; width: 100%; }
    .participant-grid { grid-template-columns: 1fr; }
    .ticket-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ticket-summary-grid > div { border-top: 1px solid var(--line); }
    .ticket-summary-grid > div:nth-child(odd) { border-left: 0; }
    .ticket-summary-grid > div:nth-child(-n+2) { border-top: 0; }
    .refund-form-grid { grid-template-columns: 1fr; }
    .refund-form-grid .button { width: 100%; }
    .ticket-history-item { grid-template-columns: 36px minmax(0,1fr); align-items: start; padding: 13px; }
    .history-side { grid-column: 2; align-items: center; flex-direction: row; justify-content: space-between; }
    .history-main p { white-space: normal; overflow-wrap: anywhere; }
    .profile-overview { grid-template-columns: 100px minmax(0,1fr); gap: 15px; }
    .profile-fields { grid-template-columns: 1fr; }
    .chat-shell { height: calc(100vh - 130px); min-height: 500px; grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }
    .chat-message { max-width: 88%; }
    .footer-inner { min-height: 170px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 20px; }
    .auth-aside { display: none; }
    .auth-main { min-height: calc(100vh - 62px); }

    .table-wrap { overflow: visible; border: 0; background: transparent; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; min-width: 0; }
    .data-table thead { display: none; }
    .data-table tr { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
    .data-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 6px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
    .data-table td::before { content: attr(data-label); flex: none; color: var(--text-soft); font-size: 11px; font-weight: 700; text-align: left; }
    .data-table td.actions { justify-content: flex-end; flex-wrap: wrap; }
    .data-table td.actions::before { display: none; }
    .data-table td:last-child:has(details) { display: block; text-align: left; }
    .data-table td details { display: block; width: 100%; max-width: 100%; }
    .data-table td details + details { margin-top: 7px; }
    .data-table td details form { width: 100% !important; max-width: 100%; }
}

@media (max-width: 430px) {
    .brand-logo { width: 130px; height: 42px; }
    .intro-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .intro-stat { min-height: 64px; padding: 9px 7px; border-top: 0; border-left: 1px solid var(--line); align-items: flex-start; }
    .intro-stat:first-child { border-left: 0; }
    .intro-stat strong { font-size: 17px; }
    .intro-stat span { font-size: 10px; }
    .detail-info { min-height: 58px; padding: 8px 9px; }
    .detail-info dt { font-size: 10px; }
    .detail-info dd { font-size: 11px; }
    .input-group { flex-direction: column; }
    .input-group .button { width: 100%; }
    .profile-overview { grid-template-columns: 1fr; }
    .profile-photo { width: 120px; }
    .page-actions .button { width: 100%; }
    .portal-hero-actions { display: grid; grid-template-columns: 1fr; }
    .portal-hero.has-brand-image .portal-hero-actions { width: min(300px, calc(100% - 32px)); }
    .portal-hero-actions .button { width: 100%; }
    .form-actions { display: grid; grid-template-columns: 1fr; }
    .form-actions .button { width: 100%; }
    .event-image-controls { grid-template-columns: 90px minmax(0,1fr); }
    .pagination-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
