:root {
    --background: #f4f5f7;
    --surface: #ffffff;
    --sidebar: #171820;
    --sidebar-hover: #252732;
    --text: #1b1d24;
    --muted: #757985;
    --border: #e4e6eb;
    --accent: #f97c1b;
    --success: #32b67a;
    --danger: #e05252;
}

.member-profile-link:hover { color: #ad4e09; }
.member-profile-link:focus-visible { outline: 3px solid #f4ac70; outline-offset: 4px; border-radius: 8px; }
.member-mobile-toggle > .member-mobile-chevron { border: 0; background: transparent; color: inherit; min-height: 44px; cursor: pointer; font: inherit; }

@media (max-width: 760px) {
    body:has(.member-detail-page, .member-management-page) .sidebar { padding: 14px 16px; }
    body:has(.member-detail-page, .member-management-page) .sidebar-brand { margin-bottom: 12px; }
    body:has(.member-detail-page, .member-management-page) .sidebar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
    body:has(.member-detail-page, .member-management-page) .sidebar nav a { padding: 11px 3px; text-align: center; font-size: 11px; }
    body:has(.member-detail-page, .member-management-page) .sidebar .logout-link { margin-top: 8px; padding: 4px; font-size: 11px; align-self: flex-end; }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    background: var(--sidebar);
    color: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand span {
    margin-top: 3px;
    color: #9699a5;
    font-size: 13px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
}

.brand-mark.small {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #b8bac4;
    font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.logout-link {
    margin-top: auto;
    padding: 12px 14px;
    color: #aaaeba;
    font-size: 14px;
}

.dashboard-main {
    width: 100%;
    max-width: 1450px;
    padding: 42px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.page-eyebrow {
    color: var(--accent) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.status-card,
.dashboard-panel {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 25px rgba(25, 28, 36, 0.04);
}

.status-card {
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 21px;
}

.status-card strong {
    font-size: 22px;
}

.card-label {
    color: var(--muted);
    font-size: 13px;
}

.status-online {
    color: var(--success);
}

.status-offline {
    color: var(--danger);
}

.dashboard-panel {
    padding: 25px;
}

.panel-header h2 {
    margin: 0 0 7px;
}

.panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logout-link {
        margin-top: 20px;
    }

    .dashboard-main {
        padding: 24px;
    }

    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--sidebar);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border: 1px solid #30323d;
    border-radius: 20px;
    background: #1e1f27;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.login-logo img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.login-card h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 28px;
}

.login-card p {
    margin: 0 0 24px;
    color: #aeb1bc;
    line-height: 1.6;
}

.discord-login-button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    background: #5865f2;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.discord-login-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.discord-login-button:active {
    transform: translateY(0);
}

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(224, 82, 82, 0.35);
    border-radius: 9px;
    background: rgba(224, 82, 82, 0.12);
    color: #ff9b9b;
    font-size: 14px;
    line-height: 1.5;
}

/* ---------------- 명령어 목록 ---------------- */

.command-section {
    margin-bottom: 22px;
}

.command-list {
    margin-top: 22px;
    border-top: 1px solid var(--border);
}

.command-item {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 2fr) minmax(210px, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px 2px;
    border-bottom: 1px solid var(--border);
}

.command-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-name {
    color: var(--accent);
    font-weight: 800;
}

.command-description {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.command-usage {
    display: block;
    padding: 9px 11px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f7f7f9;
    color: #555a66;
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}

.admin-badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(249, 124, 27, 0.12);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.ai-guide-section {
    margin-top: 24px;
}

.ai-guide-section .panel-header code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f4f5f7;
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 12px;
}

.ai-guide-section .command-name {
    color: var(--accent);
}

@media (max-width: 700px) {
    .ai-guide-section {
        margin-top: 18px;
    }
}

/* ---------------- 통계 ---------------- */

.statistics-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.period-buttons {
    display: flex;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.period-button {
    padding: 8px 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.period-button:hover {
    color: var(--text);
}

.period-button.active {
    background: var(--accent);
    color: #ffffff;
}

.period-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.period-navigation strong {
    min-width: 240px;
    text-align: center;
}

.period-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 21px;
}

.period-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.statistics-summary-grid,
.activity-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.statistics-summary-card,
.activity-highlight-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 25px rgba(25, 28, 36, 0.04);
}

.statistics-summary-card {
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 21px;
}

.statistics-summary-card strong {
    font-size: 23px;
}

.statistics-summary-card > span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.statistics-card-icon {
    font-size: 20px;
}

.activity-highlight-card {
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 21px;
}

.activity-highlight-card > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.activity-highlight-card strong {
    margin: 10px 0 7px;
    font-size: 21px;
}

.activity-highlight-card small {
    color: #9699a5;
    font-size: 11px;
    line-height: 1.5;
}

.statistics-chart-panel {
    min-height: 280px;
    margin-bottom: 20px;
}

.chart-empty-state {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fafafd;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ---------------- 반응형 ---------------- */

@media (max-width: 1100px) {
    .statistics-summary-grid,
    .activity-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .command-item {
        grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 2fr);
    }

    .command-usage {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .statistics-header {
        align-items: stretch;
        flex-direction: column;
    }

    .period-buttons {
        width: 100%;
    }

    .period-button {
        flex: 1;
    }

    .statistics-summary-grid,
    .activity-highlight-grid {
        grid-template-columns: 1fr;
    }

    .period-navigation strong {
        min-width: 0;
        flex: 1;
        font-size: 13px;
    }

    .command-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .command-usage {
        grid-column: auto;
    }
}

/* ---------------- 대시보드 홈 ---------------- */

.status-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-card-icon {
    font-size: 19px;
    line-height: 1;
}

.dashboard-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.overview-panel {
    min-height: 350px;
}

.lower-dashboard-grid {
    align-items: stretch;
}

.operations-panel {
    min-width: 0;
    height: 430px;
    display: flex;
    flex-direction: column;
}

.dashboard-card-header {
    flex: 0 0 auto;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.dashboard-card-header h2 {
    font-size: 20px;
}

.dashboard-metric-list {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.dashboard-metric-item {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border);
}

.dashboard-metric-item:last-child {
    border-bottom: 0;
}

.dashboard-metric-item strong {
    flex: 0 0 auto;
    font-size: 17px;
    text-align: right;
}

.dashboard-metric-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.metric-icon {
    width: 24px;
    text-align: center;
    font-size: 17px;
}

.admin-check-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 5px;
}

.admin-check-item {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-check-item:last-child {
    border-bottom: 0;
}

.admin-check-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.admin-check-item strong {
    flex: 0 0 auto;
    font-size: 15px;
}

.recent-activity-scroll {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    margin-top: 4px;
    padding-right: 8px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c6c9d1 transparent;
}

.recent-activity-scroll::-webkit-scrollbar {
    width: 7px;
}

.recent-activity-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.recent-activity-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c6c9d1;
}

.recent-activity-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--border);
}

.recent-activity-item:last-child {
    border-bottom: 0;
}

.recent-activity-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f4f5f7;
    font-size: 17px;
}

.recent-activity-content {
    min-width: 0;
}

.recent-activity-content strong,
.recent-activity-content span {
    display: block;
}

