@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

:root {
    --brand-25: #f8f5ff;
    --brand-50: #f1ebff;
    --brand-100: #e4d8ff;
    --brand-300: #b89cff;
    --brand-500: #7c3aed;
    --brand-600: #6d28d9;
    --brand-700: #5b21b6;
    --gray-25: #fcfcfd;
    --gray-50: #f9fafb;
    --gray-100: #f2f4f7;
    --gray-200: #e4e7ec;
    --gray-300: #d0d5dd;
    --gray-400: #98a2b3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1d2939;
    --gray-900: #101828;
    --success-500: #12b76a;
    --warning-500: #f79009;
    --error-500: #f04438;
}

* {
    border-color: var(--gray-200);
}

body,
button,
input,
select,
textarea {
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tailadmin-shell {
    min-height: 100vh;
    background: var(--gray-50);
}

.tailadmin-sidebar-wrap {
    width: 290px;
    flex: 0 0 290px;
}

.tailadmin-sidebar {
    display: flex;
    height: 100%;
    width: 290px;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
    background: #fff;
    padding: 0 20px 24px;
}

.tailadmin-sidebar-logo {
    display: flex;
    align-items: center;
    min-height: 92px;
}

.tailadmin-sidebar-logo strong {
    display: block;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.15;
    font-weight: 700;
}

.tailadmin-sidebar-logo small {
    display: block;
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.22);
}

.tailadmin-nav {
    padding-top: 8px;
}

.tailadmin-nav-title {
    margin: 0 0 16px;
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}

.tailadmin-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease;
}

.tailadmin-menu-item svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: var(--gray-500);
    transition: fill 0.16s ease;
}

.tailadmin-menu-item:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.tailadmin-menu-item:hover svg {
    fill: var(--gray-700);
}

.tailadmin-menu-item.active {
    background: var(--brand-50);
    color: var(--brand-500);
}

.tailadmin-menu-item.active svg {
    fill: var(--brand-500);
}

.tailadmin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    background: #fff;
}

.tailadmin-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #fff;
    color: var(--gray-500);
    transition: background 0.16s ease, color 0.16s ease;
}

.tailadmin-icon-button:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.tailadmin-dot {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--warning-500);
    box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.16);
}

.tailadmin-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 430px;
    height: 44px;
    gap: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: transparent;
    padding: 0 12px 0 16px;
    color: var(--gray-500);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.tailadmin-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-800);
    font-size: 14px;
}

.tailadmin-search input::placeholder {
    color: var(--gray-400);
}

.tailadmin-shortcut {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    padding: 4px 7px;
    color: var(--gray-500);
    font-size: 12px;
}

.tailadmin-user {
    align-items: center;
    gap: 10px;
    padding-left: 6px;
}

.tailadmin-user strong,
.tailadmin-user small {
    display: block;
    line-height: 1.2;
}

.tailadmin-user strong {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
}

.tailadmin-user small {
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 12px;
}

.tailadmin-avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--brand-500);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tailadmin-logout {
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    padding: 0 14px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
}

.tailadmin-logout:hover {
    background: var(--gray-100);
}

.text-brand-500 {
    color: var(--brand-500);
}

.card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
    color: var(--gray-800);
}

.card h2,
.card strong,
.card .font-semibold,
.card .font-medium,
.card .text-white {
    color: var(--gray-900) !important;
}

.text-slate-400,
.text-slate-500 {
    color: var(--gray-500) !important;
}

.table {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.45;
}

