:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.6);
    
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-shadow: rgba(59, 130, 246, 0.15);
    
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: rgba(139, 92, 246, 0.1);
    
    --glass-background: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===== Mobile governance proposal refresh ===== */
@media (max-width: 767px) {
    .mobile-gov-proposal-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 10px 92px;
        color: #e5edf9;
    }

    .mobile-gov-proposal-header-card {
        margin: 0;
        padding: 12px;
        border: 1px solid rgba(45, 212, 191, 0.28);
        border-radius: 14px;
        background:
            radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.18), transparent 38%),
            linear-gradient(180deg, rgba(16, 25, 42, 0.94), rgba(8, 13, 24, 0.94));
        box-shadow: 0 14px 34px rgba(2, 6, 23, 0.32);
        overflow: hidden;
    }

    .mobile-gov-proposal-header-card::before {
        content: none;
    }

    .mobile-gov-proposal-header {
        text-align: left;
    }

    .mobile-gov-proposal-title,
    h1.mobile-gov-proposal-title {
        margin: 0;
        color: #f8fbff;
        font-size: 20px;
        font-weight: 950;
        line-height: 1.12;
        letter-spacing: 0;
        text-align: left;
        background: none;
        -webkit-text-fill-color: currentColor;
        text-shadow: none;
        animation: none;
    }

    .mobile-gov-proposal-title::before {
        content: "\f15c";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-right: 8px;
        border-radius: 10px;
        background: linear-gradient(135deg, #5eead4, #60a5fa);
        color: #06111c;
        font: var(--fa-font-solid);
        font-size: 14px;
        vertical-align: middle;
    }

    .mobile-gov-proposal-description {
        margin: 7px 0 0 40px;
        color: #8fb0dc;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.25;
    }

    .mobile-gov-proposal-info-section {
        margin: 0;
        padding: 9px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.48);
    }

    .mobile-gov-proposal-guide {
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #9fb1ce;
        font-size: 11px;
        line-height: 1.35;
    }

    .mobile-gov-proposal-guide i {
        color: #5eead4;
    }

    .mobile-gov-proposal-id-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
    }

    .mobile-gov-proposal-id-item {
        min-width: 0;
        gap: 6px;
        padding: 8px;
        border: 1px solid rgba(96, 165, 250, 0.18);
        border-radius: 10px;
        background: rgba(2, 6, 23, 0.34);
    }

    .mobile-gov-proposal-label {
        gap: 6px;
        color: #e5edf9;
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-gov-proposal-id-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }

    .mobile-gov-proposal-id {
        overflow: hidden;
        color: #8fb0dc;
        font-size: 10px;
        white-space: nowrap;
        text-overflow: ellipsis;
        word-break: normal;
    }

    .mobile-btn-copy {
        min-height: 26px;
        padding: 0 8px !important;
        border: 1px solid rgba(45, 212, 191, 0.34) !important;
        border-radius: 8px !important;
        background: rgba(20, 184, 166, 0.16) !important;
        color: #ccfbf1 !important;
        font-size: 10px !important;
        font-weight: 900 !important;
    }

    .mobile-gov-proposal-counts {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        margin: 0;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    .mobile-gov-proposal-counts::-webkit-scrollbar {
        display: none;
    }

    .mobile-gov-proposal-counts button {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 11px !important;
        border: 1px solid rgba(148, 163, 184, 0.22) !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, 0.72) !important;
        color: #c7d7f7 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        box-shadow: none !important;
    }

    .mobile-gov-proposal-counts button.active {
        border-color: rgba(45, 212, 191, 0.56) !important;
        background: rgba(20, 184, 166, 0.22) !important;
        color: #f8ffff !important;
    }

    .mobile-gov-proposal-list {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mobile-gov-proposal-body {
        display: grid;
        gap: 8px;
        max-height: none;
        overflow: visible;
    }

    .mobile-gov-proposal-item {
        position: relative;
        padding: 11px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 13px;
        background: linear-gradient(180deg, rgba(16, 25, 42, 0.9), rgba(9, 15, 27, 0.92));
        box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
        transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    }

    .mobile-gov-proposal-item::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 3px;
        border-radius: 13px 0 0 13px;
        background: #5eead4;
        opacity: 0.9;
    }

    .mobile-gov-proposal-item[data-status="ratified"]::before,
    .mobile-gov-proposal-item[data-status="enacted"]::before {
        background: #60a5fa;
    }

    .mobile-gov-proposal-item[data-status="dropped"]::before,
    .mobile-gov-proposal-item[data-status="expired"]::before {
        background: #fb7185;
    }

    .mobile-gov-proposal-item:active {
        transform: scale(0.99);
        border-color: rgba(45, 212, 191, 0.4);
        background: rgba(15, 23, 42, 0.96);
    }

    .mobile-proposal-title-row {
        margin: 0 0 10px;
    }

    .mobile-proposal-title-cell {
        gap: 8px;
        align-items: flex-start;
    }

    .mobile-proposal-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 30px;
        height: 22px;
        margin: 0;
        border: 1px solid rgba(45, 212, 191, 0.28);
        border-radius: 999px;
        background: rgba(20, 184, 166, 0.14);
        color: #99f6e4;
        font-size: 11px;
        font-weight: 950;
    }

    .mobile-proposal-title {
        display: -webkit-box;
        overflow: hidden;
        color: #f8fbff;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.35;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-proposal-details-row {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
        gap: 7px;
        align-items: center;
    }

    .mobile-proposal-details-cell {
        justify-content: flex-start;
        min-width: 0;
        gap: 6px;
    }

    .mobile-proposal-details-cell.mobile-status-cell {
        justify-content: flex-end;
    }

    .mobile-card-label,
    .mobile-epoch-label {
        color: #8fb0dc;
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-type-badge,
    .mobile-status-badge {
        max-width: 100%;
        overflow: hidden;
        padding: 4px 7px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        text-overflow: ellipsis;
    }

    .mobile-status-badge.active {
        background: rgba(52, 211, 153, 0.16);
        color: #86efac;
    }

    .mobile-status-badge.ratified,
    .mobile-status-badge.enacted {
        background: rgba(96, 165, 250, 0.18);
        color: #bfdbfe;
    }

    .mobile-status-badge.dropped,
    .mobile-status-badge.expired {
        background: rgba(248, 113, 113, 0.16);
        color: #fecaca;
    }

    .mobile-epoch-info {
        gap: 3px;
        min-width: 0;
    }

    .mobile-epoch-label {
        text-align: left;
    }

    .mobile-epoch-period {
        overflow: hidden;
        color: #dbeafe;
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mobile-empty-gov-proposal {
        border: 1px dashed rgba(148, 163, 184, 0.3);
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.5);
    }
}

/* ===== 거버넌스 제안서 상세 페이지 스타일 ===== */
.proposal-detail-container {
    font-size: 0.85rem;
}

.proposal-detail-container * {
    font-size: inherit;
}

/* 제목과 특별한 요소들은 원래 크기 유지 */
.proposal-detail-container h1,
.proposal-detail-container h2,
.proposal-detail-container h3,
.proposal-detail-container .proposal-title,
.proposal-detail-container .vote-title,
.proposal-detail-container .vote-graph-title {
    font-size: 1rem;
}

.proposal-detail-container .proposal-title {
    font-size: 1.1rem;
}

.proposal-detail-container .vote-title {
    font-size: 1.05rem;
}

/* 공통 말줄임표 스타일 */
.proposal-detail-container .proposal-title,
.proposal-detail-container .vote-title,
.proposal-detail-container .vote-graph-title,
.proposal-detail-container .title-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.proposal-detail-container .title-label {
    display: inline-block;
    max-width: 120px;
}

/* ===== 메인 컨테이너 스타일 ===== */
.notice-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    padding-top: 10px !important;
}

.notice-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientMove 15s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.notice-container {
    width: 100%;
    margin-top: 1rem;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 12px -1px rgba(0, 0, 0, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ===== 헤더 스타일 ===== */
.notice-header {
    width: 100%;
    padding: 1.25rem 2rem 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--accent);
    background: linear-gradient(to right, var(--accent-light), transparent);
}

.notice-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    text-shadow: 0 0 20px var(--accent);
}

.notice-title::before {
    content: '📢';
    font-size: 1.875rem;
    line-height: 1;
    margin-right: 0.75rem;
}

.notice-description {
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1.2;
    margin-left: 1rem;
    padding-top: 0.5rem;
    font-weight: 600;
}

/* ===== 컨트롤 영역 ===== */
.notice-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.3rem;
    border-bottom: 1px solid var(--border-primary);
}

.board-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.total-count {
    font-weight: 600;
}