.recent-activity-content strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-activity-content span {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-activity-item time {
    color: #9699a5;
    font-size: 11px;
    white-space: nowrap;
}

.dashboard-empty-state {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1050px) {
    .dashboard-two-column-grid {
        grid-template-columns: 1fr;
    }

    .overview-panel {
        min-height: auto;
    }

    .operations-panel {
        height: 390px;
    }
}

@media (max-width: 560px) {
    .operations-panel {
        height: 370px;
    }

    .recent-activity-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .recent-activity-item time {
        grid-column: 2;
    }
}

/* ---------------- 실제 통계 그래프 ---------------- */

.statistics-error {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(224, 82, 82, 0.35);
    border-radius: 10px;
    background: rgba(224, 82, 82, 0.09);
    color: var(--danger);
    font-size: 14px;
}

.statistics-chart-wrap {
    position: relative;
    height: 260px;
    margin-top: 22px;
}

.statistics-chart-wrap-large {
    height: 330px;
}

.statistics-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.period-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.period-arrow:not(:disabled) {
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.period-arrow:not(:disabled):hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .statistics-chart-wrap {
        height: 235px;
    }

    .statistics-chart-wrap-large {
        height: 290px;
    }
}

/* ---------------- 자기소개 관리 ---------------- */

.intro-management-page {
    padding-bottom: 70px;
}

.intro-feedback {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.intro-feedback.is-success {
    border-color: rgba(50, 182, 122, 0.35);
    background: rgba(50, 182, 122, 0.09);
    color: #237a55;
}

.intro-feedback.is-error {
    border-color: rgba(224, 82, 82, 0.35);
    background: rgba(224, 82, 82, 0.09);
    color: var(--danger);
}

.intro-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.intro-setting-panel {
    min-width: 0;
}

.duration-editor {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.duration-editor label {
    min-width: 0;
    flex: 1;
}

.duration-editor label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.duration-editor select {
    width: 100%;
    height: 43px;
    padding: 0 36px 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background-color: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.duration-editor select:hover {
    border-color: #c7cad2;
}

.duration-editor select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 124, 27, 0.13);
}

.primary-button,
.secondary-button,
.danger-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.primary-button {
    background: var(--accent);
    color: #ffffff;
}

.primary-button:hover:not(:disabled) {
    background: #e96f12;
    transform: translateY(-1px);
}

.secondary-button {
    border-color: var(--border);
    background: #ffffff;
    color: var(--text);
}

.secondary-button:hover:not(:disabled) {
    border-color: #c9ccd4;
    background: #f7f8fa;
    transform: translateY(-1px);
}

.danger-button {
    background: var(--danger);
    color: #ffffff;
}

.danger-button:hover:not(:disabled) {
    background: #cb4444;
    transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.intro-count-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.intro-count-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 17px;
    background: rgba(249, 124, 27, 0.12);
    font-size: 25px;
}

.intro-count-panel div > span,
.intro-count-panel div > strong {
    display: block;
}

.intro-count-panel div > span {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
}

.intro-count-panel div > strong {
    font-size: 28px;
    line-height: 1;
}

.intro-list-panel {
    min-width: 0;
}

.intro-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.intro-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.intro-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    table-layout: fixed;
}

.intro-table th,
.intro-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.intro-table th {
    background: #f7f8fa;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.intro-table td {
    color: var(--text);
    font-size: 14px;
}

.intro-table th:nth-child(1) {
    width: 27%;
}

.intro-table th:nth-child(2) {
    width: 21%;
}

.intro-table th:nth-child(3) {
    width: 20%;
}

.intro-table th:nth-child(4) {
    width: 17%;
}

.intro-table th:nth-child(5) {
    width: 15%;
}

.intro-table tbody tr:last-child td {
    border-bottom: 0;
}

.intro-table tbody tr {
    transition: background-color 0.15s ease;
}

.intro-table tbody tr:hover {
    background: #fcfcfd;
}

.intro-member {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.intro-member-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eceef2;
    object-fit: cover;
}

.intro-member-info {
    min-width: 0;
}

.intro-member-info strong,
.intro-member-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intro-member-info strong {
    font-size: 14px;
}

.intro-member-info span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.intro-user-id {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.intro-remaining-time {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(50, 182, 122, 0.1);
    color: #237a55;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.intro-remaining-time.is-urgent {
    background: rgba(249, 124, 27, 0.12);
    color: #c45f11;
}

.intro-remaining-time.is-expired {
    background: rgba(224, 82, 82, 0.11);
    color: var(--danger);
}

.intro-added-wait {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.intro-member-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.intro-action-button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.intro-action-button:hover:not(:disabled) {
    border-color: var(--accent);
    background: rgba(249, 124, 27, 0.06);
    color: var(--accent);
}

.intro-action-button.is-danger:hover:not(:disabled) {
    border-color: var(--danger);
    background: rgba(224, 82, 82, 0.06);
    color: var(--danger);
}

.intro-action-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.intro-table-message {
    height: 150px;
    color: var(--muted);
    text-align: center !important;
}

.intro-table-wrap .dashboard-empty-state {
    min-height: 180px;
    border: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* ---------------- 자기소개 관리 모달 ---------------- */

body.modal-open {
    overflow: hidden;
}

.dashboard-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13, 14, 19, 0.58);
    backdrop-filter: blur(3px);
}

.dashboard-modal-backdrop[hidden] {
    display: none !important;
}

.dashboard-modal {
    width: min(100%, 520px);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.dashboard-modal-small {
    width: min(100%, 450px);
}

.dashboard-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-modal-header h2 {
    margin: 0 0 7px;
    font-size: 21px;
}

.dashboard-modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-modal-header p strong {
    color: var(--text);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--muted);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    border-color: #c9ccd4;
    background: #f7f8fa;
    color: var(--text);
}

.duration-editor-modal {
    margin-top: 25px;
}

.dashboard-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 25px;
}

.danger-notice {
    margin: 22px 0 0;
    padding: 13px 14px;
    border: 1px solid rgba(224, 82, 82, 0.24);
    border-radius: 10px;
    background: rgba(224, 82, 82, 0.07);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.55;
}


/* ---------------- 자기소개 관리 반응형 ---------------- */

@media (max-width: 1050px) {
    .intro-top-grid {
        grid-template-columns: 1fr;
    }

    .intro-count-panel {
        min-height: 120px;
    }
}

@media (max-width: 700px) {
    .intro-management-page {
        padding-bottom: 45px;
    }

    .intro-list-header {
        align-items: flex-start;
    }

    .duration-editor {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .duration-editor .primary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .duration-editor-modal {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intro-table th,
    .intro-table td {
        padding: 13px 14px;
    }
}

@media (max-width: 560px) {
    .intro-list-header {
        display: block;
    }

    .intro-list-header .secondary-button {
        width: 100%;
        margin-top: 16px;
    }

    .duration-editor,
    .duration-editor-modal {
        grid-template-columns: 1fr;
    }

    .duration-editor .primary-button {
        grid-column: auto;
    }

    .dashboard-modal-backdrop {
        align-items: flex-end;
        padding: 12px;
    }

    .dashboard-modal,
    .dashboard-modal-small {
        width: 100%;
        padding: 21px;
        border-radius: 18px;
    }

    .dashboard-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-modal-actions button {
        width: 100%;
    }
}

/* 미작성 서버원이 존재할 때 빈 목록 안내를 확실히 숨깁니다. */
.intro-table-wrap .dashboard-empty-state[hidden] {
    display: none !important;
}

.intro-mobile-list {
    display: none;
}

.intro-mobile-item {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.intro-mobile-item:last-child {
    border-bottom: 0;
}

.intro-mobile-summary {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(92px, auto)
        18px;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.18s ease,
        transform 0.13s ease;
}

.intro-mobile-summary:active {
    transform: scale(0.988);
    background: #fafafa;
}

.intro-mobile-identity {
    min-width: 0;
}

.intro-mobile-identity .intro-member-avatar {
    width: 40px;
    height: 40px;
}

.intro-mobile-remaining {
    min-width: 0;
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.intro-mobile-remaining small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.intro-mobile-remaining .intro-remaining-time {
    min-height: auto;
    padding: 0;
    background: transparent;
    color: #237a55;
    font-size: 12px;
}

.intro-mobile-remaining
.intro-remaining-time.is-urgent {
    background: transparent;
    color: #c45f11;
}

.intro-mobile-remaining
.intro-remaining-time.is-expired {
    background: transparent;
    color: var(--danger);
}

.intro-mobile-chevron {
    display: inline-flex;
    justify-content: center;
    color: #a0a4ae;
    font-size: 23px;
    line-height: 1;
    transform: rotate(0deg);
    transition:
        transform 0.28s
        cubic-bezier(0.22, 1, 0.36, 1),
        color 0.18s ease;
}

.intro-mobile-item.is-expanded
.intro-mobile-chevron {
    color: var(--accent);
    transform: rotate(90deg);
}

.intro-mobile-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.34s
        cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.intro-mobile-item.is-expanded
.intro-mobile-detail {
    grid-template-rows: 1fr;
    opacity: 1;
}

.intro-mobile-detail-inner {
    min-height: 0;
    overflow: hidden;
}

.intro-mobile-item.is-expanded
.intro-mobile-detail-inner {
    border-top: 1px solid #f0f1f4;
}

.intro-mobile-information {
    margin: 0;
    padding: 5px 14px;
}

.intro-mobile-information > div {
    min-height: 42px;
    display: grid;
    grid-template-columns:
        110px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f2f4;
}

.intro-mobile-information > div:last-child {
    border-bottom: 0;
}

.intro-mobile-information dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.intro-mobile-information dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intro-mobile-detail .intro-member-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px 14px 14px;
}

.intro-mobile-detail .intro-action-button {
    width: 100%;
    min-height: 39px;
}

@media (max-width: 700px) {
    .intro-table {
        display: none;
    }

    .intro-mobile-list {
        display: block;
    }

    .intro-table-wrap {
        overflow: hidden;
    }
}

/* ---------------- 정기알림 관리 ---------------- */

.alert-management-page {
    padding-bottom: 70px;
}

.alert-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.alert-feedback {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(50, 182, 122, 0.32);
    border-radius: 10px;
    background: rgba(50, 182, 122, 0.09);
    color: #21875a;
    font-size: 13px;
}

.alert-feedback.is-error {
    border-color: rgba(224, 82, 82, 0.35);
    background: rgba(224, 82, 82, 0.09);
    color: var(--danger);
}

.alert-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.alert-summary-card {
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.alert-summary-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: rgba(249, 124, 27, 0.12);
    color: var(--accent);
    font-size: 23px;
    font-weight: 800;
}

.alert-summary-icon.is-enabled {
    background: rgba(50, 182, 122, 0.12);
    color: var(--success);
}

.alert-summary-card div > span,
.alert-summary-card div > strong {
    display: block;
}

.alert-summary-card div > span {
    color: var(--muted);
    font-size: 13px;
}

.alert-summary-card div > strong {
    margin-top: 7px;
    font-size: 27px;
}

.alert-weekday-filter-panel {
    margin-bottom: 18px;
    padding: 10px;
}

.alert-weekday-filter {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
}

.alert-weekday-filter-button {
    min-width: 0;
    min-height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 7px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.alert-weekday-filter-button:hover {
    border-color: var(--border);
    background: #f7f8fa;
    color: var(--text);
}

.alert-weekday-filter-button:active {
    transform: translateY(1px);
}

.alert-weekday-filter-button.active {
    border-color: rgba(249, 124, 27, 0.22);
    background: rgba(249, 124, 27, 0.11);
    color: var(--accent);
}

.alert-weekday-filter-button span {
    font-size: 14px;
    font-weight: 800;
}

.alert-weekday-filter-button small {
    color: #9699a5;
    font-size: 11px;
    font-weight: 600;
}

.alert-weekday-filter-button.active small {
    color: var(--accent);
}

.alert-list-panel {
    min-height: 370px;
}

.alert-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 21px;
}

.alert-list {
    display: grid;
    gap: 13px;
}

.alert-list-message {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
}

.alert-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.alert-card:hover {
    border-color: #d3d6dd;
    box-shadow: 0 8px 24px rgba(25, 28, 36, 0.06);
}

.alert-card.is-disabled {
    background: #fafafa;
}

.alert-card-main {
    min-width: 0;
}

.alert-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.alert-card-heading h3 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-status-badge {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(50, 182, 122, 0.11);
    color: #21875a;
    font-size: 11px;
    font-weight: 800;
}

.alert-status-badge.is-disabled {
    background: rgba(117, 121, 133, 0.11);
    color: var(--muted);
}

.alert-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 12px;
}

.alert-meta-list span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.alert-message-preview {
    max-width: 850px;
    margin: 14px 0 0;
    overflow: hidden;
    color: #4f535f;
    font-size: 13px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-card-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.alert-addon-badge {
    padding: 5px 8px;
    border-radius: 7px;
    background: #f3f4f7;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.alert-card-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.alert-card-button {
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.alert-card-button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.alert-card-button.is-danger:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
}

.alert-card-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.alert-toggle {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd2d9;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.alert-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease;
}

.alert-toggle.is-enabled {
    background: var(--success);
}

.alert-toggle.is-enabled::after {
    transform: translateX(20px);
}

.alert-toggle:disabled {
    cursor: wait;
    opacity: 0.55;
}

.alert-empty-state[hidden] {
    display: none !important;
}

.alert-empty-state {
    min-height: 210px;
}

.alert-empty-state strong,
.alert-empty-state span {
    display: block;
}

.alert-empty-state strong {
    color: var(--text);
    font-size: 15px;
}

.alert-empty-state span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.alert-form-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
}

.alert-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.alert-field {
    min-width: 0;
}

.alert-field-wide {
    grid-column: 1 / -1;
}

.alert-field > span,
.alert-weekday-field legend {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
}

.alert-field em,
.alert-weekday-field em {
    color: var(--accent);
    font-style: normal;
}

.alert-field i {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
}

.alert-field input,
.alert-field select,
.alert-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.alert-field input,
.alert-field select {
    height: 42px;
    padding: 0 12px;
}

.alert-field textarea {
    min-height: 150px;
    padding: 12px;
    line-height: 1.55;
    resize: vertical;
}

.alert-field input:focus,
.alert-field select:focus,
.alert-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 124, 27, 0.12);
}

.alert-field select option:disabled {
    color: #a8abb4;
}

.alert-field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.alert-weekday-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.alert-weekday-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.alert-weekday-options label {
    cursor: pointer;
}

.alert-weekday-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.alert-weekday-options span {
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.alert-weekday-options input:checked + span {
    border-color: var(--accent);
    background: rgba(249, 124, 27, 0.09);
    color: var(--accent);
}

.alert-weekday-options input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(249, 124, 27, 0.12);
}

.alert-enabled-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
}