.table :where(th) {
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.table :where(td) {
    color: var(--gray-700);
    font-weight: 400;
    vertical-align: middle;
}

.table :where(th, td) {
    border-color: var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table td .font-medium,
.table td .font-semibold,
.table td strong {
    color: var(--gray-700) !important;
    font-weight: 400 !important;
}

.table td p {
    margin: 0;
}

.table td p + p {
    margin-top: 2px;
}

.table td .text-sm {
    color: var(--gray-500) !important;
    font-size: 13px;
    font-weight: 400;
}

.input,
.select,
.textarea {
    border-color: var(--gray-300) !important;
    border-radius: 10px;
    background-color: #fff !important;
    color: var(--gray-800) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--gray-400);
}

.btn {
    min-height: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
}

.btn-xs {
    min-height: 28px !important;
    height: 28px !important;
    border-radius: 8px;
    padding: 0 10px !important;
    font-size: 12px !important;
}

form.card.grid .btn {
    justify-self: end;
    min-width: 88px;
}

form.card.grid[method="get"] {
    align-items: end;
    gap: 10px !important;
    border-radius: 14px;
    padding: 14px 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

form.card.grid[method="get"] .input,
form.card.grid[method="get"] .select {
    min-height: 34px;
    height: 34px;
    border-radius: 8px;
    padding-left: 11px;
    padding-right: 11px;
    font-size: 13px;
    line-height: 20px;
}

form.card.grid[method="get"] .select {
    padding-right: 32px;
}

form.card.grid[method="get"] .btn {
    border: 1px solid var(--brand-100) !important;
    background: var(--brand-25) !important;
    color: var(--brand-700) !important;
    min-width: 68px;
    min-height: 34px;
    height: 34px;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
}

form.card.grid[method="get"] .btn:hover {
    border-color: var(--brand-300) !important;
    background: var(--brand-50) !important;
    color: var(--brand-700) !important;
}

.btn-primary {
    border-color: var(--brand-500) !important;
    background: var(--brand-500) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--brand-600) !important;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.table .badge {
    min-height: 22px;
    height: 22px;
    border: 1px solid transparent;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
}

.badge-info,
.badge-primary {
    border-color: var(--brand-100);
    background: var(--brand-50);
    color: var(--brand-700);
}

.badge-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.badge-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.badge-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.badge-ghost {
    border-color: var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-600);
}

.badge-outline {
    border-color: var(--brand-100) !important;
    background: var(--brand-25);
    color: var(--brand-700) !important;
}

.table .badge-success.badge-outline,
.table .badge-success {
    border-color: #bbf7d0 !important;
    background: #f0fdf4;
    color: #166534 !important;
}

.table .badge-error.badge-outline,
.table .badge-error {
    border-color: #fecaca !important;
    background: #fef2f2;
    color: #991b1b !important;
}

.table .badge-warning.badge-outline,
.table .badge-warning {
    border-color: #fde68a !important;
    background: #fffbeb;
    color: #92400e !important;
}

.field-error {
    margin-top: 0.35rem;
    color: var(--error-500);
    font-size: 0.875rem;
}

.admin-modal {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: #fff;
    padding: 0;
    color: var(--gray-800);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.20);
}

.admin-modal[open] {
    display: flex;
    flex-direction: column;
}

.admin-modal > form {
    display: flex;
    min-height: 0;
    max-height: inherit;
    flex-direction: column;
}

.admin-modal::backdrop {
    background: rgba(16, 24, 40, 0.45);
    backdrop-filter: blur(3px);
}

.admin-modal-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-25);
    padding: 20px 24px 18px;
}

.admin-modal-header h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.admin-modal-header p {
    margin: 2px 0 0;
    color: var(--gray-500);
    font-size: 13px;
}

.admin-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
}

.admin-modal-body.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 18px;
}

.admin-modal .form-control .label-text,
.admin-modal .label-text {
    margin-bottom: 6px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
}

.admin-modal .input,
.admin-modal .select {
    height: 42px;
    min-height: 42px;
}

.admin-modal .textarea {
    min-height: 150px;
    line-height: 1.55;
}

.toast-editor-container {
    overflow: hidden;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.toast-editor-container .toastui-editor-defaultUI {
    border: 0;
}

.toast-editor-container .toastui-editor-main {
    min-height: 420px;
}

.toast-editor-container .toastui-editor-ww-container .toastui-editor-contents {
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.thumbnail-preview {
    max-height: 320px;
    min-height: 220px;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.mission-tip-content {
    overflow-wrap: anywhere;
}

.mission-tip-content :first-child {
    margin-top: 0;
}

.mission-tip-content :last-child {
    margin-bottom: 0;
}

.admin-modal .checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.modal-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-25);
    padding: 0 12px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
}

.push-form-body {
    display: grid;
    gap: 24px;
}

.push-form-compact {
    gap: 14px;
    padding: 16px 20px;
}

.push-form .push-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.push-form .push-field .label-text {
    margin-bottom: 0;
}

.push-form .push-field-inline {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
    gap: 8px 14px;
}

.push-form .push-field-inline .label-text {
    padding-top: 10px;
}

.push-form .push-field-inline .field-error {
    grid-column: 2;
}

.push-form-compact .textarea {
    min-height: 92px;
}

.push-form .field-error {
    margin-top: 0;
}

.push-check-row {
    align-self: end;
    min-height: 42px;
}

.push-specific-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    background: #fff;
    padding: 0 8px 0 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.push-specific-selector strong {
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
}

.push-member-modal {
    width: min(860px, calc(100vw - 32px));
}

.push-member-picker {
    display: grid;
    gap: 12px;
}

.push-member-picker-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.push-member-picker-toolbar strong {
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
}

.push-member-transfer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.push-member-transfer-panel {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.push-member-transfer-title {
    color: var(--gray-800);
    font-size: 13px;
    font-weight: 700;
}

.push-member-table-wrap {
    min-height: 310px;
    max-height: 310px;
    overflow: auto;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    background: #fff;
}

.push-member-transfer-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--gray-700);
    font-size: 13px;
}