.board-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-write {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-write:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.btn-write:active {
    transform: translateY(0);
}

/* ===== 테이블 스타일 ===== */
.notice-list {
    padding: 0.5rem 1rem;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.5rem;
    overflow: hidden;
    min-width: 300px;
    table-layout: auto;
}

.notice-table thead {
    background: rgba(139, 92, 246, 0.1);
}

.notice-table th {
    padding: 0.25rem 0.3rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.95rem;
    height: 22px;
    /* 기본 크기 설정 */
    width: 160px;
}

/* 각 th별 개별 크기 설정 */
.notice-table th.col-num {
    min-width: 40px;
    max-width: 42px;
}

.notice-table th.col-title {
    min-width: 200px;
    max-width: 400px;
    width: 300px;
    text-align: left;
}

/* .notice-table th.col-status 설정 제거 - .col-status 클래스로 통일 */

/* .notice-table th.col-type 설정 제거 - .col-type 클래스로 통일 */

.notice-table th.col-date {
    min-width: 50px;
    max-width: 55px;
}

.notice-table tbody tr {
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.notice-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
    transform: translateX(4px);
}

.notice-table tbody tr:last-child {
    border-bottom: none;
}

.notice-table td {
    padding: 0.22rem 0.3rem;
    font-size: 0.85rem;
    height: 22px;
    text-align: center;
}

/* ===== 컬럼 크기 설정 ===== */
/* 테이블 컬럼 크기 설정 */
.col-num { 
    min-width: 50px; 
    max-width: 60px; 
    width: 55px;
}
.col-title { 
    min-width: 200px; 
    max-width: 400px; 
    width: 300px;
    text-align: left; 
}
.col-author { 
    min-width: 80px; 
    max-width: 120px; 
    width: 100px;
}
.col-date { 
    min-width: 80px; 
    max-width: 100px; 
    width: 90px;
}
.col-views { 
    min-width: 60px; 
    max-width: 80px; 
    width: 70px;
}
.col-status { 
    min-width: 60px; 
    max-width: 80px; 
    width: 70px;
}
.col-type { 
    min-width: 70px; 
    max-width: 720px; 
    width: 100px;
}

/* DREP ID 컬럼 줄바꿈 방지 */
.notice-table td.col-status {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    min-width: 180px;
}

.notice-table td.col-status .drep-id-copy-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-table td.col-status .drep-id {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    vertical-align: middle;
}

.notice-table td.col-status .btn-copy {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 테이블 성능 최적화 */
.notice-table {
    contain: layout style paint;
}

.notice-table tbody {
    contain: layout style paint;
}

.notice-table tr {
    contain: layout style paint;
}

/* 가상 스크롤링을 위한 고정 높이 */
.notice-list {
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* 스크롤바 스타일링 */
.notice-list::-webkit-scrollbar {
    width: 8px;
}

.notice-list::-webkit-scrollbar-track {
    background: var(--border-primary);
    border-radius: 4px;
}

.notice-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.notice-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

.notice-table td.col-status .drep-id {
    display: inline-block;
    max-width: calc(100% - 60px); /* 버튼 공간 확보 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.notice-table td.col-status .btn-copy {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0; /* 버튼 크기 고정 */
}

.col-num, .notice-number {
    text-align: center !important;
    vertical-align: middle;
}

.notice-table td.col-num, .notice-table td.notice-number {
    text-align: center !important;
    vertical-align: middle;
}

/* 제안서 목록 테이블 제목 컬럼(col-title)만 중앙정렬 */
.notice-table th.col-title, .notice-table td.col-title {
    text-align: center;
    vertical-align: middle;
}

/* col-title-cell 내부의 텍스트도 중앙정렬 */
.notice-title-cell {
    text-align: center;
    vertical-align: middle;
}

/* col-title 내 a 태그(제목)도 중앙정렬 */
.notice-title-cell .title-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* ===== 에포크 컬럼 스타일 ===== */
.notice-date {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
}

.notice-title-cell {
    text-align: left;
}

.title-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-text {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
}

.notice-table tbody tr:hover .title-text {
    color: var(--accent);
}

.title-text:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* ===== 배지 스타일 ===== */
.important-badge {
    background: #ef4444;
    color: white; 
}

.new-badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== DREP 요약 통계 ===== */
.drep-summary-stats {
    display: flex;
    justify-content: stretch;
    margin: 2rem 0;
    width: 100%;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-width: 100%;
}

.summary-table thead {
    display: flex;
    width: 100%;
    min-width: 100%;
}

.summary-table tbody {
    display: flex;
    width: 100%;
    min-width: 100%;
}

.summary-table tr {
    display: flex;
    width: 100%;
    min-width: 100%;
}

.summary-table th {
    background: var(--accent);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.summary-table td {
    padding: 1rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 500;
    border-top: 1px solid var(--border-primary);
    flex: 1;
}

/* 각 컬럼별 크기 설정 */
.summary-table th:nth-child(1),
.summary-table td:nth-child(1) {
    min-width: 80px;
    flex: 1;
}

.summary-table th:nth-child(2),
.summary-table td:nth-child(2) {
    min-width: 200px;
    flex: 2;
}

.summary-table th:nth-child(3),
.summary-table td:nth-child(3) {
    min-width: 150px;
    flex: 1.5;
}

.summary-table th:nth-child(4),
.summary-table td:nth-child(4) {
    min-width: 250px;
    flex: 2.5;
}

.summary-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.summary-table .positive-change {
    color: #10b981;
    font-weight: 600;
}

.summary-table .negative-change {
    color: #ef4444;
    font-weight: 600;
}

.drep-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.drep-summary-card {
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.7rem;
    background: rgba(15, 23, 42, 0.5);
}

.drep-summary-label {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 800;
}

.drep-summary-value {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.28rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 850;
}

.drep-change {
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    font-size: 0.72rem;
    font-weight: 800;
}

.drep-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.2rem 1rem 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-primary);
    border-bottom: 0;
    border-radius: 0.65rem 0.65rem 0 0;
    background: rgba(15, 23, 42, 0.52);
}

.drep-table-toolbar-title {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-width: 0;
}

.drep-table-toolbar-title span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 850;
}

.drep-table-toolbar-title strong {
    color: var(--text-tertiary);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.drep-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 1 360px;
    min-width: 0;
    padding: 0.42rem 0.68rem;
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
    color: var(--text-tertiary);
}

.drep-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.82rem;
}

.drep-search-input::placeholder {
    color: var(--text-tertiary);
}

.mobile-drep-result-count {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-drep-result-count {
    margin-top: 0.45rem;
    text-align: right;
}

.pc-drep-status .notice-container {
    border-radius: 0.8rem;
}

.pc-drep-status .notice-list {
    padding: 0 1rem 1rem;
    max-height: 640px;
}

.pc-drep-status .notice-table {
    table-layout: fixed;
    border: 1px solid var(--border-primary);
    border-radius: 0 0 0.65rem 0.65rem;
}

.pc-drep-status .notice-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.pc-drep-status .notice-table th {
    height: 34px;
    font-size: 0.78rem;
    text-transform: none;
}

.pc-drep-status .notice-table td {
    height: 34px;
    padding: 0.32rem 0.45rem;
    font-size: 0.82rem;
}

.pc-drep-status .col-num {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
}

.pc-drep-status .col-title {
    width: 28%;
    min-width: 180px;
    max-width: none;
}

.pc-drep-status .col-type {
    width: 120px;
    min-width: 110px;
    max-width: 140px;
}

.pc-drep-status .col-delegators {
    width: 95px;
}

.pc-drep-status .col-active {
    width: 78px;
}

.pc-drep-status .col-status {
    width: 190px;
    min-width: 180px;
    max-width: 210px;
}

.pc-drep-status .notice-title-cell .title-content {
    justify-content: flex-start;
}

.pc-drep-status .notice-title-cell .title-text {
    max-width: 100%;
    text-align: left;
}

.notice-delegators {
    color: var(--text-primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.notice-active {
    text-align: center;
}

.drep-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 24px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    color: #fff;
    white-space: nowrap;
}

.drep-active-badge.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.drep-active-badge.inactive {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.pc-drep-status .notice-number {
    color: var(--text-secondary);
    font-weight: 800;
}

.pc-drep-status .notice-type {
    color: #c4b5fd;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mobile-drep-table-container {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.mobile-drep-table {
    width: 100%;
}

.mobile-table-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: none;
    overflow: visible;
}

.mobile-data-row {
    display: block;
    padding: 0.38rem 0.5rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.52rem;
    background: rgba(15, 23, 42, 0.56);
}

.mobile-data-row:hover {
    background: rgba(139, 92, 246, 0.08);
}

.mobile-drep-one-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    white-space: nowrap;
}

.mobile-drep-one-line .mobile-rank-number {
    width: 2.1rem;
    flex: 0 0 2.1rem;
    font-size: 0.68rem;
    text-align: right;
}

.mobile-drep-one-line .mobile-drep-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-primary);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-drep-amount-compact,
.mobile-drep-delegators-compact {
    flex: 0 0 auto;
    padding: 0.08rem 0.3rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-drep-one-line .drep-active-badge {
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 18px;
    padding: 0.08rem 0.32rem;
    font-size: 0.62rem;
}

.mobile-btn-copy.compact {
    padding: 0.18rem 0.42rem;
    border-radius: 0.35rem;
    font-size: 0.62rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.sr-drep-id {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ===== 빈 상태 ===== */
.empty-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.empty-text h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.empty-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* ===== 페이지네이션 ===== */
.notice-pagination {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-primary);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-primary);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-btn.prev,
.page-btn.next {
    font-weight: 600;
}

/* ===== 작성 폼 ===== */
.write-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.write-form-container.hidden {
    display: none;
}

.write-form {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.form-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ===== 폼 스타일 ===== */
.notice-form {
    padding: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.input-field,
.textarea-field {
    position: relative;
}

.input-field i,
.textarea-field i {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-tertiary);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.input-field input,
.textarea-field textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.textarea-field textarea {
    min-height: 200px;
    resize: vertical;
    padding-top: 1rem;
}

.input-field input:hover,
.textarea-field textarea:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 1px var(--accent-light);
}

.input-field input:focus,
.textarea-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-light);
}

.input-field input:focus + i,
.textarea-field textarea:focus + i {
    color: var(--accent);
}

.input-field input::placeholder,
.textarea-field textarea::placeholder {
    color: var(--text-tertiary);
}

/* ===== DRep 정보 박스 ===== */
.drep-info-box {
    width: 100%;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--accent-light);
    border-radius: 0.75rem;
    padding: 0.5rem 0.5rem;
}

.drep-guide-text {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 20px;
}

.drep-id-list {
    display: flex;
    flex-direction: column;
}

.drep-id-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin-left: 20px;
}

.drep-label {
    color: var(--text-primary);
    font-weight: 700;
    min-width: 80px;
    flex-shrink: 0;
}

.drep-id-copy-wrap {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex: 1 1 220px;
    min-width: 0;
    overflow: hidden;
}

.drep-id {
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
    color: var(--text-secondary);
    background: rgba(30,41,59,0.5);
    padding: 0.2rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 460px;
    flex: 1;
}

.btn-copy {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0.4rem;
    padding: 0.08rem 0.38rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    min-width: 40px;
    height: 22px;
    line-height: 1.1;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--accent-dark);
}

.btn-copy.completed {
    background: #22c55e;
    color: #fff;
    border: none;
}

.btn-copy.completed:hover {
    background: #16a34a;
}

/* ===== 거버넌스 목록 요약/필터 ===== */
.gov-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 1rem 0.25rem;
    border-bottom: 1px solid var(--border-primary);
}

.gov-list-counts,
.mobile-gov-proposal-counts {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.gov-count-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border-primary);
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.gov-count-chip:hover,
.gov-count-chip.active {
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--accent);
    color: var(--text-primary);
}

