
main:has(.v2shell) {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.v2shell {
    --v2navy: #0B233B;
    --v2green: #07876F;
    --v2muted: #64748b;
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    min-height: 90vh;
    background: #f1f5f9;
}

.v2sidebar {
    background: var(--v2navy);
    padding: 28px 16px;
    color: white;
}

.v2brand {
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
}

.v2brand span {
    color: #34d399;
}

.v2subtitle {
    font-size: 11px;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.v2sidebar a {
    display: block;
    color: #cbd5e1;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.v2sidebar a:hover,
.v2sidebar a.active {
    background: var(--v2green);
    color: white;
    text-decoration: none;
}

.v2sidebar hr {
    border: 0;
    border-top: 1px solid #334155;
    margin: 24px 0;
}

.v2sidebar form {
    background: transparent;
    padding: 0;
}

.v2workspace {
    min-width: 0;
}

.v2top {
    background: white;
    padding: 20px 28px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.v2admin {
    background: #e0f2ec;
    color: #047857;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
}

.v2content {
    padding: 28px;
    max-width: 1600px;
    margin: auto;
}

.v2welcome {
    background: #0B233B;
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.v2welcome small {
    color: #6ee7b7;
    letter-spacing: 1.5px;
}

.v2welcome h1 {
    margin: 10px 0;
    font-size: 32px;
}

.v2welcome p {
    margin-bottom: 0;
    color: #cbd5e1;
}

.v2metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.v2metric {
    display: flex;
    flex-direction: column;
    background: white;
    color: #0B233B;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 3px 12px #0f172a08;
    overflow-wrap: anywhere;
}

.v2metric:hover {
    border-color: #07876F;
    text-decoration: none;
}

.v2metric span {
    color: #64748b;
    font-size: 14px;
}

.v2metric strong {
    font-size: 30px;
    line-height: 1.3;
    margin: 12px 0;
}

.v2metric small {
    color: #07876F;
}

.v2panel {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 22px;
}

.v2panel h2 {
    font-size: 20px;
    margin: 0 0 20px;
}

.v2panel form {
    max-width: 100%;
    padding: 0;
}

.v2panel input,
.v2panel textarea,
.v2panel select {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.v2panel textarea {
    min-height: 150px;
}

.v2panel table {
    font-size: 14px;
}

.v2panel th {
    background: #f1f5f9;
    color: #334155;
}

.v2panel td {
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.v2panel td form {
    margin: 0;
}

.v2panel td button {
    font-size: 12px;
    padding: 8px 12px;
}

.v2status {
    display: inline-block;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

.v2status.live {
    background: #dcfce7;
    color: #166534;
}

.v2status.draft {
    background: #fef3c7;
    color: #92400e;
}

.v2quick {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.v2quick a {
    padding: 12px 18px;
    background: #e0f2ec;
    color: #047857;
    border-radius: 8px;
    font-weight: 700;
}

.v2search {
    max-width: 400px;
    margin-bottom: 18px;
}

.v2empty {
    padding: 24px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
}

@media(max-width:1100px) {
    .v2metrics {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:760px) {
    .v2shell {
        grid-template-columns: 1fr;
    }

    .v2sidebar {
        padding: 16px;
    }

    .v2sidebar a {
        display: inline-block;
        font-size: 12px;
        padding: 9px;
    }

    .v2content {
        padding: 14px;
    }

    .v2top {
        padding: 14px;
    }

    .v2panel {
        padding: 16px;
    }

    .v2metric {
        padding: 15px;
    }

    .v2metric strong {
        font-size: 24px;
    }

    .v2welcome {
        padding: 22px;
    }
}