.alert-enabled-field input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.alert-enabled-field span,
.alert-enabled-field strong,
.alert-enabled-field small {
    display: block;
}

.alert-enabled-field strong {
    font-size: 12px;
}

.alert-enabled-field small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.alert-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

.alert-card-summary {
    min-height: 72px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 16px;
    padding: 15px 17px;
}

.alert-compact-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 9px;
}

.alert-compact-meta span,
.alert-compact-meta strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-compact-meta span {
    color: var(--muted);
    font-weight: 500;
}

.alert-compact-meta strong {
    color: var(--text);
    font-weight: 750;
    text-align: right;
}

.alert-detail-toggle {
    width: 100%;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 17px;
    border: 0;
    border-top: 1px solid #f0f1f4;
    background: #fafafb;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.alert-detail-toggle:hover {
    background: #f4f5f7;
    color: var(--accent);
}

.alert-detail-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    transform: rotate(0deg);
    transition:
        transform 0.32s
        cubic-bezier(0.22, 1, 0.36, 1),
        color 0.18s ease;
}

.alert-card.is-expanded
.alert-detail-chevron {
    color: var(--accent);
    transform: rotate(90deg);
}

.alert-card-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.36s
        cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease;
}

.alert-card.is-expanded
.alert-card-detail {
    grid-template-rows: 1fr;
    opacity: 1;
}

.alert-card-detail-inner {
    min-height: 0;
    overflow: hidden;
}

.alert-card.is-expanded
.alert-card-detail-inner {
    border-top: 1px solid #f0f1f4;
}

.alert-detail-information {
    padding: 13px 17px 0;
}

.alert-detail-information > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.alert-detail-information span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.alert-detail-information strong {
    color: var(--text);
    font-size: 12px;
    text-align: right;
}