.gov-count-chip.active-status {
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.gov-count-chip.ratified {
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.gov-count-chip.enacted {
    border-color: rgba(20, 184, 166, 0.45);
    color: #5eead4;
}

.gov-count-chip.dropped {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fca5a5;
}

.gov-count-chip.expired {
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.mobile-gov-proposal-counts {
    justify-content: center;
    margin: 0 0 0.8rem;
}

.mobile-gov-proposal-counts button {
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.mobile-gov-proposal-counts button:hover,
.mobile-gov-proposal-counts button.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ===== 상태 뱃지 스타일 ===== */
.status-badge {
    padding: 0.15rem 0.1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00ffd5 0%, #00b4ff 100%);
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.3);
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.status-badge.active {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    width: 100%;
    height: 28px;
}

.status-badge.ratified {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    width: 100%;
    height: 28px;
}

.status-badge.enacted {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
    width: 100%;
    height: 28px;
}

.status-badge.dropped {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
    width: 100%;
    height: 28px;
}

.status-badge.expired {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow: 0 0 15px rgba(158, 158, 158, 0.3);
    width: 100%;
    height: 28px;
}

/* 제안타입별 색상 */
.status-badge.type {
    font-size: 0.75rem;
    width: 100%;
    height: 28px;
}

.status-badge.type.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.status-badge.type.action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.status-badge.type.treasury {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.status-badge.type.parameter {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.status-badge.type.newconstitution {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.status-badge.type.hardfork {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

/* ===== 반응형 스타일 ===== */
@media (max-width: 600px) {
    .drep-id-row {
        flex-direction: row;
        align-items: center;
    }
    
    .drep-label {
        min-width: 70px;
        font-size: 0.97rem;
        flex-shrink: 0;
    }
    
    .drep-id-copy-wrap {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        width: 100%;
        overflow: hidden;
    }
    
    .drep-id {
        font-size: 0.93rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .btn-copy {
        flex-shrink: 0;
    }
}

/* ===== 거버넌스 제안서 상세 페이지 스타일 ===== */
.proposal-header {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    text-align: center;
    min-width: 300px;
    max-width: 100%;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.proposal-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    animation: titleGlow 2s ease-in-out infinite alternate;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.title-label {
    color: #8b5cf6;
    font-weight: 800;
    margin-right: 0.8rem;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    animation: labelPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 0;
    max-width: 120px;
    display: inline-block;
}

.title-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)); }
}

@keyframes labelPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.proposal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    font-size: 0.80rem;
    justify-content: space-evenly;
    text-align: center;
    width: 100%;
}

.meta-item-compact {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.meta-item-compact i {
    font-size: 0.95rem;
    color: var(--accent);
}

/* ===== 상세 페이지 배지 스타일 ===== */
.status-badge-detail {
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    display: inline-block;
    text-align: center;
    min-width: 70px;
}

.status-badge-detail.active {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.18);
}

.status-badge-detail.ratified {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.18);
}

.status-badge-detail.enacted {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.18);
}

.status-badge-detail.dropped {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.18);
}

.status-badge-detail.expired {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow: 0 0 8px rgba(158, 158, 158, 0.18);
}

.mobile-status-badge.active,
.mobile-status-badge-detail.active {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.mobile-status-badge.ratified,
.mobile-status-badge-detail.ratified {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.mobile-status-badge.enacted,
.mobile-status-badge-detail.enacted {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.mobile-status-badge.dropped,
.mobile-status-badge-detail.dropped {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
}

.mobile-status-badge.expired,
.mobile-status-badge-detail.expired {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
}

.type-badge-detail {
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    display: inline-block;
    text-align: center;
    min-width: 90px;
}

.type-badge-detail.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.type-badge-detail.action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.type-badge-detail.treasury {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.type-badge-detail.parameter {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.type-badge-detail.newconstitution {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.type-badge-detail.hardfork {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* ===== 투표 섹션 ===== */
.vote-summary-section {
    margin: 0 0 1.5rem 0;
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.vote-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.vote-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vote-overview-card {
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.5);
}

.vote-overview-label {
    color: var(--text-tertiary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vote-overview-main {
    margin-top: 0.25rem;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.vote-overview-sub {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: keep-all;
}

.vote-bar-group {
    margin-bottom: 5px;
}

.vote-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.80rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    position: relative;
}

.vote-bar-labels .vote-bar-label.left {
    position: absolute;
    left: 0;
    top: -1.5rem;
}

.vote-bar-labels .vote-bar-label.right {
    position: absolute;
    right: 0;
    top: -1.5rem;
}

.vote-bar-label.left {
    margin-right: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 36px;
    text-align: right;
}

.vote-bar-label.right {
    margin-left: 0.7rem;
    font-weight: 600;
    color: #ef4444;
    min-width: 36px;
    text-align: left;
}

.vote-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
}

.vote-bar-container {
    flex: 1;
    position: relative;
    padding-bottom: 2.5rem;
}

.vote-expand {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    margin: 0;
    text-align: right;
    width: auto;
}

.vote-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 22px;
    background: #222b3a;
    border-radius: 0.7rem;
    overflow: visible;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.vote-bar-yes {
    background: linear-gradient(90deg, #22c55e 60%, #16a34a 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    font-weight: 700;
    font-size: 0.80rem;
    padding-right: 0.5rem;
    border-radius: 0.7rem 0 0 0.7rem;
    transition: width 0.5s;
}

.vote-bar-no {
    background: linear-gradient(90deg, #ef4444 60%, #b91c1c 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    font-weight: 700;
    font-size: 0.80rem;
    padding-left: 0.5rem;
    border-radius: 0 0.7rem 0.7rem 0;
    transition: width 0.5s;
}

.vote-bar-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
    position: relative;
}

.vote-expand {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.vote-expand-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.2rem 0.7rem;
    border-radius: 0.3rem;
    transition: background 0.2s;
    margin-top: 25px;
    white-space: nowrap;
}

.vote-expand-btn:hover {
    background: var(--accent-light);
}

.vote-metrics-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    background: transparent;
    display: none;
}

.vote-metrics-table.active {
    display: table;
}

.vote-metrics-table th,
.vote-metrics-table td {
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--border-primary);
}

.vote-metrics-table th {
    background: rgba(139, 92, 246, 0.18);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
    font-weight: 700;
}

.vote-metrics-table td {
    border: 1.5px solid var(--border-primary);
}

/* ===== 상세 섹션 ===== */
.detail-section {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.detail-section h2 {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-section .detail-label {
    color: var(--text-tertiary);
    font-weight: 600;
    margin-top: 1.1rem;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.detail-section .detail-value {
    color: var(--text-primary);
    font-size: 0.80rem;
    margin-bottom: 0.7rem;
    white-space: pre-line;
}

.detail-section .detail-value-empty {
    color: var(--text-tertiary);
    font-size: 0.80rem;
    font-style: italic;
}

.detail-section .sub-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.detail-section .sub-value {
    color: var(--text-primary);
    font-size: 0.80rem;
    margin-bottom: 0.5rem;
}

.detail-section .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.2rem;
    font-size: 0.80rem;
}

.detail-section .info-table th, .detail-section .info-table td {
    padding: 0.4rem 0.7rem;
    border-bottom: 1px solid var(--border-primary);
    text-align: left;
}

.detail-section .info-table th {
    color: var(--text-tertiary);
    font-weight: 600;
    background: rgba(139, 92, 246, 0.04);
}

.detail-section .info-table td {
    color: var(--text-primary);
    word-break: break-all;
}

.card-title-summary .card-title-value,
.card-title-motivation .card-title-value,
.card-title-rationale .card-title-value,
.card-title-summary-en .card-title-value,
.card-title-motivation-en .card-title-value,
.card-title-rationale-en .card-title-value {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.mobile-vote-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-vote-overview-card {
    min-width: 0;
    padding: 0.7rem 0.55rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.52);
    text-align: center;
}

.mobile-vote-overview-label,
.mobile-vote-overview-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.25;
    word-break: keep-all;
}

.mobile-vote-overview-card strong {
    display: block;
    margin: 0.18rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.1;
}

.mobile-info-value,
.mobile-detail-card-content {
    overflow-wrap: anywhere;
}

/* ===== 버튼 스타일 ===== */
.back-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.3rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.2rem;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
    min-width: 180px;
    white-space: nowrap;
}

.back-to-list-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
}

.back-to-list-btn i {
    font-size: 1.1rem;
}

.header-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

/* ===== 반응형 스타일 ===== */
@media (max-width: 700px) {
    .header-flex-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    
    .proposal-header {
        margin-top: 0.5rem;
    }

    .gov-list-toolbar,
    .vote-overview-grid {
        grid-template-columns: 1fr;
    }

    .gov-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gov-list-counts {
        justify-content: stretch;
    }

    .gov-count-chip {
        flex: 1;
        justify-content: center;
    }

    .drep-summary-grid {
        grid-template-columns: 1fr;
    }

    .drep-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .drep-table-toolbar-title {
        justify-content: space-between;
    }

    .drep-search-input-wrap {
        flex-basis: auto;
    }
}

.vote-graph-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    margin-top: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
} 

.vote-bar-yes,
.vote-bar-no {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    font-size: 0.80em;
    overflow: hidden;
    position: relative;
    z-index: 1;
} 

/* 요약 카드 스타일 */
.card-title-summary {
    background: linear-gradient(90deg, #fffbe6 0%, #ffe9b3 100%); /* 밝은 노랑 배경 */
    border: 2px solid #ffe066; /* 노랑 테두리 */
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(255, 224, 102, 0.15);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.card-title-summary .card-title-label {
    font-weight: bold;
    font-size: 1.05rem;
    color: #b8860b;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.card-title-summary .fa-lightbulb {
    margin-right: 0.5em;
    color: #ffd700;
}
.card-title-summary .card-title-value {
    font-size: 0.97rem;
    color: #333;
}

/* 동기 카드 스타일 */
.card-title-motivation {
    background: linear-gradient(90deg, #e6f7ff 0%, #b3e6ff 100%); /* 밝은 파랑 배경 */
    border: 2px solid #66d9ff; /* 파랑 테두리 */
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(102, 217, 255, 0.12);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.card-title-motivation .card-title-label {
    font-weight: bold;
    font-size: 1.05rem;
    color: #0077b6;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.card-title-motivation .fa-bolt {
    margin-right: 0.5em;
    color: #00bfff;
}
.card-title-motivation .card-title-value {
    font-size: 0.97rem;
    color: #222;
}

/* 근거 카드 스타일 */
.card-title-rationale {
    background: linear-gradient(90deg, #f0e6ff 0%, #e0c3fc 100%); /* 밝은 보라 배경 */
    border: 2px solid #b39ddb; /* 보라 테두리 */
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(179, 157, 219, 0.13);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}
.card-title-rationale .card-title-label {
    font-weight: bold;
    font-size: 1.05rem;
    color: #6c3483;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.card-title-rationale .fa-balance-scale {
    margin-right: 0.5em;
    color: #a084ca;
}
.card-title-rationale .card-title-value {
    font-size: 0.97rem;
    color: #222;
} 

/* 영어 Abstract 카드 스타일 */
.card-title-summary-en {
    background: linear-gradient(90deg, #f7f7fa 0%, #e3e3ff 100%); /* 밝은 연보라 배경 */
    border: 2px solid #b3b3ff; /* 연보라 테두리 */
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(179, 179, 255, 0.13);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.card-title-summary-en .card-title-label {
    font-weight: bold;
    font-size: 1.05rem;
    color: #5c5c8a;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.card-title-summary-en .fa-lightbulb {
    margin-right: 0.5em;
    color: #b3b3ff;
}
.card-title-summary-en .card-title-value {
    font-size: 0.97rem;
    color: #333;
}

/* 영어 Motivation 카드 스타일 */
.card-title-motivation-en {
    background: linear-gradient(90deg, #e6faff 0%, #b3f0ff 100%); /* 밝은 하늘색 배경 */
    border: 2px solid #66d9ff; /* 하늘색 테두리 */
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(102, 217, 255, 0.12);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.card-title-motivation-en .card-title-label {
    font-weight: bold;
    font-size: 1.05rem;
    color: #0077b6;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.card-title-motivation-en .fa-bolt {
    margin-right: 0.5em;
    color: #00bfff;
}
.card-title-motivation-en .card-title-value {
    font-size: 0.97rem;
    color: #222;
}

/* 영어 Rationale 카드 스타일 */
.card-title-rationale-en {
    background: linear-gradient(90deg, #f3e6ff 0%, #e0c3fc 100%); /* 밝은 연보라 배경 */
    border: 2px solid #b39ddb; /* 보라 테두리 */
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(179, 157, 219, 0.13);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}
.card-title-rationale-en .card-title-label {
    font-weight: bold;
    font-size: 1.05rem;
    color: #6c3483;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.card-title-rationale-en .fa-balance-scale {
    margin-right: 0.5em;
    color: #a084ca;
}
.card-title-rationale-en .card-title-value {
    font-size: 0.97rem;
    color: #222;
} 

/* 제목 컬럼(col-title) 줄임표 처리 및 반응형 */
.notice-table th.col-title, .notice-table td.col-title, .notice-title-cell {
    max-width: 220px; /* 최대 너비 제한 */
    min-width: 80px;  /* 최소 너비 */
    width: 18vw;      /* 반응형 너비 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 제목 텍스트 줄임표 처리 */
.notice-title-cell .title-content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notice-title-cell .title-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
    min-width: 0;
}

/* 모바일/좁은 화면에서 제목 컬럼 더 좁게 */
@media (max-width: 600px) {
    .notice-table th.col-title, .notice-table td.col-title, .notice-title-cell {
        max-width: 110px;
        min-width: 60px;
        width: 32vw;
    }
    .notice-title-cell .title-text {
        max-width: 80vw;
    }
}

@media (max-width: 420px) {
    .mobile-vote-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* 반응형 통합: PC/모바일 요소 표시/숨김 제어 */
/* 모바일에서 PC 전용 요소 숨기기 */
@media (max-width: 767px) {
    .pc-gov-proposal {
        display: none !important;
    }
    
    .mobile-gov-proposal-container {
        display: block;
    }
}

/* PC에서 모바일 전용 요소 숨기기 */
@media (min-width: 768px) {
    .mobile-gov-proposal-container {
        display: none !important;
    }
    
    .pc-gov-proposal {
        display: block;
    }
    
    .mobile-drep-container {
        display: none !important;
    }
    
    .pc-drep-status {
        display: block;
    }
}

/* 모바일에서 PC 전용 요소 숨기기 (drep_status 추가) */
@media (max-width: 767px) {
    .pc-drep-status {
        display: none !important;
    }
    
    .mobile-drep-container {
        display: block;
    }
}

/* Final mobile governance proposal overrides */
@media (max-width: 767px) {
    .mobile-gov-proposal-container {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        color: #e5edf9;
    }

    .mobile-gov-proposal-header-card {
        margin: 0;
        padding: 12px;
        border: 1px solid rgba(94, 234, 212, 0.28);
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(13, 22, 38, 0.96), rgba(8, 13, 24, 0.96));
        box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
        overflow: hidden;
    }

    .mobile-gov-proposal-header-card::before {
        display: none;
    }

    .mobile-gov-proposal-header {
        text-align: left;
    }

    .mobile-gov-proposal-title {
        margin: 0;
        color: #f8fbff;
        font-size: 19px;
        line-height: 1.15;
        text-shadow: none;
        background: none;
        -webkit-text-fill-color: initial;
        animation: none;
    }

    .mobile-gov-proposal-title::before {
        content: "\f0f6";
        margin-right: 8px;
        color: #5eead4;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .mobile-gov-proposal-description {
        margin-top: 5px;
        color: #8fb0dc;
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-gov-proposal-info-section {
        margin: 0;
        padding: 9px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.56);
    }

    .mobile-gov-proposal-guide {
        margin: 0 0 8px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #b9c8df;
        font-size: 12px;
        line-height: 1.35;
    }

    .mobile-gov-proposal-id-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .mobile-gov-proposal-id-item {
        gap: 6px;
        padding: 8px;
        border: 1px solid rgba(94, 234, 212, 0.16);
        border-radius: 10px;
        background: rgba(2, 6, 23, 0.32);
    }

    .mobile-gov-proposal-label {
        font-size: 12px;
    }

    .mobile-gov-proposal-id-copy {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .mobile-gov-proposal-id {
        min-width: 0;
        overflow: hidden;
        color: #dbeafe;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
    }

    .mobile-btn-copy {
        flex: 0 0 auto;
        min-height: 26px;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 11px;
    }

    .mobile-gov-proposal-counts {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    .mobile-gov-proposal-counts::-webkit-scrollbar {
        display: none;
    }

    .mobile-gov-proposal-counts button {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 11px !important;
        border: 1px solid rgba(148, 163, 184, 0.22) !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, 0.7) !important;
        color: #cbd5e1 !important;
        font-size: 12px;
        font-weight: 900;
    }

    .mobile-gov-proposal-counts button.active {
        border-color: rgba(94, 234, 212, 0.55) !important;
        background: rgba(20, 184, 166, 0.18) !important;
        color: #efffff !important;
    }

    .mobile-gov-proposal-list {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mobile-gov-proposal-table {
        width: 100%;
    }

    .mobile-gov-proposal-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: none;
        overflow: visible;
    }

    .mobile-gov-proposal-item {
        padding: 10px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-left: 3px solid rgba(94, 234, 212, 0.75);
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 24, 0.82));
        box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
    }

    .mobile-gov-proposal-item[data-status="ratified"] {
        border-left-color: #60a5fa;
    }

    .mobile-gov-proposal-item[data-status="enacted"] {
        border-left-color: #34d399;
    }

    .mobile-gov-proposal-item[data-status="dropped"] {
        border-left-color: #fb7185;
    }

    .mobile-gov-proposal-item[data-status="expired"] {
        border-left-color: #94a3b8;
    }

    .mobile-gov-proposal-item:hover {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 24, 0.9));
    }

    .mobile-gov-proposal-item:active {
        transform: scale(0.99);
    }

    .mobile-proposal-title-row {
        margin: 0 0 9px;
    }

    .mobile-proposal-title-cell {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    .mobile-proposal-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 22px;
        margin: 0;
        border-radius: 999px;
        background: rgba(45, 212, 191, 0.12);
        color: #5eead4;
        font-size: 11px;
        font-weight: 950;
    }

    .mobile-proposal-title {
        display: -webkit-box;
        overflow: hidden;
        color: #f8fbff;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mobile-proposal-details-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 6px;
    }

    .mobile-proposal-details-cell {
        justify-content: flex-start;
        min-width: 0;
        gap: 5px;
    }

    .mobile-proposal-details-cell.mobile-status-cell {
        justify-content: flex-end;
    }

    .mobile-type-badge,
    .mobile-status-badge {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        max-width: 100%;
        overflow: hidden;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-epoch-info {
        align-items: flex-start;
        gap: 2px;
    }

    .mobile-epoch-label {
        color: #8fb0dc;
        font-size: 9px;
        text-align: left;
    }

    .mobile-epoch-period {
        color: #dbeafe;
        font-size: 11px;
        white-space: nowrap;
    }

    .mobile-empty-gov-proposal {
        border: 1px dashed rgba(148, 163, 184, 0.28);
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.45);
    }
}

@media (max-width: 380px) {
    .mobile-gov-proposal-id-list {
        grid-template-columns: 1fr;
    }

    .mobile-proposal-details-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 5px;
    }

    .mobile-proposal-details-cell:first-child {
        grid-column: auto;
    }
}

/* Governance proposal mobile detail line tuning */
@media (max-width: 767px) {
    .mobile-proposal-details-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 5px;
    }

    .mobile-proposal-details-cell {
        min-width: 0;
    }

    .mobile-proposal-details-cell:nth-child(2) {
        margin-left: -1px;
    }

    .mobile-epoch-info {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        min-width: 0;
        width: auto !important;
        max-width: 158px;
        padding: 0 7px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.56);
        white-space: nowrap !important;
    }

    .mobile-epoch-label {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        margin-right: 4px;
        color: #7dd3fc;
        font-size: 10px;
        font-weight: 950;
        line-height: 24px;
        white-space: nowrap !important;
    }

    .mobile-epoch-period {
        overflow: hidden;
        min-width: 0;
        display: inline-block !important;
        color: #c7d2fe;
        font-size: 10px;
        font-weight: 900;
        line-height: 24px;
        text-overflow: ellipsis;
        white-space: nowrap !important;
    }

    .mobile-type-badge {
        min-height: 26px;
        padding: 0 9px;
        font-size: 10px;
    }

    .mobile-status-badge {
        min-height: 31px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 950;
        box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
    }

    .mobile-status-badge.active {
        border: 1px solid rgba(52, 211, 153, 0.45);
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(20, 184, 166, 0.18));
        color: #d1fae5;
    }

    .mobile-proposal-details-row {
        align-items: stretch !important;
    }

    .mobile-proposal-details-cell.mobile-status-cell {
        align-self: stretch !important;
    }

    .mobile-status-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 58px;
        min-height: 52px;
        padding: 0 13px;
        border-radius: 13px;
        font-size: 13px;
        font-weight: 950;
        line-height: 1.05;
        text-align: center;
    }

    .mobile-gov-proposal-item {
        position: relative !important;
        padding-right: 74px !important;
    }

    .mobile-proposal-details-row {
        grid-template-columns: auto minmax(0, 1fr) !important;
        align-items: center !important;
    }

    .mobile-proposal-details-cell.mobile-status-cell {
        position: absolute !important;
        top: 10px;
        right: 10px;
        bottom: 10px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: auto !important;
        width: 56px;
    }

    .mobile-status-badge {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 12px;
    }
}

/* Mobile governance proposal detail refresh */
@media (max-width: 767px) {
    .mobile-gov-proposal-detail-container {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 10px 10px 92px;
        color: #e5edf9;
    }

    .mobile-back-button {
        margin: 0;
    }

    .mobile-btn-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        gap: 7px;
        padding: 0 12px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.72);
        color: #c7d7f7;
        font-size: 12px;
        font-weight: 900;
        box-shadow: none;
    }

    .mobile-btn-back:active {
        transform: scale(0.98);
        border-color: rgba(94, 234, 212, 0.45);
        color: #f8ffff;
    }

    .mobile-proposal-detail-header,
    .mobile-vote-summary-section,
    .mobile-detail-section {
        margin: 0;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(8, 13, 24, 0.9));
        box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
    }

    .mobile-proposal-detail-header {
        position: relative;
        overflow: hidden;
        padding: 12px;
        border-color: rgba(94, 234, 212, 0.26);
    }

    .mobile-proposal-detail-header::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 3px;
        background: #5eead4;
        opacity: 0.9;
    }

    .mobile-proposal-detail-title {
        padding-right: 0;
    }

    .mobile-proposal-detail-title-text {
        display: block;
        margin: 0;
        color: #f8fbff;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.38;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .mobile-proposal-detail-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 10px;
    }

    .mobile-proposal-meta-item {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 32px;
        gap: 6px;
        padding: 0 8px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 10px;
        background: rgba(2, 6, 23, 0.3);
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 850;
    }

    .mobile-proposal-meta-item i {
        flex: 0 0 auto;
        color: #5eead4;
        font-size: 11px;
    }

    .mobile-proposal-meta-item span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-type-badge-detail,
    .mobile-status-badge-detail {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        max-width: 100%;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 950;
        color: #f8fbff;
    }

    .mobile-status-badge-detail.active {
        border: 1px solid rgba(52, 211, 153, 0.45);
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(20, 184, 166, 0.2));
        color: #d1fae5;
    }

    .mobile-vote-summary-section {
        padding: 11px;
    }

    .mobile-vote-section-title,
    .mobile-detail-section-title {
        margin: 0 0 10px;
        color: #f8fbff;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.2;
        text-align: left;
    }

    .mobile-vote-overview-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 10px;
    }

    .mobile-vote-overview-card {
        min-width: 0;
        padding: 8px 6px;
        border: 1px solid rgba(94, 234, 212, 0.18);
        border-radius: 11px;
        background: rgba(2, 6, 23, 0.32);
        text-align: left;
    }

    .mobile-vote-overview-label,
    .mobile-vote-overview-card span {
        color: #8fb0dc;
        font-size: 10px;
        font-weight: 850;
        line-height: 1.22;
    }

    .mobile-vote-overview-card strong {
        margin: 3px 0 2px;
        color: #5eead4;
        font-size: 17px;
        font-weight: 950;
        line-height: 1;
    }

    .mobile-vote-group {
        margin: 0 0 8px;
        padding: 9px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.55);
    }

    .mobile-vote-group:last-child {
        margin-bottom: 0;
    }

    .mobile-vote-group-title {
        margin: 0 0 8px;
        color: #dbeafe;
        font-size: 13px;
        font-weight: 950;
        text-align: left;
    }

    .mobile-vote-bar-container {
        margin: 0;
    }

    .mobile-vote-bar-labels {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 7px;
    }

    .mobile-vote-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding: 5px 7px;
        border-radius: 8px;
        background: rgba(2, 6, 23, 0.34);
        color: #9fb1ce;
        font-size: 10px;
        font-weight: 900;
    }

    .mobile-vote-count {
        color: #f8fbff;
        font-size: 10px;
        font-weight: 950;
        white-space: nowrap;
    }

    .mobile-vote-bar {
        display: flex;
        height: 28px;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 999px;
        background: rgba(2, 6, 23, 0.48);
    }

    .mobile-vote-bar-yes,
    .mobile-vote-bar-no {
        min-width: 0;
        padding: 0 5px;
        font-size: 10px;
        font-weight: 950;
    }

    .mobile-vote-bar-yes {
        background: linear-gradient(90deg, #10b981, #34d399);
    }

    .mobile-vote-bar-no {
        background: linear-gradient(90deg, #ef4444, #fb7185);
    }

    .mobile-vote-details {
        gap: 5px;
        margin-top: 8px;
    }

    .mobile-vote-detail-item {
        min-height: 28px;
        padding: 0 2px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    .mobile-vote-detail-label {
        color: #8fb0dc;
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-vote-detail-value {
        color: #e5edf9;
        font-size: 11px;
        font-weight: 950;
        text-align: right;
    }

    .mobile-detail-section {
        padding: 11px;
    }

    .mobile-detail-subsection {
        margin: 0 0 10px;
    }

    .mobile-detail-subsection:last-child {
        margin-bottom: 0;
    }

    .mobile-detail-subtitle {
        margin: 0 0 7px;
        color: #7dd3fc;
        font-size: 13px;
        font-weight: 950;
    }

    .mobile-detail-card {
        margin: 0 0 8px;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 12px;
        background: rgba(2, 6, 23, 0.26);
    }

    .mobile-detail-card-header {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 34px;
        padding: 0 9px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        color: #f8fbff;
        font-size: 12px;
        font-weight: 950;
    }

    .mobile-detail-card-header i {
        color: #5eead4;
    }

    .mobile-detail-card-content {
        padding: 9px;
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.55;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .mobile-info-table {
        display: grid;
        gap: 6px;
    }

    .mobile-info-row {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        min-height: 32px;
        padding: 7px 8px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 10px;
        background: rgba(2, 6, 23, 0.28);
    }

    .mobile-info-label {
        color: #8fb0dc;
        font-size: 11px;
        font-weight: 900;
    }

    .mobile-info-value {
        overflow: hidden;
        color: #e5edf9;
        font-size: 11px;
        font-weight: 900;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-vote-summary-section > .mobile-vote-section-title,
    .mobile-vote-summary-section > .mobile-vote-overview-grid,
    .mobile-vote-summary-section > .mobile-vote-group {
        display: none !important;
    }

    .mobile-vote-dashboard {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .mobile-vote-dashboard-head,
    .mobile-vote-key-grid {
        display: none !important;
    }

    .mobile-vote-dashboard-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .mobile-vote-eyebrow {
        display: block;
        color: #5eead4;
        font-size: 10px;
        font-weight: 950;
        line-height: 1;
    }

    .mobile-vote-dashboard-title {
        margin: 4px 0 0;
        color: #f8fbff;
        font-size: 16px;
        font-weight: 950;
        line-height: 1.15;
    }

    .mobile-vote-dashboard-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 11px;
        border: 1px solid rgba(52, 211, 153, 0.38);
        border-radius: 10px;
        background: rgba(16, 185, 129, 0.18);
        color: #d1fae5;
        font-size: 12px;
        font-weight: 950;
    }

    .mobile-vote-dashboard-status.ratified,
    .mobile-vote-dashboard-status.enacted {
        border-color: rgba(96, 165, 250, 0.38);
        background: rgba(59, 130, 246, 0.18);
        color: #bfdbfe;
    }

    .mobile-vote-dashboard-status.dropped,
    .mobile-vote-dashboard-status.expired {
        border-color: rgba(248, 113, 113, 0.38);
        background: rgba(239, 68, 68, 0.16);
        color: #fecaca;
    }

    .mobile-vote-key-grid {
        display: grid;
        grid-template-columns: 1.15fr 1fr 0.72fr;
        gap: 6px;
    }

    .mobile-vote-key-card {
        min-width: 0;
        padding: 8px;
        border: 1px solid rgba(148, 163, 184, 0.15);
        border-radius: 10px;
        background: rgba(2, 6, 23, 0.3);
    }

    .mobile-vote-key-card span {
        display: block;
        color: #8fb0dc;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-vote-key-card strong {
        display: block;
        overflow: hidden;
        margin-top: 5px;
        color: #e5edf9;
        font-size: 11px;
        font-weight: 950;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-vote-decision-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-vote-decision-card {
        padding: 9px;
        border: 1px solid rgba(94, 234, 212, 0.18);
        border-radius: 12px;
        background: rgba(2, 6, 23, 0.32);
    }

    .mobile-vote-decision-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 7px;
    }

    .mobile-vote-body-name {
        display: inline-flex;
        align-items: center;
        min-height: 23px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(45, 212, 191, 0.12);
        color: #99f6e4;
        font-size: 11px;
        font-weight: 950;
    }

    .mobile-vote-decision-top strong {
        color: #f8fbff;
        font-size: 13px;
        font-weight: 950;
        white-space: nowrap;
    }

    .mobile-vote-split-bar {
        display: flex;
        height: 10px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.9);
    }

    .mobile-vote-split-bar .yes {
        background: linear-gradient(90deg, #10b981, #5eead4);
    }

    .mobile-vote-split-bar .no {
        background: linear-gradient(90deg, #ef4444, #fb7185);
    }

    .mobile-vote-mini-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin-top: 8px;
    }

    .mobile-vote-mini-stats span {
        min-width: 0;
        overflow: hidden;
        padding: 5px 6px;
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.52);
        color: #cbd5e1;
        font-size: 10px;
        font-weight: 850;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .mobile-proposal-detail-meta {
        grid-template-columns: 1fr;
    }

    .mobile-vote-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-vote-overview-card {
        padding: 7px 5px;
    }

    .mobile-vote-overview-card strong {
        font-size: 15px;
    }

    .mobile-vote-key-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-vote-key-card:first-child {
        grid-column: 1 / -1;
    }

    .mobile-vote-mini-stats {
        grid-template-columns: 1fr;
    }
}

/* PC governance proposal detail refresh */
@media (min-width: 768px) {
    .pc-gov-proposal-detail {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        max-width: 1440px;
        margin: 0 auto;
        padding: 12px 18px 28px;
        color: #e5edf9;
    }

    .pc-gov-proposal-detail .proposal-detail-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin: 0;
        padding: 18px 20px;
        border: 1px solid rgba(94, 234, 212, 0.24);
        border-radius: 16px;
        border-bottom-color: rgba(94, 234, 212, 0.42);
        background:
            radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.16), transparent 34%),
            linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 13, 24, 0.96));
        box-shadow: 0 18px 44px rgba(2, 6, 23, 0.24);
    }

    .pc-gov-proposal-detail .proposal-detail-title {
        display: flex;
        align-items: center;
        min-width: 0;
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.1;
        text-shadow: none;
    }

    .pc-gov-proposal-detail .proposal-detail-title::before {
        content: "\f0f6";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin-right: 11px;
        border-radius: 12px;
        background: linear-gradient(135deg, #5eead4, #60a5fa);
        color: #06111c;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 15px;
        box-shadow: 0 10px 22px rgba(45, 212, 191, 0.18);
    }

    .pc-gov-proposal-detail .proposal-detail-title-text {
        color: #f8fbff;
        font-size: 1.12rem;
        font-weight: 950;
        background: none;
        -webkit-text-fill-color: currentColor;
        text-shadow: none;
    }

    .pc-gov-proposal-detail .proposal-detail-description {
        flex: 0 0 auto;
        max-width: 420px;
        color: #8fb0dc;
        font-size: 0.82rem;
        font-weight: 850;
        text-align: right;
    }

    .pc-gov-proposal-detail .header-flex-row {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        align-items: stretch;
        gap: 12px;
        margin: 0;
    }

    .pc-gov-proposal-detail .back-to-list-btn {
        justify-content: center;
        align-self: stretch;
        min-width: 0;
        width: 100%;
        min-height: 86px;
        margin: 0;
        padding: 0 16px;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.72);
        color: #c7d7f7;
        font-size: 0.84rem;
        font-weight: 950;
        box-shadow: none;
    }

    .pc-gov-proposal-detail .back-to-list-btn:hover {
        border-color: rgba(94, 234, 212, 0.46);
        background: rgba(20, 184, 166, 0.14);
        color: #f8ffff;
        transform: translateY(-1px);
    }

    .pc-gov-proposal-detail .proposal-header {
        min-width: 0;
        padding: 15px 16px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-left: 3px solid rgba(94, 234, 212, 0.86);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 24, 0.86));
        box-shadow: 0 12px 30px rgba(2, 6, 23, 0.2);
    }

    .pc-gov-proposal-detail .proposal-title {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        margin: 0 0 12px;
        font-size: 1rem;
        line-height: 1.35;
    }

    .pc-gov-proposal-detail .title-label {
        display: inline-flex;
        align-items: center;
        width: auto;
        max-width: none;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(45, 212, 191, 0.12);
        color: #99f6e4;
        font-size: 0.78rem;
        font-weight: 950;
        white-space: nowrap;
    }

    .pc-gov-proposal-detail .title-text {
        display: block;
        overflow: visible;
        color: #f8fbff;
        font-size: 1.03rem;
        font-weight: 950;
        line-height: 1.4;
        text-overflow: clip;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .pc-gov-proposal-detail .proposal-meta-row {
        display: grid;
        grid-template-columns: 0.6fr 1fr 1fr 1fr;
        gap: 8px;
        width: 100%;
        text-align: left;
    }

    .pc-gov-proposal-detail .meta-item-compact {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 36px;
        gap: 7px;
        padding: 0 10px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 10px;
        background: rgba(2, 6, 23, 0.3);
        color: #cbd5e1;
        font-size: 0.76rem;
        font-weight: 900;
    }

    .pc-gov-proposal-detail .meta-item-compact i {
        flex: 0 0 auto;
        color: #5eead4;
    }

    .pc-gov-proposal-detail .type-badge-detail,
    .pc-gov-proposal-detail .status-badge-detail {
        min-width: 0;
        padding: 0.28rem 0.66rem;
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    .pc-gov-proposal-detail .vote-summary-section {
        margin: 0;
        padding: 16px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 13, 24, 0.88));
        box-shadow: 0 14px 34px rgba(2, 6, 23, 0.2);
    }

    .pc-gov-proposal-detail .vote-title {
        margin: 0 0 14px;
        color: #f8fbff;
        font-size: 1rem;
        font-weight: 950;
        line-height: 1.2;
    }

    .pc-gov-proposal-detail .vote-title::before {
        content: "\f1fe";
        margin-right: 8px;
        color: #5eead4;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .pc-gov-proposal-detail .vote-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

    .pc-gov-proposal-detail .vote-overview-card {
        padding: 13px 14px;
        border: 1px solid rgba(94, 234, 212, 0.18);
        border-radius: 13px;
        background: rgba(2, 6, 23, 0.3);
    }

    .pc-gov-proposal-detail .vote-overview-label {
        color: #8fb0dc;
        font-size: 0.74rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .vote-overview-main {
        margin-top: 5px;
        color: #5eead4;
        font-size: 1.35rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .vote-overview-sub {
        color: #cbd5e1;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .pc-gov-proposal-detail .vote-bar-group {
        margin: 0 0 10px;
        padding: 12px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 13px;
        background: rgba(15, 23, 42, 0.54);
    }

    .pc-gov-proposal-detail .vote-bar-group:last-child {
        margin-bottom: 0;
    }

    .pc-gov-proposal-detail .vote-graph-title {
        margin: 0 0 10px;
        color: #dbeafe;
        font-size: 0.9rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .vote-bar-flex-row {
        display: block;
    }

    .pc-gov-proposal-detail .vote-bar-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "labels button"
            "bar button";
        gap: 8px 12px;
        padding: 0;
    }

    .pc-gov-proposal-detail .vote-bar-labels {
        grid-area: labels;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        position: static;
    }

    .pc-gov-proposal-detail .vote-bar-labels .vote-bar-label.left,
    .pc-gov-proposal-detail .vote-bar-labels .vote-bar-label.right {
        position: static;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        margin: 0;
        padding: 6px 9px;
        border-radius: 9px;
        background: rgba(2, 6, 23, 0.3);
        font-size: 0.76rem;
        font-weight: 950;
        text-align: left;
    }

    .pc-gov-proposal-detail .vote-bar-label.left {
        color: #99f6e4;
    }

    .pc-gov-proposal-detail .vote-bar-label.right {
        color: #fecaca;
    }

    .pc-gov-proposal-detail .vote-count {
        color: #f8fbff;
        font-size: 0.74rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .vote-bar {
        grid-area: bar;
        height: 28px;
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 999px;
        background: rgba(2, 6, 23, 0.48);
        box-shadow: none;
    }

    .pc-gov-proposal-detail .vote-bar-yes,
    .pc-gov-proposal-detail .vote-bar-no {
        justify-content: center;
        padding: 0 8px;
        border-radius: 0;
        font-size: 0.78rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .vote-bar-yes {
        background: linear-gradient(90deg, #10b981, #5eead4);
    }

    .pc-gov-proposal-detail .vote-bar-no {
        background: linear-gradient(90deg, #ef4444, #fb7185);
    }

    .pc-gov-proposal-detail .vote-expand {
        grid-area: button;
        position: static;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        height: auto;
        margin: 0;
    }

    .pc-gov-proposal-detail .vote-expand-btn {
        min-height: 36px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid rgba(94, 234, 212, 0.36);
        border-radius: 10px;
        background: rgba(20, 184, 166, 0.12);
        color: #ccfbf1;
        font-size: 0.78rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .vote-expand-btn:hover {
        background: rgba(20, 184, 166, 0.2);
    }

    .pc-gov-proposal-detail .vote-metrics-table {
        overflow: hidden;
        margin-top: 10px;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 11px;
        background: rgba(2, 6, 23, 0.28);
    }

    .pc-gov-proposal-detail .vote-metrics-table th,
    .pc-gov-proposal-detail .vote-metrics-table td {
        padding: 7px 9px;
        border: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        color: #e5edf9;
        font-size: 0.76rem;
    }

    .pc-gov-proposal-detail .vote-metrics-table th {
        background: rgba(45, 212, 191, 0.12);
        color: #ccfbf1;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .detail-section {
        margin: 0;
        padding: 16px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 13, 24, 0.88));
        box-shadow: 0 14px 34px rgba(2, 6, 23, 0.2);
    }

    .pc-gov-proposal-detail .detail-section h2 {
        margin: 0 0 12px !important;
        color: #f8fbff;
        font-size: 1rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .card-title-summary,
    .pc-gov-proposal-detail .card-title-motivation,
    .pc-gov-proposal-detail .card-title-rationale,
    .pc-gov-proposal-detail .card-title-summary-en,
    .pc-gov-proposal-detail .card-title-motivation-en,
    .pc-gov-proposal-detail .card-title-rationale-en {
        overflow: hidden;
        margin: 0 0 10px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 13px;
        background: rgba(2, 6, 23, 0.28);
    }

    .pc-gov-proposal-detail .card-title-label {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 0 12px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        color: #f8fbff;
        font-size: 0.82rem;
        font-weight: 950;
    }

    .pc-gov-proposal-detail .card-title-label i {
        color: #5eead4;
    }

    .pc-gov-proposal-detail .card-title-value {
        padding: 12px;
        color: #cbd5e1;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.62;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .pc-gov-proposal-detail .info-table {
        overflow: hidden;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 12px;
        background: rgba(2, 6, 23, 0.28);
    }

    .pc-gov-proposal-detail .info-table th,
    .pc-gov-proposal-detail .info-table td {
        padding: 9px 11px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        font-size: 0.78rem;
    }

    .pc-gov-proposal-detail .info-table th {
        width: 180px;
        color: #8fb0dc;
        background: rgba(15, 23, 42, 0.42);
        font-weight: 950;
    }

    .pc-gov-proposal-detail .info-table td {
        color: #e5edf9;
        font-weight: 850;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .pc-gov-proposal-detail .proposal-detail-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pc-gov-proposal-detail .proposal-detail-description {
        max-width: none;
        text-align: left;
    }

    .pc-gov-proposal-detail .header-flex-row {
        grid-template-columns: 1fr;
    }

    .pc-gov-proposal-detail .back-to-list-btn {
        min-height: 42px;
    }

    .pc-gov-proposal-detail .proposal-meta-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pc-gov-proposal-detail .vote-bar-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "labels"
            "bar"
            "button";
    }

    .pc-gov-proposal-detail .vote-expand {
        justify-content: flex-start;
    }
}

/* ===== dRep 매칭 퀴즈 ===== */
.drep-match-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.2rem 1rem 2.5rem;
    color: var(--text-primary);
}

.drep-match-header {
    border: 1px solid #3e3f61;
    border-radius: 14px;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.03));
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid #8b5cf6;
    margin-bottom: 1.2rem;
}

.drep-match-title {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
    font-weight: 700;
}

.drep-match-title-text {
    background: linear-gradient(90deg, #f8f9ff 0%, #cfb3ff 45%, #9bd5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.drep-match-desc {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.drep-match-panel {
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    background: var(--glass-background);
    padding: 1.4rem;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
}

.drep-match-start-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    font-size: 1.6rem;
}

.drep-match-start-title {
    text-align: center;
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
}

.drep-match-start-list {
    margin: 0 0 1.2rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.drep-match-primary-btn,
.drep-match-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.drep-match-primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

.drep-match-secondary-btn {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.drep-match-primary-btn:hover,
.drep-match-secondary-btn:hover {
    transform: translateY(-1px);
}

.drep-match-primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.drep-match-progress {
    margin-bottom: 1rem;
}

.drep-match-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.drep-match-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.drep-match-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    transition: width 0.25s ease;
}

.drep-match-question-title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.drep-match-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.drep-match-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.drep-match-badge.status-active { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.drep-match-badge.status-ratified { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.drep-match-badge.status-enacted { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; }
.drep-match-badge.status-dropped { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.drep-match-badge.status-expired { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

.drep-match-vote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.drep-match-vote-btn {
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-secondary);
    padding: 0.95rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.drep-match-vote-btn:hover {
    border-color: rgba(139, 92, 246, 0.55);
}

.drep-match-vote-btn.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
    color: #f8fafc;
}

.drep-match-vote-btn.yes.selected { border-color: #22c55e; background: rgba(34, 197, 94, 0.18); }
.drep-match-vote-btn.no.selected { border-color: #ef4444; background: rgba(239, 68, 68, 0.18); }
.drep-match-vote-btn.abstain.selected { border-color: #94a3b8; background: rgba(148, 163, 184, 0.18); }

.drep-match-quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.drep-match-result-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 760px;
    margin: 0 auto;
}

.drep-match-result-note {
    margin: -0.25rem 0 1rem;
    color: #93a4bd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.drep-match-result-card {
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    padding: 14px 16px;
}

.drep-match-result-card.rank-1 {
    border-color: rgba(250, 204, 21, 0.45);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(139, 92, 246, 0.08));
}

.drep-match-result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.drep-match-result-rank {
    font-size: 0.82rem;
    color: #facc15;
    font-weight: 700;
}

.drep-match-result-name {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.drep-match-result-id-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.drep-match-result-id {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 280px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.28);
    color: #9fb1ce;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.drep-match-copy-id-btn,
.drep-match-delegate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.drep-match-copy-id-btn:hover,
.drep-match-delegate-btn:hover {
    border-color: rgba(52, 211, 153, 0.62);
    background: rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

.drep-match-delegate-btn {
    position: relative;
    overflow: hidden;
    min-width: 126px;
    min-height: 30px;
    padding: 0 12px;
    border-color: rgba(244, 114, 182, 0.72);
    background:
        linear-gradient(135deg, #f97316 0%, #ec4899 34%, #8b5cf6 68%, #06b6d4 100%);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 8px 18px rgba(236, 72, 153, 0.24),
        0 0 16px rgba(6, 182, 212, 0.18);
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.26);
}

.drep-match-delegate-btn::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -55%;
    width: 42%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: drepDelegateShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.drep-match-delegate-btn i,
.drep-match-delegate-btn span {
    position: relative;
    z-index: 1;
}

.drep-match-delegate-btn:hover {
    border-color: rgba(251, 207, 232, 0.98);
    background:
        linear-gradient(135deg, #fb923c 0%, #f472b6 30%, #a78bfa 64%, #22d3ee 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 18px rgba(244, 114, 182, 0.52),
        0 0 22px rgba(34, 211, 238, 0.32),
        0 10px 22px rgba(139, 92, 246, 0.28);
}

@keyframes drepDelegateShine {
    0% { left: -55%; opacity: 0; }
    18% { opacity: 0.85; }
    38% { left: 118%; opacity: 0; }
    100% { left: 118%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .drep-match-delegate-btn::after {
        animation: none;
        opacity: 0;
    }
}

.drep-match-result-rate {
    font-size: 1.35rem;
    font-weight: 800;
    color: #a78bfa;
    white-space: nowrap;
}

.drep-match-result-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 0;
}

.drep-match-result-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.22);
    color: #b7c7de;
    font-weight: 800;
}

.drep-match-result-details {
    display: none;
}

.drep-match-detail-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.55);
}

.drep-match-detail-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.drep-match-detail-votes {
    color: var(--text-tertiary);
    white-space: nowrap;
}

.drep-match-detail-match {
    font-weight: 700;
    white-space: nowrap;
}

.drep-match-detail-match.match { color: #4ade80; }
.drep-match-detail-match.mismatch { color: #f87171; }
.drep-match-detail-match.missing { color: #94a3b8; }

.drep-match-loading,
.drep-match-error {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-tertiary);
}

.drep-match-error {
    color: #fca5a5;
}

.drep-match-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .drep-match-wrapper {
        padding: 0.75rem 0.65rem 5.5rem;
    }

    .drep-match-header {
        padding: 1rem;
    }

    .drep-match-title {
        font-size: 1.25rem;
    }

    .drep-match-panel {
        padding: 1rem;
    }

    .drep-match-vote-grid {
        grid-template-columns: 1fr;
    }

    .drep-match-result-head {
        flex-direction: column;
        gap: 8px;
    }

    .drep-match-result-id {
        max-width: 100%;
    }

    .drep-match-result-rate {
        font-size: 1.2rem;
    }

    .drep-match-detail-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ===== dRep 퀴즈 제안서 상세 모달 ===== */
.drep-match-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}

.drep-match-modal {
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.45);
    overflow: hidden;
}

.drep-match-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1px solid var(--border-primary);
}

.drep-match-modal-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.drep-match-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    cursor: pointer;
}

.drep-match-modal-body {
    padding: 1rem 1.1rem;
    overflow-y: auto;
}

.drep-match-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.drep-match-modal-vote-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.drep-match-modal-section {
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    background: rgba(15, 23, 42, 0.45);
}

.drep-match-modal-section h3 {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    color: #c4b5fd;
}

.drep-match-modal-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.drep-match-wallet-modal {
    width: min(560px, 100%);
}

.drep-match-wallet-target {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.24);
}

.drep-match-wallet-target code {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    color: #9fb1ce;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drep-match-wallet-label {
    color: #93a4bd;
    font-size: 12px;
    font-weight: 900;
}

.drep-match-wallet-status {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.48);
    color: #c7d2fe;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.drep-match-wallet-status.is-success {
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}

.drep-match-wallet-status.is-error {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.18);
    color: #fecaca;
}

.drep-match-wallet-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.drep-match-wallet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #d1fae5;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.drep-match-wallet-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 6px;
    object-fit: contain;
}

.drep-match-wallet-icon.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.22);
    color: #d1fae5;
    font-size: 11px;
    font-weight: 900;
}