.push-member-transfer-table th,
.push-member-transfer-table td {
    border-bottom: 1px solid var(--gray-200);
    padding: 9px 10px;
    text-align: left;
    vertical-align: middle;
}

.push-member-transfer-table th:first-child,
.push-member-transfer-table td:first-child {
    width: 44px;
    text-align: center;
}

.push-member-transfer-table th:last-child,
.push-member-transfer-table td:last-child {
    width: 82px;
}

.push-member-transfer-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--gray-25);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 700;
}

.push-member-transfer-table tbody tr:hover {
    background: var(--gray-50);
}

.push-member-transfer-table tbody tr:last-child td {
    border-bottom: 0;
}

.push-member-transfer-actions {
    display: grid;
    gap: 8px;
    justify-items: stretch;
}

.push-member-readonly-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

@media (max-width: 767px) {
    .push-member-transfer {
        grid-template-columns: 1fr;
    }

    .push-member-transfer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

[data-specific-member-field][hidden] {
    display: none !important;
}

.admin-modal-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-25);
    padding: 14px 24px;
}

.admin-modal-footer .btn {
    min-width: 74px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px 16px;
    font-size: 14px;
}

.admin-detail-grid dt {
    color: var(--gray-500);
    font-weight: 600;
}

.admin-detail-grid dd {
    color: var(--gray-800);
    min-width: 0;
    word-break: break-word;
}

.user-detail-modal {
    width: min(1040px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
}

.admin-modal-close,
.user-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
}

.user-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.user-detail-summary-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-detail-summary > div {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-25);
    padding: 14px 16px;
}

.user-detail-summary span {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
}

.user-detail-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--gray-900);
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
}

.user-detail-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.user-detail-section {
    min-width: 0;
}

.user-detail-section h4 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 14px;
    font-weight: 700;
}

.user-detail-list {
    display: grid;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.user-detail-list > div {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 46px;
    border-bottom: 1px solid var(--gray-200);
}

.user-detail-list > div:last-child {
    border-bottom: 0;
}

.user-detail-list dt,
.user-detail-list dd {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 11px 14px;
}

.user-detail-list dt {
    background: var(--gray-25);
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.user-detail-list dd {
    min-width: 0;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
}

.user-access-panel {
    margin-top: 18px;
}

.user-access-panel h4 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 14px;
    font-weight: 700;
}

.user-access-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--gray-700);
    font-size: 13px;
}

.user-access-table th,
.user-access-table td {
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.user-access-table th {
    background: var(--gray-25);
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.user-access-table tbody tr:last-child td {
    border-bottom: 0;
}

.user-access-empty {
    margin: 0;
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
    padding: 14px;
    color: var(--gray-500);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 640px) {
    .user-detail-summary,
    .user-detail-summary-wide,
    .user-detail-columns,
    .user-detail-list > div {
        grid-template-columns: 1fr;
    }

    .user-detail-list dt {
        padding-bottom: 4px;
    }

    .user-detail-list dd {
        padding-top: 4px;
    }
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background:
            linear-gradient(135deg, rgba(248, 245, 255, 0.96), rgba(255, 255, 255, 0.98)),
            radial-gradient(circle at right top, rgba(124, 58, 237, 0.12), transparent 18rem);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
}

.dashboard-metrics-compact .metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 16px;
}

.dashboard-metrics-compact .metric-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    border-radius: 11px;
}