.alert-card-detail .alert-message-preview {
    max-width: none;
    margin: 11px 14px 0;
    overflow: visible;
    color: #555a66;
    font-size: 12px;
    line-height: 1.6;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.alert-card-detail .alert-card-addons {
    margin-right: 17px;
    margin-left: 17px;
}

.alert-card-detail .alert-card-actions {
    justify-content: flex-end;
    margin-top: 14px;
    padding: 13px 17px 16px;
    border-top: 1px solid #f0f1f4;
}

.alert-toggle {
    transition:
        background-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.14s ease;
}

.alert-toggle::after {
    transition:
        transform 0.28s
        cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.2s ease;
}

.alert-toggle:hover:not(:disabled) {
    box-shadow:
        0 0 0 4px
        rgba(249, 124, 27, 0.09);
}

.alert-toggle:active:not(:disabled) {
    transform: scale(0.92);
}

.alert-toggle.is-enabled {
    background: var(--accent);
}

.alert-toggle.is-updating {
    animation:
        alert-toggle-pulse
        0.36s ease;
}

@keyframes alert-toggle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@media (min-width: 701px) {
    .alert-detail-toggle {
        display: none;
    }

    .alert-card-detail {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .alert-card-detail-inner {
        overflow: visible;
    }
}

@media (max-width: 900px) {
    .alert-card {
        grid-template-columns: 1fr;
    }

    .alert-card-actions {
        justify-content: flex-end;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 700px) {
    .alert-page-header {
        display: block;
    }

    .alert-page-header .primary-button {
        width: 100%;
        margin-top: 18px;
    }

    .alert-summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        gap: 10px;
    }

    .alert-summary-card {
        min-height: 82px;
        gap: 10px;
        padding: 12px;
    }

    .alert-summary-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 18px;
    }

    .alert-summary-card div > span {
        font-size: 10px;
    }

    .alert-summary-card div > strong {
        margin-top: 4px;
        font-size: 21px;
    }

    .alert-list-header {
        align-items: flex-start;
    }

    .alert-form-grid {
        grid-template-columns: 1fr;
    }

    .alert-field-wide {
        grid-column: auto;
    }

    .alert-weekday-filter-panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        padding: 8px;
    }

    .alert-weekday-filter {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: flex;
        gap: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 3px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .alert-weekday-filter::-webkit-scrollbar {
        display: none;
    }

    .alert-weekday-filter-button {
        width: 54px;
        min-width: 54px;
        min-height: 59px;
        flex: 0 0 54px;
    }

    .alert-card {
        border-radius: 12px;
    }

    .alert-card-summary {
        min-height: 70px;
        gap: 11px;
        padding: 13px 14px;
    }

    .alert-card-heading {
        gap: 7px;
    }

    .alert-card-heading h3 {
        font-size: 14px;
    }

    .alert-status-badge {
        display: none;
    }

    .alert-compact-meta {
        gap: 9px;
        margin-top: 8px;
    }

    .alert-compact-meta span,
    .alert-compact-meta strong {
        font-size: 10px;
    }

    .alert-toggle {
        width: 44px;
        height: 25px;
    }

    .alert-toggle::after {
        width: 19px;
        height: 19px;
    }

    .alert-toggle.is-enabled::after {
        transform: translateX(19px);
    }

    .alert-card-detail .alert-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .alert-list-header {
        display: flex;
        align-items: flex-start;
    }

    .alert-list-header .secondary-button {
        width: auto;
        min-width: 72px;
        margin-top: 0;
    }

    .alert-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .alert-card-button {
        width: 100%;
    }

    .alert-weekday-options {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .alert-form-modal {
        max-height: calc(100vh - 24px);
    }
}

/* --------------------------- 서버원 관리 --------------------------- */

.member-page-header,
.member-list-toolbar,
.member-list-controls,
.member-selection-bar,
.member-selection-bar > div {
    display: flex;
    align-items: center;
}

.member-selection-bar[hidden],
#member-empty[hidden] {
    display: none !important;
}

.member-page-header,
.member-list-toolbar {
    justify-content: space-between;
    gap: 20px;
}

.member-feedback {
    margin: -10px 0 20px;
    padding: 13px 16px;
    border: 1px solid #bde7d4;
    border-radius: 12px;
    background: #edfaf4;
    color: #187751;
    font-size: 14px;
}

.member-feedback.is-error {
    border-color: #f1c4c4;
    background: #fff1f1;
    color: #b93636;
}

.member-summary-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 16px;
    margin-bottom: 22px;
}

.member-summary-card {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-summary-card span {
    color: var(--muted);
    font-size: 13px;
}

.member-summary-card strong {
    font-size: 25px;
}

.member-summary-card.is-newbie strong {
    color: var(--accent);
}

.member-summary-card.is-member strong {
    color: #5967d8;
}

.member-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px 0;
}

.member-search-field {
    min-width: 0;
    flex: 1;
}

.member-search-field input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.member-search-field input:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px
        rgba(249, 124, 27, 0.12);
}

.member-search-clear[hidden] {
    display: none !important;
}

.member-search-clear {
    min-width: 96px;
}

.member-list-panel {
    padding: 0;
    overflow: hidden;
}

.member-list-toolbar {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.member-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 4px;
    border-radius: 11px;
    background: #f0f1f4;
}

.member-tab {
    min-width: 70px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.member-tab.is-active {
    background: #ffffff;
    color: var(--accent);
    box-shadow:
        0 2px 8px
        rgba(25, 28, 36, 0.08);
}

.member-list-controls {
    gap: 18px;
}

.member-select-all-label,
.member-sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.member-select-all-label input,
.member-row-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.member-role-filter {
    position: relative;
}

.member-role-filter-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.member-role-filter-button:hover,
.member-role-filter-button.is-active,
.member-role-filter-button.is-open {
    border-color: var(--accent);
    background: #fff8f2;
    color: var(--accent);
}

.member-role-filter-button strong {
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 10px;
}

.member-role-filter-button strong[hidden] {
    display: none !important;
}

.member-role-filter-chevron {
    transition:
        transform 0.18s ease;
}

.member-role-filter-button.is-open
.member-role-filter-chevron {
    transform: rotate(180deg);
}

.member-role-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: min(310px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 16px 40px
        rgba(24, 26, 34, 0.16);
}

.member-role-filter-menu[hidden] {
    display: none !important;
}

.member-role-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 3px 10px;
    border-bottom: 1px solid var(--border);
}

.member-role-filter-heading strong {
    font-size: 13px;
}

.member-role-filter-heading button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.member-role-filter-options {
    max-height: 300px;
    display: grid;
    gap: 4px;
    overflow-y: auto;
    margin-top: 8px;
    padding-right: 3px;
}