.drep-match-wallet-btn:hover {
    border-color: rgba(52, 211, 153, 0.6);
    background: rgba(16, 185, 129, 0.18);
}

.drep-match-wallet-btn:disabled {
    opacity: 0.62;
    cursor: wait;
}

.drep-match-wallet-empty {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    color: #93a4bd;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.drep-match-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid var(--border-primary);
}

.drep-match-modal-footer .drep-match-primary-btn,
.drep-match-modal-footer .drep-match-secondary-btn {
    width: auto;
    flex: 1;
    min-width: 140px;
}

.drep-match-question-title-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-primary);
    cursor: pointer;
}

.drep-match-question-title-btn:hover {
    color: #c4b5fd;
}

.drep-match-question-title-btn i {
    font-size: 0.9rem;
    color: #a78bfa;
}

.drep-match-view-detail-hint {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ===== dRep match airdrop-style refresh ===== */
.drep-match-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 980px;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.drep-match-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.86));
    box-shadow: none;
    box-sizing: border-box;
}

.drep-match-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: #f8fbff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: none;
}

.drep-match-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #10b981;
    color: #001a12;
    font-size: 14px;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.drep-match-title-text {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #f8fbff;
}

.drep-match-desc {
    margin: 0;
    color: #a7f3d0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.drep-match-panel {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: none;
    box-sizing: border-box;
    max-width: 100%;
}