.dashboard-metrics-compact .metric-icon svg {
    width: 22px;
    height: 22px;
}

.dashboard-metrics-compact .metric-card strong {
    margin-top: 4px;
    font-size: 24px;
    line-height: 30px;
}

.dashboard-metrics-compact .metric-card span {
    margin-top: 4px;
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-500);
    margin-bottom: 18px;
}

.metric-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.metric-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 500;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    color: var(--gray-900);
    font-size: 30px;
    line-height: 38px;
    font-weight: 600;
}

.metric-card span {
    display: block;
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.section-title p {
    margin: 2px 0 0;
    color: var(--gray-500);
    font-size: 13px;
}

.score-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.score-cell > span {
    width: 42px;
    color: var(--gray-700);
    font-size: 13px;
}

.score-bar {
    position: relative;
    width: 84px;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--brand-50);
}

.score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-500);
}

.shortcut-list {
    display: grid;
    gap: 10px;
}

.shortcut-list a {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.shortcut-list a:hover {
    border-color: var(--brand-300);
    background: var(--brand-25);
    transform: translateY(-1px);
}

.shortcut-list span {
    display: block;
    color: var(--gray-900);
    font-size: 14px;
    font-weight: 500;
}

.shortcut-list strong {
    display: block;
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 400;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 16px;
}

.dashboard-chart-card {
    padding: 20px;
}

.modern-bar-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
    min-height: 240px;
    border-radius: 16px;
    background:
            linear-gradient(to top, rgba(242, 244, 247, 0.9) 1px, transparent 1px) 0 0 / 100% 25%,
            linear-gradient(180deg, rgba(248, 245, 255, 0.64), rgba(255, 255, 255, 0.9));
    padding: 24px 18px 16px;
}

.bar-item {
    display: grid;
    grid-template-rows: 1fr auto auto;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    height: 200px;
}

.bar-track {
    display: flex;
    align-items: flex-end;
    width: 42px;
    height: 150px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.bar-fill {
    width: 100%;
    min-height: 10px;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--brand-300), var(--brand-600));
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.24);
}

.bar-item strong {
    color: var(--gray-900);
    font-size: 13px;
    font-weight: 600;
}

.bar-item span {
    max-width: 100%;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-chart {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px dashed var(--gray-200);
    border-radius: 16px;
    color: var(--gray-500);
    font-size: 13px;
}

.dashboard-status-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 240px;
}

.status-ring {
    display: grid;
    place-items: center;
    align-content: center;
    width: 168px;
    height: 168px;
    border-radius: 999px;
    background:
            radial-gradient(circle at center, #fff 0 56%, transparent 57%),
            conic-gradient(var(--brand-500) 0 72%, var(--brand-100) 72% 100%);
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.16);
}

.status-ring span {
    color: var(--gray-900);
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
}

.status-ring small {
    color: var(--gray-500);
    font-size: 12px;
}

.status-list {
    display: grid;
    gap: 10px;
}

.status-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-25);
    padding: 12px;
}

.status-list p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

.status-list strong {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 600;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.status-dot.brand {
    background: var(--brand-500);
}

.status-dot.warning {
    background: var(--warning-500);
}

.status-dot.error {
    background: var(--error-500);
}

.subscriber-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
}

.subscriber-line-panel {
    min-width: 0;
}

.subscriber-line-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    min-height: 220px;
    border-radius: 16px;
    background:
            linear-gradient(to top, rgba(242, 244, 247, 0.95) 1px, transparent 1px) 0 0 / 100% 25%,
            linear-gradient(180deg, rgba(248, 245, 255, 0.72), rgba(255, 255, 255, 0.96));
    padding: 28px 18px 18px;
}

.subscriber-point {
    display: grid;
    justify-items: center;
    align-items: end;
    gap: 7px;
    min-width: 0;
}

.subscriber-stem {
    display: block;
    width: 100%;
    max-width: 92px;
    min-height: 38px;
    border-radius: 14px 14px 8px 8px;
    background:
            linear-gradient(180deg, rgba(184, 156, 255, 0.92), rgba(124, 58, 237, 0.92));
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.18);
}

.subscriber-point strong {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.08);
}