.member-role-filter-option {
    min-height: 39px;
    display: grid;
    grid-template-columns:
        18px
        9px
        minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.member-role-filter-option:hover {
    background: #f7f8fa;
}

.member-role-filter-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.member-role-filter-option i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.member-role-filter-option span {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-role-filter-empty {
    margin: 0;
    padding: 20px 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.member-sort-label select,
.member-role-bulk-option select,
.member-danger-confirm input {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.member-sort-label select {
    padding: 0 34px 0 11px;
}

.member-table-scroll {
    max-height: 610px;
    overflow: auto;
    overscroll-behavior: contain;
}

.member-list-message {
    padding: 55px 24px;
    color: var(--muted);
    text-align: center;
}

.member-list-message.is-error {
    color: var(--danger);
}

.member-group-section
+ .member-group-section {
    border-top:
        8px solid
        var(--background);
}

.member-group-heading {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 1250px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-bottom:
        1px solid
        var(--border);
    background: #fafafb;
}

.member-group-heading h2 {
    margin: 0;
    font-size: 15px;
}

.member-group-heading span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #eceef2;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.member-table-wrap {
    min-width: 1250px;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.member-table th,
.member-table td {
    padding: 13px 12px;
    border-bottom:
        1px solid
        var(--border);
    text-align: left;
    vertical-align: middle;
}

.member-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7f8fa;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.01em;
}

.member-group-section
.member-table th {
    top: 0;
}

.member-table tbody tr {
    min-height: 72px;
    background: #ffffff;
    transition:
        background 0.15s ease;
}

.member-table tbody tr:hover,
.member-table tbody tr.is-selected {
    background: #fff8f2;
}

.member-table th:nth-child(1),
.member-table td:nth-child(1) {
    width: 44px;
    text-align: center;
}

.member-table th:nth-child(2),
.member-table td:nth-child(2) {
    width: 190px;
}

.member-table th:nth-child(3),
.member-table td:nth-child(3) {
    width: 165px;
}

.member-table th:nth-child(4),
.member-table td:nth-child(4) {
    width: 175px;
}

.member-table th:nth-child(5),
.member-table td:nth-child(5) {
    width: 115px;
}

.member-table th:nth-child(6),
.member-table td:nth-child(6) {
    width: 78px;
}

.member-table th:nth-child(7),
.member-table td:nth-child(7) {
    width: 300px;
}

.member-table th:nth-child(8),
.member-table td:nth-child(8) {
    width: 140px;
}

.member-table code {
    color: #626774;
    font-size: 12px;
}

.member-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.member-identity img {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.member-identity div,
.member-identity strong,
.member-identity span {
    display: block;
    min-width: 0;
}

.member-identity strong,
.member-identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-identity strong {
    font-size: 14px;
}

.member-identity span,
.member-party-text,
.member-no-role {
    color: var(--muted);
    font-size: 12px;
}

.member-identity span {
    margin-top: 3px;
}

.member-role-cell,
.member-role-badges,
.member-danger-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-role-badges {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.member-role-badge {
    max-width: 105px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border:
        1px solid
        var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: #fafafb;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-role-badge i,
.member-role-option > i,
.member-role-option
> input + i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.member-role-more {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.member-role-button,
.member-danger-actions button,
.danger-outline-button {
    border:
        1px solid
        var(--border);
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.member-role-button,
.member-danger-actions button {
    padding: 7px 9px;
}

.member-role-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.member-danger-actions button {
    color: #b34b4b;
}

.member-danger-actions
button.is-ban {
    border-color: #efc3c3;
    background: #fff4f4;
    color: #d33939;
}

.member-role-button:disabled,
.member-danger-actions
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.member-selection-bar {
    position: fixed;
    right: 28px;
    bottom: 26px;
    z-index: 20;
    gap: 24px;
    padding:
        14px 16px
        14px 19px;
    border: 1px solid #343641;
    border-radius: 14px;
    background: #1d1f28;
    color: #ffffff;
    box-shadow:
        0 16px 45px
        rgba(19, 20, 27, 0.24);
    will-change:
        transform,
        opacity;
    backface-visibility: hidden;
    transform: translate3d(
        0,
        0,
        0
    );
}

.member-selection-bar.is-entering {
    pointer-events: auto;
    animation:
        member-selection-bar-enter
        0.42s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;
}

.member-selection-bar.is-leaving {
    pointer-events: none;
    animation:
        member-selection-bar-leave
        0.58s
        cubic-bezier(0.55, 0, 1, 0.45)
        both;
}

@keyframes member-selection-bar-enter {
    0% {
        opacity: 0;
        transform:
            translateY(28px)
            scale(0.97);
    }

    65% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes member-selection-bar-leave {
    from {
        opacity: 1;
        transform: translate3d(
            0,
            0,
            0
        );
    }

    to {
        opacity: 0;
        transform: translate3d(
            0,
            34px,
            0
        );
    }
}

.member-selection-bar > div {
    gap: 8px;
}

.member-selection-bar
.secondary-button,
.member-selection-bar
.danger-button,
.member-selection-bar
.danger-outline-button {
    min-height: 38px;
    padding: 0 13px;
}

.danger-outline-button {
    border-color: #ca6767;
    background: transparent;
    color: #ffb8b8;
}

.member-role-modal {
    max-width: 620px;
}

.member-role-help {
    margin-bottom: 13px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #fff6ee;
    color: #9a571e;
    font-size: 12px;
}

.member-role-options {
    max-height: 420px;
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.member-role-option {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border:
        1px solid
        var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.member-role-option > span {
    min-width: 0;
    flex: 1;
}

.member-role-option strong,
.member-role-option small {
    display: block;
}

.member-role-option strong {
    font-size: 13px;
}

.member-role-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.member-role-option.is-disabled {
    background: #f7f7f8;
    opacity: 0.7;
}

.member-role-bulk-option select {
    width: 125px;
    padding: 0 9px;
}

.member-danger-confirm {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.member-danger-confirm input {
    width: 100%;
    padding: 0 11px;
}

.member-mobile-list {
    display: none;
}

.member-mobile-item {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.member-mobile-item:last-child {
    border-bottom: 0;
}

.member-mobile-item.is-selected {
    background: #fff8f2;
}

.member-mobile-summary {
    min-height: 66px;
    display: grid;
    grid-template-columns:
        38px
        minmax(0, 1fr);
    align-items: center;
    padding: 8px 10px 8px 8px;
}

.member-mobile-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-mobile-toggle {
    min-width: 0;
    min-height: 50px;
    display: grid;
    grid-template-columns:
        40px
        minmax(0, 1fr)
        22px;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.13s ease,
        opacity 0.13s ease;
}

.member-mobile-toggle:active {
    transform: scale(0.985);
    opacity: 0.82;
}

.member-mobile-avatar {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.member-mobile-information {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(92px, 0.82fr);
    gap: 10px;
    align-items: center;
}

.member-mobile-left,
.member-mobile-right {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.member-mobile-left strong,
.member-mobile-left small,
.member-mobile-right strong,
.member-mobile-right small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-mobile-left strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.member-mobile-left small {
    color: var(--muted);
    font-size: 11px;
}

.member-mobile-right {
    text-align: right;
}

.member-mobile-right strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.member-mobile-right small {
    color: var(--muted);
    font-size: 10px;
}

.member-mobile-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a0a4ae;
    font-size: 24px;
    line-height: 1;
    transform: rotate(0deg);
    transition:
        transform 0.24s ease,
        color 0.18s ease;
}

.member-mobile-item.is-expanded
.member-mobile-chevron {
    color: var(--accent);
    transform: rotate(90deg);
}

.member-mobile-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.28s ease,
        opacity 0.2s ease;
}

.member-mobile-item.is-expanded
.member-mobile-detail {
    grid-template-rows: 1fr;
    opacity: 1;
}

.member-mobile-detail-inner {
    min-height: 0;
    overflow: hidden;
}

.member-mobile-item.is-expanded
.member-mobile-detail-inner {
    border-top: 1px solid #f0f1f4;
}

.member-mobile-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 6px 14px;
}

.member-mobile-detail-list > div {
    min-height: 42px;
    display: grid;
    grid-template-columns:
        88px
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f2f4;
}

.member-mobile-detail-list > div:last-child {
    border-bottom: 0;
}

.member-mobile-detail-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.member-mobile-detail-list dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 12px;
    text-align: right;
}

.member-mobile-detail-list code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #626774;
    font-size: 11px;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.member-mobile-role-detail {
    align-items: start !important;
    padding: 9px 0;
}

.member-mobile-role-detail dt {
    padding-top: 5px;
}

.member-mobile-role-detail
.member-role-badges {
    justify-content: flex-end;
    flex-wrap: wrap;
    overflow: visible;
}

.member-mobile-actions {
    display: grid;
    grid-template-columns:
        1.2fr
        1fr
        1fr;
    gap: 7px;
    padding: 4px 14px 14px;
}

.member-mobile-actions button {
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 800;
    transition:
        transform 0.13s ease,
        filter 0.13s ease,
        background-color 0.18s ease;
}

.member-mobile-actions button:active:not(:disabled) {
    transform: scale(0.96);
    filter: brightness(0.96);
}

.member-mobile-disabled-reason {
    margin: -4px 14px 14px;
    color: var(--danger);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 800px) {
    .member-desktop-list {
        display: none;
    }

    .member-mobile-list {
        display: block;
    }

    .member-group-heading {
        position: sticky;
        top: 0;
        left: auto;
        z-index: 4;
        min-width: 0;
    }

    .member-table-scroll {
        max-height: 540px;
        overflow-x: hidden;
    }

    .member-page-header,
    .member-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .member-page-header
    .secondary-button {
        width: 100%;
    }

    .member-summary-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
        gap: 10px;
    }

    .member-summary-card {
        min-height: 88px;
        padding: 15px;
    }

    .member-summary-card span {
        font-size: 11px;
    }

    .member-summary-card strong {
        font-size: 20px;
    }

    .member-list-controls {
        justify-content: space-between;
    }

    .member-selection-bar {
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .member-summary-grid {
        gap: 7px;
    }

    .member-summary-card {
        min-height: 80px;
        padding: 12px 9px;
    }

    .member-summary-card span {
        overflow: hidden;
        font-size: 10px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .member-summary-card strong {
        font-size: 18px;
        text-align: center;
    }

    .member-tabs {
        width: 100%;
    }

    .member-tab {
        min-width: 0;
        flex: 1;
        padding-right: 8px;
        padding-left: 8px;
    }

    .member-list-controls,
    .member-selection-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .member-sort-label {
        justify-content: space-between;
    }

    .member-mobile-summary {
        grid-template-columns:
            34px
            minmax(0, 1fr);
        padding:
            8px
            7px
            8px
            5px;
    }

    .member-mobile-toggle {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            18px;
        gap: 8px;
    }

    .member-mobile-avatar {
        width: 38px;
        height: 38px;
    }

    .member-mobile-information {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(82px, 0.78fr);
        gap: 7px;
    }

    .member-mobile-left {
        gap: 3px;
    }

    .member-mobile-right {
        gap: 3px;
    }

    .member-mobile-left strong {
        font-size: 12px;
    }

    .member-mobile-left small {
        font-size: 10px;
    }

    .member-mobile-right strong {
        font-size: 10px;
    }

    .member-mobile-right small {
        font-size: 9px;
    }

    .member-mobile-chevron {
        font-size: 21px;
    }

    .member-selection-bar {
        gap: 10px;
    }

    .member-selection-bar > div {
        display: grid;
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 800px) {
    .member-management-page {
        min-width: 0;
        overflow-x: hidden;
    }

    .member-list-panel,
    .member-table-scroll,
    .member-group-section,
    .member-mobile-list {
        width: 100%;
        min-width: 0;
    }

    .member-group-section {
        overflow: hidden;
    }
}

.member-column-sort-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
}

.member-column-sort-button:hover,
.member-column-sort-button.is-active {
    color: var(--accent);
}

.member-column-sort-button:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.member-column-sort-icon {
    opacity: 0.35;
    font-size: 9px;
}

.member-column-sort-button:hover
.member-column-sort-icon,
.member-column-sort-button.is-active
.member-column-sort-icon {
    opacity: 1;
}

/* --------------------------- 로그 --------------------------- */

.log-page-header,
.log-list-header,
.log-item-heading,
.log-item-meta,
.log-pagination {
    display: flex;
    align-items: center;
}

.log-page-header,
.log-list-header,
.log-item-heading {
    justify-content: space-between;
    gap: 20px;
}

.log-feedback {
    margin: -10px 0 20px;
    padding: 13px 16px;
    border: 1px solid #f1c4c4;
    border-radius: 12px;
    background: #fff1f1;
    color: #b93636;
    font-size: 14px;
}

.log-feedback[hidden],
.log-empty-state[hidden],
.log-pagination[hidden] {
    display: none !important;
}

.log-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 16px;
    margin-bottom: 22px;
}

.log-summary-card {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.log-summary-card span {
    color: var(--muted);
    font-size: 13px;
}

.log-summary-card strong {
    font-size: 25px;
}

.log-summary-card.is-today strong {
    color: var(--accent);
}

.log-summary-card.is-moderation strong {
    color: var(--danger);
}

.log-summary-card.is-filtered strong {
    color: #5967d8;
}

.log-filter-panel {
    margin-bottom: 22px;
    padding: 20px 22px;
}

.log-filter-panel form {
    display: grid;
    grid-template-columns:
        minmax(250px, 2fr)
        minmax(150px, 1fr)
        minmax(145px, 0.8fr)
        minmax(145px, 0.8fr)
        auto;
    align-items: end;
    gap: 13px;
}

.log-filter-panel label,
.log-filter-panel label > span,
.log-page-size-label span {
    display: block;
}

.log-filter-panel label > span,
.log-page-size-label span {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.log-filter-panel input,
.log-filter-panel select,
.log-page-size-label select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.log-filter-panel input:focus,
.log-filter-panel select:focus,
.log-page-size-label select:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(249, 124, 27, 0.12);
}

.log-filter-actions {
    display: flex;
    gap: 8px;
}

.log-filter-actions button {
    white-space: nowrap;
}

.log-list-panel {
    padding: 0;
    overflow: hidden;
}

.log-list-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}

.log-list-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
}

.log-list-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.log-page-size-label {
    min-width: 110px;
}

.log-page-size-label select {
    min-height: 38px;
}

.log-list {
    display: block;
}

.log-list-message,
.log-empty-state {
    padding: 64px 24px;
    color: var(--muted);
    text-align: center;
}

.log-empty-state strong,
.log-empty-state span {
    display: block;
}

.log-empty-state strong {
    margin-bottom: 7px;
    color: var(--text);
}

.log-empty-state span {
    font-size: 13px;
}

.log-item {
    position: relative;
    display: grid;
    grid-template-columns:
        48px
        minmax(0, 1fr);
    gap: 15px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.log-item:last-child {
    border-bottom: 0;
}

.log-item:hover {
    background: #fffaf6;
}

.log-item-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f2f3f6;
    font-size: 20px;
}

.log-item[data-log-type="join"]
.log-item-icon {
    background: #e9f8f1;
}

.log-item[data-log-type="leave"]
.log-item-icon,
.log-item[data-log-type="kick"]
.log-item-icon,
.log-item[data-log-type="ban"]
.log-item-icon {
    background: #fff0f0;
}

.log-item[data-log-type="party_create"]
.log-item-icon,
.log-item[data-log-type="party_join"]
.log-item-icon,
.log-item[data-log-type="party_cancel"]
.log-item-icon,
.log-item[data-log-type="party_close"]
.log-item-icon {
    background: #f0f2ff;
}

.log-item-body {
    min-width: 0;
}

.log-item-heading > div {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.log-item-heading strong {
    font-size: 14px;
}

.log-item-heading time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

.log-type-badge,
.log-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.log-type-badge {
    background: #fff1e6;
    color: #bd5b11;
}

.log-source-badge {
    background: #eef0f5;
    color: #656a76;
}

.log-item-body > p {
    margin: 9px 0 12px;
    color: #4e525d;
    font-size: 13px;
    line-height: 1.6;
}

.log-item-meta {
    gap: 15px;
    color: var(--muted);
    font-size: 12px;
}

.log-target {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.log-target strong {
    color: var(--text);
    font-size: 12px;
}

.log-target code,
.log-actor code {
    color: #6f7480;
    font-size: 11px;
}

.log-actor {
    padding-left: 15px;
    border-left: 1px solid var(--border);
}

.log-pagination {
    justify-content: center;
    gap: 15px;
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    background: #fafafb;
}

.log-pagination span {
    min-width: 70px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.log-page.is-loading
.log-summary-card,
.log-page.is-loading
.log-filter-panel {
    opacity: 0.72;
}

@media (max-width: 1200px) {
    .log-filter-panel form {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .log-search-field {
        grid-column: 1 / -1;
    }

    .log-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .log-summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 650px) {
    .log-page-header,
    .log-list-header,
    .log-item-heading {
        align-items: flex-start;
    }

    .log-page-header,
    .log-list-header {
        display: block;
    }

    .log-page-header
    .secondary-button,
    .log-page-size-label {
        width: 100%;
        margin-top: 16px;
    }

    .log-summary-grid,
    .log-filter-panel form {
        grid-template-columns: 1fr;
    }

    .log-search-field {
        grid-column: auto;
    }

    .log-filter-actions {
        display: grid;
        grid-template-columns:
            1fr
            1fr;
    }

    .log-item {
        grid-template-columns:
            40px
            minmax(0, 1fr);
        gap: 12px;
        padding: 17px 16px;
    }

    .log-item-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 18px;
    }

    .log-item-heading {
        display: block;
    }

    .log-item-heading time {
        display: block;
        margin-top: 8px;
    }

    .log-item-meta {
        display: block;
    }

    .log-actor {
        display: block;
        margin-top: 7px;
        padding-left: 0;
        border-left: 0;
    }
}

/* ------------------------ 텍스트 전송 ------------------------ */

.text-send-feedback,
#embed-mode-sections,
.text-send-editor {
    display: grid;
    gap: 18px;
}

.text-send-feedback {
    display: block;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #f1c4c4;
    border-radius: 12px;
    background: #fff1f1;
    color: #b93636;
    font-size: 14px;
}

.text-send-feedback.is-success {
    border-color: #b9e4cf;
    background: #edfaf4;
    color: #217952;
}

.text-send-feedback a {
    font-weight: 800;
    text-decoration: underline;
}

.text-send-feedback[hidden],
#embed-mode-sections[hidden],
#text-mode-section[hidden],
#embed-image-url-panel[hidden],
#embed-image-upload-panel[hidden],
#embed-gradient-panel[hidden],
.discord-embed-preview[hidden],
.discord-upload-preview[hidden] {
    display: none !important;
}

.text-send-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(360px, 0.8fr);
    align-items: start;
    gap: 22px;
}

.composer-section {
    padding: 22px;
}

.composer-section h2,
.preview-panel h2 {
    margin: 0 0 16px;
    font-size: 17px;
}

.composer-section > p,
.preview-panel > p,
.composer-heading p {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.composer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.composer-heading h2,
.composer-heading p {
    margin-bottom: 0;
}

.composer-heading > span {
    color: var(--muted);
    font-size: 12px;
}

.composer-field {
    display: block;
    min-width: 0;
}

.composer-field + .composer-field {
    margin-top: 15px;
}

.composer-field > span,
.color-editor label > span {
    display: block;
    margin-bottom: 7px;
    color: #515560;
    font-size: 12px;
    font-weight: 800;
}

.composer-field small {
    color: var(--muted);
    font-weight: 500;
}

.composer-field input,
.composer-field select,
.composer-field textarea,
.composer-section > textarea,
.color-editor input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.composer-field input,
.composer-field select {
    min-height: 43px;
    padding: 0 12px;
}

.composer-field input[type="file"] {
    height: auto;
    padding: 8px;
}

.composer-field textarea,
.composer-section > textarea {
    min-height: 100px;
    padding: 12px 13px;
    line-height: 1.6;
    resize: vertical;
}

.composer-field input:focus,
.composer-field select:focus,
.composer-field textarea:focus,
.composer-section > textarea:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(249, 124, 27, 0.12);
}

.composer-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.composer-grid.two-columns {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.composer-grid.three-columns {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.composer-grid .composer-field + .composer-field {
    margin-top: 0;
}

.composer-grid .full-column {
    grid-column: 1 / -1;
}

.composer-mode-fieldset {
    margin: 18px 0 0;
    padding: 0;
    border: 0;
}

.composer-mode-fieldset legend {
    margin-bottom: 8px;
    color: #515560;
    font-size: 12px;
    font-weight: 800;
}

.composer-mode-options {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 10px;
}

.composer-mode-options label {
    position: relative;
    cursor: pointer;
}

.composer-mode-options input {
    position: absolute;
    opacity: 0;
}

.composer-mode-options label > span {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #ffffff;
}

.composer-mode-options input:checked + span {
    border-color: var(--accent);
    background: #fff5ed;
    box-shadow:
        0 0 0 3px
        rgba(249, 124, 27, 0.11);
}

.composer-mode-options strong,
.composer-mode-options small {
    display: block;
}

.composer-mode-options strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.composer-mode-options small {
    color: var(--muted);
    font-size: 11px;
}

.markdown-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.markdown-toolbar button {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: #4d515b;
    cursor: pointer;
}

.markdown-toolbar button:hover {
    border-color: var(--accent);
    background: #fff5ed;
}

.color-editor {
    display: grid;
    grid-template-columns:
        110px
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.color-editor input[type="color"] {
    height: 43px;
    padding: 4px;
}

.rgb-editor {
    display: grid;
    gap: 11px;
    margin-top: 18px;
}

.rgb-row {
    display: grid;
    grid-template-columns:
        24px
        minmax(0, 1fr)
        80px;
    align-items: center;
    gap: 11px;
}

.rgb-row strong {
    font-size: 12px;
}

.rgb-row input[type="number"] {
    width: 80px;
    min-height: 37px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.color-presets button {
    width: 28px;
    height: 28px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--preset);
    box-shadow:
        0 0 0 1px
        var(--border);
    cursor: pointer;
}

.gradient-swatch {
    height: 90px;
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.embed-field-editor {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 12px;
    margin-top: 13px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafafb;
}

.embed-field-actions {
    display: flex;
    align-items: flex-start;
}

.field-remove {
    padding: 7px 10px;
    border: 1px solid #efc2c2;
    border-radius: 8px;
    background: #fff4f4;
    color: var(--danger);
    cursor: pointer;
}

.composer-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #4f535e;
    font-size: 13px;
    cursor: pointer;
}

.mention-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.mention-options .composer-checkbox {
    margin-top: 0;
}

.composer-checkbox.is-danger {
    color: var(--danger);
}

.composer-submit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 22px;
}

.composer-submit-panel strong,
.composer-submit-panel span {
    display: block;
}

.composer-submit-panel strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.composer-submit-panel span {
    color: var(--muted);
    font-size: 12px;
}

.text-send-preview-column {
    position: sticky;
    top: 22px;
}

.preview-panel {
    padding: 22px;
}

.discord-preview {
    margin-top: 17px;
    padding: 22px 17px;
    border-radius: 12px;
    background: #313338;
    color: #dbdee1;
}

.discord-message {
    display: grid;
    grid-template-columns:
        40px
        minmax(0, 1fr);
    gap: 11px;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-message-body {
    min-width: 0;
}

.discord-message-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.discord-message-header strong {
    color: #ffffff;
    font-size: 14px;
}

.discord-message-header > span {
    padding: 1px 4px;
    border-radius: 3px;
    background: #5865f2;
    color: #ffffff;
    font-size: 9px;
}

.discord-message-header time {
    color: #949ba4;
    font-size: 10px;
}

#discord-content-preview {
    color: #dbdee1;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.discord-placeholder {
    color: #949ba4;
}

.discord-preview a {
    color: #00a8fc;
}

.discord-preview pre {
    overflow-x: auto;
    padding: 9px;
    border-radius: 5px;
    background: #1e1f22;
}

.discord-preview code {
    padding: 2px 4px;
    border-radius: 4px;
    background: #1e1f22;
}

.discord-preview blockquote {
    margin: 5px 0;
    padding-left: 9px;
    border-left: 3px solid #4e5058;
}

.discord-embed-preview {
    position: relative;
    max-width: 520px;
    margin-top: 8px;
    padding: 13px 15px 13px 18px;
    border-radius: 4px;
    background: #2b2d31;
    overflow: hidden;
}

.discord-embed-preview::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(
        --embed-color,
        #f97c1b
    );
}

.discord-embed-author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 11px;
}

.discord-embed-author-icon,
.discord-embed-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-embed-title {
    display: block;
    margin-bottom: 7px;
    color: #f2f3f5;
    font-size: 14px;
    font-weight: 700;
}

.discord-embed-description {
    color: #dbdee1;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.discord-embed-thumbnail {
    float: right;
    width: 72px;
    height: 72px;
    margin: 0 0 10px 14px;
    border-radius: 4px;
    object-fit: cover;
}

.discord-embed-image,
.discord-gradient-image {
    width: 100%;
    max-height: 280px;
    margin-top: 12px;
    border-radius: 4px;
    object-fit: cover;
}

.discord-gradient-image {
    height: 130px;
}

.discord-embed-fields {
    display: grid;
    grid-template-columns:
        repeat(
            12,
            minmax(0, 1fr)
        );
    gap: 10px;
    margin-top: 11px;
}

.discord-embed-field {
    grid-column: 1 / -1;
    min-width: 0;
    font-size: 11px;
    line-height: 1.45;
}

.discord-embed-field.is-inline {
    grid-column: span 4;
}

.discord-embed-field strong {
    display: block;
    margin-bottom: 3px;
    color: #f2f3f5;
}

.discord-embed-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    clear: both;
    margin-top: 12px;
    color: #b5bac1;
    font-size: 10px;
}

.discord-upload-preview {
    display: block;
    max-width: 100%;
    max-height: 350px;
    margin-top: 9px;
    border-radius: 6px;
}

@media (max-width: 1180px) {
    .text-send-layout {
        grid-template-columns: 1fr;
    }

    .text-send-preview-column {
        position: static;
    }
}

@media (max-width: 700px) {
    .composer-grid.two-columns,
    .composer-grid.three-columns,
    .color-editor {
        grid-template-columns: 1fr;
    }

    .composer-mode-options {
        grid-template-columns: 1fr;
    }

    .composer-submit-panel,
    .composer-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .composer-submit-panel button {
        width: 100%;
    }

    .discord-embed-field.is-inline {
        grid-column: span 6;
    }
}

@media (max-width: 470px) {
    .rgb-row {
        grid-template-columns:
            20px
            minmax(0, 1fr)
            64px;
    }

    .rgb-row input[type="number"] {
        width: 64px;
    }

    .discord-embed-field.is-inline {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .alert-weekday-filter {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .alert-weekday-filter-panel {
        padding: 7px;
    }

    .alert-weekday-filter {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .alert-weekday-filter::-webkit-scrollbar {
        display: none;
    }

    .alert-weekday-filter-button {
        width: 50px;
        min-width: 50px;
        min-height: 55px;
        flex: 0 0 50px;
        padding: 7px 5px;
    }

    .alert-weekday-filter-button span {
        font-size: 12px;
    }

    .alert-weekday-filter-button small {
        font-size: 9px;
    }
}

/* ---------------- 모바일 공통 크기 보정 ---------------- */

@media (max-width: 700px) {
    .dashboard-main {
        padding: 22px 14px 40px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-header h1 {
        margin-top: 3px;
        font-size: 26px;
        line-height: 1.2;
    }

    .page-header > div > p:last-child {
        font-size: 13px;
        line-height: 1.55;
    }

    .dashboard-panel {
        padding: 16px;
        border-radius: 14px;
    }

    .alert-management-page {
        padding-bottom: 45px;
    }
}

@media (max-width: 700px) {
    .alert-list-header {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .alert-list-header > div {
        min-width: 0;
        flex: 1;
    }

    .alert-list-header h2 {
        font-size: 20px;
    }

    .alert-list-header p {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .alert-list-header .secondary-button {
        width: auto;
        min-width: 76px;
        min-height: 36px;
        margin-top: 0;
        padding: 0 11px;
        font-size: 11px;
    }

    .alert-list {
        gap: 9px;
    }
}

@media (max-width: 700px) {
    .alert-card-summary {
        min-height: 60px;
        gap: 8px;
        padding: 10px 11px;
    }

    .alert-card-heading {
        gap: 6px;
    }

    .alert-card-heading h3 {
        font-size: 12px;
        line-height: 1.3;
    }

    .alert-compact-meta {
        gap: 7px;
        margin-top: 5px;
    }

    .alert-compact-meta span,
    .alert-compact-meta strong {
        font-size: 9px;
    }

    .alert-detail-toggle {
        min-height: 32px;
        padding: 0 11px;
        font-size: 9px;
    }

    .alert-detail-chevron {
        font-size: 18px;
    }

    .alert-toggle {
        width: 40px;
        height: 23px;
    }

    .alert-toggle::after {
        top: 3px;
        left: 3px;
        width: 17px;
        height: 17px;
    }

    .alert-toggle.is-enabled::after {
        transform: translateX(17px);
    }
}

@media (max-width: 700px) {
    .alert-detail-information {
        padding: 10px 11px 0;
    }

    .alert-detail-information span,
    .alert-detail-information strong {
        font-size: 9px;
    }

    .alert-card-detail .alert-message-preview {
        margin: 9px 11px 0;
        font-size: 10px;
        line-height: 1.55;
    }

    .alert-card-detail .alert-card-addons {
        margin-right: 11px;
        margin-left: 11px;
    }

    .alert-addon-badge {
        padding: 4px 7px;
        font-size: 9px;
    }

    .alert-card-detail .alert-card-actions {
        margin-top: 10px;
        padding: 10px 11px 11px;
    }

    .alert-card-button {
        min-height: 32px;
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .alert-page-header .primary-button {
        min-height: 40px;
        margin-top: 13px;
        font-size: 12px;
    }

    .alert-summary-grid {
        margin-bottom: 13px;
    }

    .alert-weekday-filter-panel {
        margin-bottom: 13px;
    }
}

@media (max-width: 800px) {
    .member-search-row {
        padding: 14px 14px 0;
    }

    .member-list-toolbar {
        padding:
            14px
            14px
            16px;
    }

    .member-list-controls {
        display: grid;
        grid-template-columns:
            auto
            minmax(0, 1fr)
            minmax(0, 1fr);
        gap: 8px;
    }

    .member-role-filter-button,
    .member-sort-label select {
        width: 100%;
    }

    .member-sort-label {
        min-width: 0;
    }

    .member-sort-label > span {
        display: none;
    }

    .member-role-filter-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 560px) {
    .member-search-row {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        gap: 7px;
    }

    .member-search-clear {
        min-width: auto;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
    }

    .member-list-controls {
        grid-template-columns:
            1fr
            1fr;
    }

    .member-select-all-label {
        grid-column: 1 / -1;
    }

    .member-role-filter-menu {
        width: min(
            300px,
            calc(100vw - 42px)
        );
    }
}

/* 정기알림 모바일 가로 폭 고정 */

@media (max-width: 700px) {
    .alert-management-page {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .alert-management-page > * {
        min-width: 0;
        max-width: 100%;
    }

    .alert-summary-grid,
    .alert-weekday-filter-panel,
    .alert-list-panel,
    .alert-list,
    .alert-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .alert-card-summary {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .alert-card-main,
    .alert-card-heading,
    .alert-compact-meta,
    .alert-card-detail,
    .alert-card-detail-inner {
        min-width: 0;
        max-width: 100%;
    }

    .alert-card-heading h3,
    .alert-compact-meta span,
    .alert-compact-meta strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .alert-card-detail
    .alert-message-preview {
        width: auto;
        max-width: calc(100% - 22px);
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* ---------------- 정기알림 메시지 편집기 ---------------- */

.text-send-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.text-send-page-header > div {
    min-width: 0;
}

.text-send-back-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.alert-composer-schedule {
    border-color: rgba(
        249,
        124,
        27,
        0.26
    );

    background:
        linear-gradient(
            180deg,
            rgba(
                249,
                124,
                27,
                0.055
            ),
            rgba(
                255,
                255,
                255,
                0
            )
        ),
        #ffffff;
}

.alert-composer-schedule .composer-heading h2 {
    margin: 0;
}

.alert-composer-schedule .composer-heading p {
    margin:
        6px
        0
        0;
    line-height: 1.5;
}

.alert-editor-mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(
        249,
        124,
        27,
        0.25
    );
    border-radius: 999px;
    background: rgba(
        249,
        124,
        27,
        0.09
    );
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.alert-editor-weekdays {
    margin-top: 18px;
}

.alert-editor-weekdays legend {
    margin-bottom: 8px;
    color: #515560;
    font-size: 12px;
    font-weight: 800;
}

.alert-editor-weekday-options {
    display: grid;
    grid-template-columns:
        repeat(
            7,
            minmax(
                0,
                1fr
            )
        );
    gap: 8px;
}

.alert-editor-weekday-options label {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.alert-editor-weekday-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.alert-editor-weekday-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: #676c77;
    font-size: 13px;
    font-weight: 800;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.alert-editor-weekday-options label:hover span {
    border-color: rgba(
        249,
        124,
        27,
        0.45
    );
    color: var(--accent);
    transform: translateY(-1px);
}

.alert-editor-weekday-options input:focus-visible + span {
    outline: 3px solid rgba(
        249,
        124,
        27,
        0.14
    );
    outline-offset: 2px;
}

.alert-editor-weekday-options input:checked + span {
    border-color: var(--accent);
    background: rgba(
        249,
        124,
        27,
        0.11
    );
    color: var(--accent);
    box-shadow:
        inset 0 0 0 1px
        rgba(
            249,
            124,
            27,
            0.06
        );
}

.alert-editor-enabled {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 18px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fafafb;
    cursor: pointer;
}

.alert-editor-enabled input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.alert-editor-enabled > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.alert-editor-enabled strong {
    color: var(--text);
    font-size: 13px;
}

.alert-editor-enabled small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.existing-upload-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid #cfe1f6;
    border-radius: 11px;
    background: #f2f7fd;
}

.existing-upload-notice[hidden] {
    display: none !important;
}

.existing-upload-notice > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.existing-upload-notice strong {
    color: #355a83;
    font-size: 12px;
}

.existing-upload-notice span {
    overflow: hidden;
    color: #65788f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.existing-upload-notice .secondary-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
}

.composer-submit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.composer-submit-actions .secondary-button,
.composer-submit-actions .primary-button {
    min-width: 120px;
    text-align: center;
}

@media (max-width: 900px) {
    .alert-editor-weekday-options {
        grid-template-columns:
            repeat(
                4,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (max-width: 700px) {
    .text-send-page-header {
        display: block;
    }

    .text-send-back-button {
        display: flex;
        width: 100%;
        margin-top: 16px;
        justify-content: center;
    }

    .alert-editor-mode-badge {
        align-self: flex-start;
    }

    .composer-submit-actions {
        display: grid;
        grid-template-columns:
            1fr
            1fr;
        width: 100%;
    }

    .composer-submit-actions .secondary-button,
    .composer-submit-actions .primary-button,
    .composer-submit-panel
    .composer-submit-actions button {
        width: 100%;
        min-width: 0;
    }

    .existing-upload-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .existing-upload-notice .secondary-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .alert-editor-weekday-options {
        grid-template-columns:
            repeat(
                4,
                minmax(
                    0,
                    1fr
                )
            );
        gap: 7px;
    }

    .alert-editor-weekday-options span {
        min-height: 39px;
        font-size: 12px;
    }

    .composer-submit-actions {
        grid-template-columns: 1fr;
    }
}

/* 정기알림 요일과 시간 설정 사이 여백 */

.alert-editor-weekdays
+ .composer-grid {
    margin-top: 20px;
}