.drep-match-panel:nth-of-type(2) {
    border-top: 4px solid #10b981;
}

.drep-match-start-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    box-shadow: none;
}

.drep-match-start-title {
    color: #f8fbff;
    font-size: 18px;
    font-weight: 900;
}

.drep-match-start-list {
    margin-bottom: 16px;
    color: #dbe7f6;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.drep-match-primary-btn,
.drep-match-secondary-btn {
    min-height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: none;
}

.drep-match-primary-btn {
    border: 0;
    background: #10b981;
    color: #001a12;
}

.drep-match-primary-btn:not(:disabled):hover {
    background: #34d399;
}

.drep-match-secondary-btn {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.78);
    color: #dbe7f6;
}

.drep-match-progress-track {
    height: 10px;
    background: rgba(2, 6, 23, 0.42);
}

.drep-match-progress-fill {
    background: linear-gradient(90deg, #10b981, #38bdf8);
}

.drep-match-question-title-btn {
    color: #f8fbff;
    font-size: 18px;
    font-weight: 900;
}

.drep-match-question-title-btn:hover,
.drep-match-question-title-btn i {
    color: #34d399;
}

.drep-match-view-detail-hint,
.drep-match-progress-meta,
.drep-match-result-stats,
.drep-match-detail-votes {
    color: #93a4bd;
}

.drep-match-badge {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.3);
    color: #93c5fd;
    font-weight: 900;
}