.subscriber-point small {
    max-width: 100%;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscriber-summary-panel {
    display: grid;
    gap: 12px;
}

.subscriber-total {
    border: 1px solid var(--brand-100);
    border-radius: 16px;
    background: var(--brand-25);
    padding: 18px;
}

.subscriber-total span {
    color: var(--gray-500);
    font-size: 13px;
}

.subscriber-total strong {
    display: block;
    margin-top: 6px;
    color: var(--gray-900);
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
}

.subscriber-total p {
    margin: 6px 0 0;
    color: var(--gray-500);
    font-size: 12px;
}

.subscriber-status-list {
    display: grid;
    gap: 10px;
}

.subscriber-status-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.subscriber-status-list p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

.subscriber-status-list strong {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 600;
}

.subscriber-month-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(18px, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 260px;
    overflow-x: auto;
    border-radius: 16px;
    background:
            linear-gradient(to top, rgba(242, 244, 247, 0.95) 1px, transparent 1px) 0 0 / 100% 25%,
            linear-gradient(180deg, rgba(248, 245, 255, 0.72), rgba(255, 255, 255, 0.96));
    padding: 26px 18px 16px;
}

.subscriber-day {
    display: grid;
    grid-template-rows: 1fr auto auto;
    justify-items: center;
    gap: 6px;
    min-width: 18px;
    height: 220px;
}

.subscriber-day-track {
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-width: 12px;
    max-width: 22px;
    height: 160px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.subscriber-day-fill {
    display: block;
    width: 100%;
    min-height: 4px;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--brand-300), var(--brand-600));
    box-shadow: 0 10px 18px rgba(124, 58, 237, 0.22);
}

.subscriber-day strong {
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
}

.subscriber-day small {
    color: var(--gray-500);
    font-size: 10px;
    writing-mode: vertical-rl;
}

.subscriber-line-modern {
    border-radius: 18px;
    background:
            linear-gradient(to top, rgba(242, 244, 247, 0.94) 1px, transparent 1px) 0 0 / 100% 25%,
            linear-gradient(to right, rgba(242, 244, 247, 0.72) 1px, transparent 1px) 0 0 / 10% 100%,
            linear-gradient(180deg, rgba(248, 245, 255, 0.72), rgba(255, 255, 255, 0.96));
    padding: 24px 22px 18px;
}

.subscriber-line-stage {
    position: relative;
    height: 300px;
}

.subscriber-line-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.subscriber-line-area {
    fill: rgba(124, 58, 237, 0.10);
}

.subscriber-line-path {
    fill: none;
    stroke: var(--brand-500);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 10px 16px rgba(124, 58, 237, 0.18));
}

.subscriber-line-point {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13), 0 8px 16px rgba(16, 24, 40, 0.14);
}

.subscriber-line-point span {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    min-width: 22px;
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    background: #fff;
    padding: 2px 6px;
    color: var(--brand-700);
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.subscriber-line-point:hover span {
    opacity: 1;
}

.subscriber-line-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
    color: var(--gray-500);
    font-size: 12px;
}

.chart-template-card {
    overflow: hidden;
}

.chart-template-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.chart-template-summary > div {
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, var(--gray-25));
    padding: 14px 16px;
}

.chart-template-summary span {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 500;
}

.chart-template-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--gray-900);
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
}

.apex-dashboard-chart {
    min-height: 360px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background:
            radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 22rem),
            #fff;
    padding: 10px 8px 4px;
}

.apexcharts-tooltip {
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.12) !important;
}

.apexcharts-tooltip-title {
    border-bottom-color: var(--gray-200) !important;
    background: var(--gray-25) !important;
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    .chart-template-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-chart-grid,
    .dashboard-status-panel,
    .subscriber-chart-grid {
        grid-template-columns: 1fr;
    }

    .status-ring {
        margin: 0 auto;
    }
}

@media (min-width: 640px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .dashboard-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }
}

.admin-grid {
    display: grid;
    gap: 1rem;
}

.login-page {
    min-height: 100vh;
    background:
            radial-gradient(circle at top left, rgba(124, 58, 237, 0.11), transparent 28rem),
            var(--gray-50);
}

.login-page-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-card-centered {
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    background: #fff;
    padding: 32px;
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
}

.login-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.20);
}

.text-brand-300 {
    color: var(--brand-300);
}

@media (min-width: 1024px) {
    .admin-grid.cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