.drep-match-vote-btn {
    min-height: 48px;
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.3);
    color: #dbe7f6;
    font-weight: 900;
}

.drep-match-vote-btn:hover {
    border-color: rgba(16, 185, 129, 0.62);
    background: rgba(16, 185, 129, 0.08);
}

.drep-match-vote-btn.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    color: #f8fbff;
}

.drep-match-result-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.76);
}

.drep-match-result-card.rank-1 {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.82));
}

.drep-match-tier-group {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.58);
}

.drep-match-tier-group.rank-1 {
    border-color: rgba(16, 185, 129, 0.46);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.76));
}

.drep-match-tier-group.rank-2 {
    border-color: rgba(59, 130, 246, 0.44);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.76));
}

.drep-match-tier-group.rank-3 {
    border-color: rgba(245, 158, 11, 0.42);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.76));
}

.drep-match-tier-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.drep-match-tier-rate {
    margin-left: auto;
    color: #34d399;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.drep-match-tier-group.rank-2 .drep-match-tier-rate,
.drep-match-tier-group.rank-2 .drep-match-result-rank {
    color: #93c5fd;
}

.drep-match-tier-group.rank-3 .drep-match-tier-rate,
.drep-match-tier-group.rank-3 .drep-match-result-rank {
    color: #fbbf24;
}

.drep-match-tier-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.26);
    color: #b7c7de;
    font-size: 11px;
    font-weight: 900;
}

.drep-match-tier-list {
    display: flex;
    flex-direction: column;
}

.drep-match-tier-list .drep-match-result-card {
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0;
    background: transparent;
    padding: 10px 12px;
}

.drep-match-tier-list .drep-match-result-card:last-child {
    border-bottom: 0;
}

.drep-match-result-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 52px minmax(156px, auto);
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.drep-match-tier-list .drep-match-result-name {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.25;
}

.drep-match-tier-list .drep-match-result-rate {
    flex: 0 0 auto;
    font-size: 18px;
}

.drep-match-tier-list .drep-match-result-id-row {
    min-width: 0;
    margin-top: 0;
    flex-wrap: nowrap;
    justify-self: end;
}

.drep-match-result-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.22);
    color: #b7c7de;
    font-size: 11px;
    font-weight: 800;
}

.drep-match-result-amount,
.drep-match-result-delegators {
    width: 100%;
}

.drep-match-tier-list .drep-match-result-stats {
    margin-top: 6px;
    gap: 5px;
}

.drep-match-tier-list .drep-match-result-stats span {
    min-height: 20px;
    padding: 0 7px;
    font-size: 11px;
}

.drep-match-result-name,
.drep-match-detail-title {
    color: #f8fbff;
}

.drep-match-result-rate {
    color: #34d399;
}

.drep-match-detail-row {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.28);
}

.drep-match-modal {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, rgba(20, 30, 49, 0.98), rgba(12, 19, 33, 0.98));
}

.drep-match-modal-section {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.76);
}

.drep-match-modal-section h3 {
    color: #34d399;
}

.drep-match-modal-vote-summary {
    background: rgba(16, 185, 129, 0.1);
}

@media (max-width: 767px) {
    .drep-match-wrapper {
        gap: 12px;
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        padding: 0 0 78px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }

    .drep-match-header,
    .drep-match-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .drep-match-header {
        margin: 0;
        padding: 12px;
    }

    .drep-match-title {
        font-size: 22px;
    }

    .drep-match-title i {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .drep-match-desc {
        font-size: 12px;
    }

    .drep-match-desc,
    .drep-match-start-list,
    .drep-match-start-list li {
        min-width: 0;
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-all !important;
    }

    .drep-match-panel {
        padding: 12px;
    }

    .drep-match-start-list {
        padding-left: 1rem;
        font-size: 12px;
    }

    .drep-match-start-list li {
        margin-bottom: 4px;
    }

    .drep-match-vote-grid {
        gap: 8px;
    }

    .drep-match-tier-head {
        padding: 9px 10px;
    }

    .drep-match-result-main {
        grid-template-columns: minmax(0, 1fr) 76px 44px minmax(136px, auto);
        column-gap: 6px;
    }

    .drep-match-tier-list .drep-match-result-card {
        padding: 10px;
    }

    .drep-match-tier-list .drep-match-result-name {
        font-size: 0.9rem;
    }

    .drep-match-result-id {
        max-width: 100%;
    }
}

.drep-match-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.drep-match-panel-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.drep-match-panel-heading .drep-match-start-icon {
    flex: 0 0 auto;
    margin: 0;
}

.drep-match-panel-heading .drep-match-start-title {
    margin: 0;
    text-align: left;
}

.drep-match-mode-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 82px;
    gap: 12px;
    align-items: center;
    min-height: 118px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.54);
    color: #e6f0ff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.drep-match-mode-card:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.52);
    background: rgba(20, 184, 166, 0.13);
}

.drep-match-mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(45, 212, 191, 0.16);
    color: #7dd3fc;
    font-size: 15px;
}

.drep-match-mode-copy {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 154px;
    gap: 2px;
}

.drep-match-mode-card strong {
    display: block;
    grid-column: 2;
    min-width: 0;
    color: #f8fbff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.12;
}

.drep-match-mode-card small {
    display: block;
    grid-column: 2;
    min-width: 0;
    color: #9fb1ce;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.drep-match-mode-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(45, 212, 191, 0.12));
    color: rgba(125, 211, 252, 0.86);
    font-size: 31px;
}

#drep-match-mode-vote-btn .drep-match-mode-visual {
    border-color: rgba(167, 139, 250, 0.24);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(96, 165, 250, 0.12));
    color: rgba(196, 181, 253, 0.88);
}

/* ===== dRep match simple quiz panel ===== */
#drep-match-quiz {
    width: min(760px, 100%);
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    min-height: 228px;
    box-sizing: border-box;
}

#drep-match-quiz .drep-match-progress {
    width: 100%;
    margin-bottom: 14px;
}

#drep-match-quiz .drep-match-progress-meta {
    margin-bottom: 8px;
    color: #9fb1ce;
    font-size: 12px;
    font-weight: 800;
}

#drep-match-quiz #drep-match-progress-text {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
}

#drep-match-quiz .drep-match-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

#drep-match-quiz .drep-match-question-title-btn {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f8fbff;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

#drep-match-question-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#drep-match-quiz .drep-match-question-title-btn:hover {
    color: #a7f3d0;
}

#drep-match-quiz .drep-match-question-title-btn i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #34d399;
    font-size: 12px;
}

#drep-match-quiz .drep-match-question-title-btn:hover #drep-match-question-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#drep-match-quiz .drep-match-view-detail-hint {
    margin: 0 0 14px;
    min-height: 17px;
    color: #8fa3bf;
    font-size: 12px;
    line-height: 1.4;
}

#drep-match-quiz .drep-match-question-meta {
    min-height: 24px;
    margin-bottom: 8px;
    gap: 6px;
}

#drep-match-quiz .drep-match-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

#drep-match-quiz .drep-match-vote-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#drep-match-quiz .drep-match-vote-btn {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.58);
    color: #dbe7f6;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

#drep-match-quiz .drep-match-vote-btn:hover {
    border-color: rgba(148, 163, 184, 0.46);
    background: rgba(30, 41, 59, 0.8);
}

#drep-match-quiz .drep-match-vote-btn.yes.selected {
    border-color: rgba(34, 197, 94, 0.74);
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

#drep-match-quiz .drep-match-vote-btn.no.selected {
    border-color: rgba(248, 113, 113, 0.74);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

#drep-match-quiz .drep-match-vote-btn.abstain.selected {
    border-color: rgba(148, 163, 184, 0.72);
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

#drep-match-quiz .drep-match-quiz-actions {
    display: none;
}

@media (max-width: 767px) {
    #drep-match-quiz {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        min-height: 306px;
    }

    #drep-match-quiz .drep-match-question-title-btn {
        min-height: 42px;
        padding: 0;
        font-size: 14px;
    }

    #drep-match-quiz .drep-match-view-detail-hint {
        display: block;
        margin: 8px 2px 12px;
        font-size: 11px;
    }

    #drep-match-quiz .drep-match-vote-grid {
        grid-template-columns: 1fr;
    }

    #drep-match-quiz .drep-match-vote-btn {
        min-height: 40px;
    }

    #drep-match-quiz .drep-match-quiz-actions {
        display: none;
    }

    .drep-match-mode-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .drep-match-panel-heading {
        justify-content: flex-start;
        gap: 8px;
    }

    .drep-match-panel-heading .drep-match-start-title {
        font-size: 17px;
        line-height: 1.25;
    }

    .drep-match-mode-card {
        grid-template-columns: 34px minmax(0, 1fr) 58px;
        gap: 10px;
        min-height: 94px;
        padding: 12px;
    }

    .drep-match-mode-copy {
        max-width: 100%;
        gap: 1px;
    }

    .drep-match-mode-card strong {
        max-width: 100%;
        font-size: 17px;
    }

    .drep-match-mode-card small {
        max-width: 100%;
        font-size: 13px;
    }

    .drep-match-mode-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .drep-match-mode-visual {
        width: 54px;
        height: 54px;
        border-radius: 10px;
        font-size: 23px;
    }
}

/* Keep the proposal title and detail hint visually attached in the DRep quiz. */
#drep-match-quiz .drep-match-question-title-btn {
    min-height: 0;
    margin-bottom: 0;
}

#drep-match-quiz #drep-match-question-title {
    min-height: 0;
    line-height: 1.35;
}

#drep-match-quiz.is-psych-mode .drep-match-question-title-btn {
    align-items: flex-start;
}

#drep-match-quiz.is-psych-mode #drep-match-question-title {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    line-height: 1.45;
    white-space: pre-line;
}

#drep-match-quiz .drep-match-view-detail-hint {
    min-height: 0;
    margin: 2px 0 14px;
}

@media (max-width: 767px) {
    #drep-match-quiz .drep-match-view-detail-hint {
        margin: 2px 2px 12px;
    }
}
